Allow regex matching of available action names; accept both 2016.2 and 2016.3 names of static import quickfix
This commit is contained in:
+2
-2
@@ -1,5 +1,5 @@
|
||||
// FILE: bar/Foo.before.java
|
||||
// "Static import constant 'foo.Bar.Companion.foobar'" "true"
|
||||
// "/(Static import|Import static) constant 'foo.Bar.Companion.foobar'/" "true"
|
||||
// ERROR: Unresolved reference: foobar
|
||||
// ACTION: Rename reference
|
||||
// ACTION: Create field 'foobar'
|
||||
@@ -26,7 +26,7 @@ object Bar {
|
||||
}
|
||||
|
||||
// FILE: bar/Foo.after.java
|
||||
// "Static import constant 'foo.Bar.Companion.foobar'" "true"
|
||||
// "/(Static import|Import static) constant 'foo.Bar.Companion.foobar'/" "true"
|
||||
// ERROR: Unresolved reference: foobar
|
||||
// ACTION: Rename reference
|
||||
// ACTION: Create field 'foobar'
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
// FILE: bar/Foo.before.java
|
||||
// "Static import method 'foo.Bar.foobar'" "true"
|
||||
// "/(Static import|Import static) method 'foo.Bar.foobar'/" "true"
|
||||
// ERROR: Unresolved reference: foobar
|
||||
// ACTION: Create method 'foobar'
|
||||
// WITH_RUNTIME
|
||||
@@ -25,7 +25,7 @@ class Bar {
|
||||
}
|
||||
|
||||
// FILE: bar/Foo.after.java
|
||||
// "Static import method 'foo.Bar.foobar'" "true"
|
||||
// "/(Static import|Import static) method 'foo.Bar.foobar'/" "true"
|
||||
// ERROR: Unresolved reference: foobar
|
||||
// ACTION: Create method 'foobar'
|
||||
// WITH_RUNTIME
|
||||
|
||||
Vendored
+2
-2
@@ -1,5 +1,5 @@
|
||||
// FILE: bar/Foo.before.java
|
||||
// "Static import method 'foo.Bar.getValue'" "true"
|
||||
// "/(Static import|Import static) method 'foo.Bar.getValue'/" "true"
|
||||
// ERROR: Unresolved reference: getValue
|
||||
// ACTION: Create method 'foobar'
|
||||
// WITH_RUNTIME
|
||||
@@ -23,7 +23,7 @@ object Bar {
|
||||
}
|
||||
|
||||
// FILE: bar/Foo.after.java
|
||||
// "Static import method 'foo.Bar.getValue'" "true"
|
||||
// "/(Static import|Import static) method 'foo.Bar.getValue'/" "true"
|
||||
// ERROR: Unresolved reference: getValue
|
||||
// ACTION: Create method 'foobar'
|
||||
// WITH_RUNTIME
|
||||
|
||||
Vendored
+2
-2
@@ -1,5 +1,5 @@
|
||||
// FILE: bar/Foo.before.java
|
||||
// "Static import method 'foo.Bar.setVariable'" "true"
|
||||
// "/(Static import|Import static) method 'foo.Bar.setVariable'/" "true"
|
||||
// ERROR: Unresolved reference: setVariable
|
||||
// ACTION: Create method 'foobar'
|
||||
// WITH_RUNTIME
|
||||
@@ -23,7 +23,7 @@ object Bar {
|
||||
}
|
||||
|
||||
// FILE: bar/Foo.after.java
|
||||
// "Static import method 'foo.Bar.setVariable'" "true"
|
||||
// "/(Static import|Import static) method 'foo.Bar.setVariable'/" "true"
|
||||
// ERROR: Unresolved reference: setVariable
|
||||
// ACTION: Create method 'foobar'
|
||||
// WITH_RUNTIME
|
||||
|
||||
Vendored
+2
-2
@@ -1,5 +1,5 @@
|
||||
// FILE: bar/Foo.before.java
|
||||
// "Static import method 'foo.Bar.getValue'" "true"
|
||||
// "/(Static import|Import static) method 'foo.Bar.getValue'/" "true"
|
||||
// ERROR: Unresolved reference: getValue
|
||||
// ACTION: Create method 'foobar'
|
||||
// WITH_RUNTIME
|
||||
@@ -25,7 +25,7 @@ object Bar {
|
||||
}
|
||||
|
||||
// FILE: bar/Foo.after.java
|
||||
// "Static import method 'foo.Bar.getValue'" "true"
|
||||
// "/(Static import|Import static) method 'foo.Bar.getValue'/" "true"
|
||||
// ERROR: Unresolved reference: getValue
|
||||
// ACTION: Create method 'foobar'
|
||||
// WITH_RUNTIME
|
||||
|
||||
Vendored
+2
-2
@@ -1,5 +1,5 @@
|
||||
// FILE: bar/Foo.before.java
|
||||
// "Static import method 'foo.Bar.setVariable'" "true"
|
||||
// "/(Static import|Import static) method 'foo.Bar.setVariable'/" "true"
|
||||
// ERROR: Unresolved reference: setVariable
|
||||
// ACTION: Create method 'foobar'
|
||||
// WITH_RUNTIME
|
||||
@@ -26,7 +26,7 @@ object Bar {
|
||||
}
|
||||
|
||||
// FILE: bar/Foo.after.java
|
||||
// "Static import method 'foo.Bar.setVariable'" "true"
|
||||
// "/(Static import|Import static) method 'foo.Bar.setVariable'/" "true"
|
||||
// ERROR: Unresolved reference: setVariable
|
||||
// ACTION: Create method 'foobar'
|
||||
// WITH_RUNTIME
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
// FILE: bar/Foo.before.java
|
||||
// "Static import constant 'foo.Bar.foobar'" "true"
|
||||
// "/(Static import|Import static) constant 'foo.Bar.foobar'/" "true"
|
||||
// ERROR: Unresolved reference: foobar
|
||||
// ACTION: Rename reference
|
||||
// ACTION: Create field 'foobar'
|
||||
@@ -24,7 +24,7 @@ object Bar {
|
||||
}
|
||||
|
||||
// FILE: bar/Foo.after.java
|
||||
// "Static import constant 'foo.Bar.foobar'" "true"
|
||||
// "/(Static import|Import static) constant 'foo.Bar.foobar'/" "true"
|
||||
// ERROR: Unresolved reference: foobar
|
||||
// ACTION: Rename reference
|
||||
// ACTION: Create field 'foobar'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// FILE: bar/Foo.before.java
|
||||
// "Static import method 'foo.Bar.foobar'" "true"
|
||||
// "/(Static import|Import static) method 'foo.Bar.foobar'/" "true"
|
||||
// ERROR: Unresolved reference: foobar
|
||||
// ACTION: Create method 'foobar'
|
||||
// WITH_RUNTIME
|
||||
@@ -22,7 +22,7 @@ object Bar {
|
||||
}
|
||||
|
||||
// FILE: bar/Foo.after.java
|
||||
// "Static import method 'foo.Bar.foobar'" "true"
|
||||
// "/(Static import|Import static) method 'foo.Bar.foobar'/" "true"
|
||||
// ERROR: Unresolved reference: foobar
|
||||
// ACTION: Create method 'foobar'
|
||||
// WITH_RUNTIME
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
// FILE: bar/Foo.before.java
|
||||
// "Static import method 'foo.Bar.getValue'" "true"
|
||||
// "/(Static import|Import static) method 'foo.Bar.getValue'/" "true"
|
||||
// ERROR: Unresolved reference: getValue
|
||||
// ACTION: Create method 'foobar'
|
||||
// WITH_RUNTIME
|
||||
@@ -21,7 +21,7 @@ object Bar {
|
||||
}
|
||||
|
||||
// FILE: bar/Foo.after.java
|
||||
// "Static import method 'foo.Bar.getValue'" "true"
|
||||
// "/(Static import|Import static) method 'foo.Bar.getValue'/" "true"
|
||||
// ERROR: Unresolved reference: getValue
|
||||
// ACTION: Create method 'foobar'
|
||||
// WITH_RUNTIME
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
// FILE: bar/Foo.before.java
|
||||
// "Static import method 'foo.Bar.setVariable'" "true"
|
||||
// "/(Static import|Import static) method 'foo.Bar.setVariable'/" "true"
|
||||
// ERROR: Unresolved reference: setVariable
|
||||
// ACTION: Create method 'foobar'
|
||||
// WITH_RUNTIME
|
||||
@@ -21,7 +21,7 @@ object Bar {
|
||||
}
|
||||
|
||||
// FILE: bar/Foo.after.java
|
||||
// "Static import method 'foo.Bar.setVariable'" "true"
|
||||
// "/(Static import|Import static) method 'foo.Bar.setVariable'/" "true"
|
||||
// ERROR: Unresolved reference: setVariable
|
||||
// ACTION: Create method 'foobar'
|
||||
// WITH_RUNTIME
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
// FILE: bar/Foo.before.java
|
||||
// "Static import method 'foo.Bar.getValue'" "true"
|
||||
// "/(Static import|Import static) method 'foo.Bar.getValue'/" "true"
|
||||
// ERROR: Unresolved reference: getValue
|
||||
// ACTION: Create method 'foobar'
|
||||
// WITH_RUNTIME
|
||||
@@ -23,7 +23,7 @@ object Bar {
|
||||
}
|
||||
|
||||
// FILE: bar/Foo.after.java
|
||||
// "Static import method 'foo.Bar.getValue'" "true"
|
||||
// "/(Static import|Import static) method 'foo.Bar.getValue'/" "true"
|
||||
// ERROR: Unresolved reference: getValue
|
||||
// ACTION: Create method 'foobar'
|
||||
// WITH_RUNTIME
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
// FILE: bar/Foo.before.java
|
||||
// "Static import method 'foo.Bar.setVariable'" "true"
|
||||
// "/(Static import|Import static) method 'foo.Bar.setVariable'/" "true"
|
||||
// ERROR: Unresolved reference: setVariable
|
||||
// ACTION: Create method 'foobar'
|
||||
// WITH_RUNTIME
|
||||
@@ -24,7 +24,7 @@ object Bar {
|
||||
}
|
||||
|
||||
// FILE: bar/Foo.after.java
|
||||
// "Static import method 'foo.Bar.setVariable'" "true"
|
||||
// "/(Static import|Import static) method 'foo.Bar.setVariable'/" "true"
|
||||
// ERROR: Unresolved reference: setVariable
|
||||
// ACTION: Create method 'foobar'
|
||||
// WITH_RUNTIME
|
||||
|
||||
Reference in New Issue
Block a user