Specify type explicitly quick fix now has lower case of letters (due to naming convention of quick fixes)
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
|
||||
package org.jetbrains.jet.plugin.quickfix;
|
||||
|
||||
import com.intellij.openapi.util.text.StringUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.jet.plugin.intentions.SpecifyTypeExplicitlyAction;
|
||||
|
||||
/**
|
||||
@@ -24,6 +26,12 @@ import org.jetbrains.jet.plugin.intentions.SpecifyTypeExplicitlyAction;
|
||||
*/
|
||||
@SuppressWarnings("IntentionDescriptionNotFoundInspection")
|
||||
public class SpecifyTypeExplicitlyFix extends SpecifyTypeExplicitlyAction {
|
||||
@NotNull
|
||||
@Override
|
||||
public String getText() {
|
||||
return StringUtil.capitalize(super.getText().toLowerCase());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean isDisabledForError() {
|
||||
return false;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Specify Return Type Explicitly" "true"
|
||||
// "Specify return type explicitly" "true"
|
||||
package a
|
||||
|
||||
class A() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Specify Return Type Explicitly" "true"
|
||||
// "Specify return type explicitly" "true"
|
||||
package a
|
||||
|
||||
class A() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Specify Type Explicitly" "true"
|
||||
// "Specify type explicitly" "true"
|
||||
package a
|
||||
|
||||
import java.util.List
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Specify Return Type Explicitly" "false"
|
||||
// "Specify type explicitly" "false"
|
||||
|
||||
class A() {
|
||||
public val <caret>t = foo()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Specify Return Type Explicitly" "true"
|
||||
// "Specify return type explicitly" "true"
|
||||
package a
|
||||
|
||||
class A() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Specify Return Type Explicitly" "false"
|
||||
// "Specify return type explicitly" "false"
|
||||
package a
|
||||
|
||||
class A() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Specify Return Type Explicitly" "true"
|
||||
// "Specify return type explicitly" "true"
|
||||
package a
|
||||
|
||||
class A() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Specify Type Explicitly" "true"
|
||||
// "Specify type explicitly" "true"
|
||||
package a
|
||||
|
||||
public val <caret>l = java.util.Collections.emptyList<Int>()
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Specify Type Explicitly" "true"
|
||||
// "Specify type explicitly" "true"
|
||||
|
||||
package a
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Specify Type Explicitly" "true"
|
||||
// "Specify type explicitly" "true"
|
||||
|
||||
class A() {}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Specify Type Explicitly" "true"
|
||||
// "Specify type explicitly" "true"
|
||||
|
||||
package a
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Specify Type Explicitly" "true"
|
||||
// "Specify type explicitly" "true"
|
||||
|
||||
class A() {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user