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;
|
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;
|
import org.jetbrains.jet.plugin.intentions.SpecifyTypeExplicitlyAction;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -24,6 +26,12 @@ import org.jetbrains.jet.plugin.intentions.SpecifyTypeExplicitlyAction;
|
|||||||
*/
|
*/
|
||||||
@SuppressWarnings("IntentionDescriptionNotFoundInspection")
|
@SuppressWarnings("IntentionDescriptionNotFoundInspection")
|
||||||
public class SpecifyTypeExplicitlyFix extends SpecifyTypeExplicitlyAction {
|
public class SpecifyTypeExplicitlyFix extends SpecifyTypeExplicitlyAction {
|
||||||
|
@NotNull
|
||||||
|
@Override
|
||||||
|
public String getText() {
|
||||||
|
return StringUtil.capitalize(super.getText().toLowerCase());
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected boolean isDisabledForError() {
|
protected boolean isDisabledForError() {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// "Specify Return Type Explicitly" "true"
|
// "Specify return type explicitly" "true"
|
||||||
package a
|
package a
|
||||||
|
|
||||||
class A() {
|
class A() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// "Specify Return Type Explicitly" "true"
|
// "Specify return type explicitly" "true"
|
||||||
package a
|
package a
|
||||||
|
|
||||||
class A() {
|
class A() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// "Specify Type Explicitly" "true"
|
// "Specify type explicitly" "true"
|
||||||
package a
|
package a
|
||||||
|
|
||||||
import java.util.List
|
import java.util.List
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// "Specify Return Type Explicitly" "false"
|
// "Specify type explicitly" "false"
|
||||||
|
|
||||||
class A() {
|
class A() {
|
||||||
public val <caret>t = foo()
|
public val <caret>t = foo()
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// "Specify Return Type Explicitly" "true"
|
// "Specify return type explicitly" "true"
|
||||||
package a
|
package a
|
||||||
|
|
||||||
class A() {
|
class A() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// "Specify Return Type Explicitly" "false"
|
// "Specify return type explicitly" "false"
|
||||||
package a
|
package a
|
||||||
|
|
||||||
class A() {
|
class A() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// "Specify Return Type Explicitly" "true"
|
// "Specify return type explicitly" "true"
|
||||||
package a
|
package a
|
||||||
|
|
||||||
class A() {
|
class A() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// "Specify Type Explicitly" "true"
|
// "Specify type explicitly" "true"
|
||||||
package a
|
package a
|
||||||
|
|
||||||
public val <caret>l = java.util.Collections.emptyList<Int>()
|
public val <caret>l = java.util.Collections.emptyList<Int>()
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
// "Specify Type Explicitly" "true"
|
// "Specify type explicitly" "true"
|
||||||
|
|
||||||
package a
|
package a
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// "Specify Type Explicitly" "true"
|
// "Specify type explicitly" "true"
|
||||||
|
|
||||||
class A() {}
|
class A() {}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// "Specify Type Explicitly" "true"
|
// "Specify type explicitly" "true"
|
||||||
|
|
||||||
package a
|
package a
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// "Specify Type Explicitly" "true"
|
// "Specify type explicitly" "true"
|
||||||
|
|
||||||
class A() {}
|
class A() {}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user