mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-06 05:10:22 +07:00
fix invalid negative tests for quick-fixes
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// "Add method body" "false"
|
||||
// "Add 'return' statement" "false"
|
||||
class a {
|
||||
String f() {
|
||||
return null;
|
||||
|
||||
@@ -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,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,4 +1,4 @@
|
||||
// "Do not create anything" "false"
|
||||
// "Create class 'boolean'" "false"
|
||||
import javax.swing.*;
|
||||
|
||||
public class Test {
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Create method 'test'" "true"
|
||||
public class Test {
|
||||
public Test() {
|
||||
test();
|
||||
}
|
||||
|
||||
private void test() {
|
||||
<caret><selection></selection>
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Do not create method" "false"
|
||||
// "Create method 'test'" "true"
|
||||
public class Test {
|
||||
public Test() {
|
||||
test(<caret>);
|
||||
|
||||
@@ -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,4 +1,4 @@
|
||||
// "Split into filter's chain" "false"
|
||||
// "Merge filter's chain" "false"
|
||||
|
||||
import java.util.stream.Stream;
|
||||
class Test {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Change parameter 'i' type to 'long'" "false"
|
||||
// "Change parameter 'obj' type to 'long'" "false"
|
||||
|
||||
class M extends Thread {
|
||||
@Override
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Wrap using 'Arrays.asList'" "false"
|
||||
// "Wrap using 'Arrays.asList'" "true"
|
||||
import java.util.List;
|
||||
|
||||
public class Test {
|
||||
|
||||
@@ -264,7 +264,7 @@ add.qualifier=Add qualifier
|
||||
add.qualifier.original.class.chooser.title=Original class
|
||||
|
||||
wrap.array.to.arrays.as.list.parameter.text=Wrap {0, choice, 1#1st|2#2nd|3#3rd|4#{0,number}th} parameter using ''Arrays.asList''
|
||||
wrap.array.to.arrays.as.list.single.parameter.text=Wrap using ''Arrays.asList''
|
||||
wrap.array.to.arrays.as.list.single.parameter.text=Wrap using 'Arrays.asList'
|
||||
|
||||
annotations.fix=Annotations
|
||||
add.missing.annotation.parameters.fix=Add missing annotation parameters - {0}
|
||||
|
||||
Reference in New Issue
Block a user