mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 19:29:30 +07:00
fix invalid negative tests for quick-fixes
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Add method body" "false"
|
||||
// "Add 'return' statement" "false"
|
||||
class a {
|
||||
String f() {
|
||||
return null;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Do not try to create class Inner" "false"
|
||||
// "Create class 'Inner'" "false"
|
||||
public class Test {
|
||||
public static void main() {
|
||||
new Te<caret>st.Inner();
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Do not try to create class Inner" "false"
|
||||
// "Create class 'Inner'" "false"
|
||||
public class Test {
|
||||
public static void main() {
|
||||
new Inner<caret>();
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Do not create anything" "false"
|
||||
// "Create class 'boolean'" "false"
|
||||
import javax.swing.*;
|
||||
|
||||
public class Test {
|
||||
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Create method 'test'" "true"
|
||||
public class Test {
|
||||
public Test() {
|
||||
test();
|
||||
}
|
||||
|
||||
private void test() {
|
||||
<caret><selection></selection>
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Do not create method" "false"
|
||||
// "Create method 'test'" "true"
|
||||
public class Test {
|
||||
public Test() {
|
||||
test(<caret>);
|
||||
|
||||
+3
-3
@@ -1,10 +1,10 @@
|
||||
// "Add tag @throws java.langException" "false"
|
||||
// "Add tag @throws java.lang.Exception" "false"
|
||||
class a {
|
||||
|
||||
/**
|
||||
/**<caret>
|
||||
* @throws java.lang.Exception
|
||||
*/
|
||||
public void <caret>run() throws Exception{
|
||||
public void run() throws Exception{
|
||||
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Split into filter's chain" "false"
|
||||
// "Merge filter's chain" "false"
|
||||
|
||||
import java.util.stream.Stream;
|
||||
class Test {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Change parameter 'i' type to 'long'" "false"
|
||||
// "Change parameter 'obj' type to 'long'" "false"
|
||||
|
||||
class M extends Thread {
|
||||
@Override
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Wrap using 'Arrays.asList'" "false"
|
||||
// "Wrap using 'Arrays.asList'" "true"
|
||||
import java.util.List;
|
||||
|
||||
public class Test {
|
||||
|
||||
Reference in New Issue
Block a user