mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
LightQuickFixTestCase: Check whether <caret> is present in "before" files; wrong tests fixed
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
// "Break string on '\n'" "false"
|
||||
|
||||
class A {
|
||||
String s = "Hello!\n";
|
||||
String s = "Hello!<caret>\n";
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// "Break string on '\n'" "false"
|
||||
|
||||
class A {
|
||||
String s = "Hello!\n\r";
|
||||
String s = "Hello!<caret>\n\r";
|
||||
}
|
||||
|
||||
+1
-1
@@ -7,6 +7,6 @@ class Example {
|
||||
}
|
||||
|
||||
{
|
||||
Function<String, String> r = (s) -> m(s, s);
|
||||
Function<String, String> r = (s) -> <caret>m(s, s);
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -12,7 +12,7 @@ public class Test {
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
void foo() {
|
||||
void f<caret>oo() {
|
||||
foo(new ArrayList<String>()).addAll(foo1(new ArrayList<String>);
|
||||
}
|
||||
}
|
||||
|
||||
+9
-1
@@ -1,5 +1,13 @@
|
||||
// "Suppress for field" "false"
|
||||
/** @noinspection ALL*/
|
||||
class a {
|
||||
static private String mm = "00";
|
||||
static private String <caret>mm = "00";
|
||||
// The "Convert to local" inspection should be reported here if not suppressed
|
||||
|
||||
static void test() {
|
||||
mm = "1";
|
||||
if(mm == "1") {
|
||||
mm = "2";
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -4,6 +4,6 @@ public class Test {
|
||||
{
|
||||
int i = 0;
|
||||
//noinspection SillyAssignment my very long comment
|
||||
i = i;
|
||||
i = <caret>i;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Suppress for method" "false"
|
||||
/** @noinspection UNUSED_SYMBOL*/
|
||||
class a {
|
||||
private void run() {
|
||||
private void <caret>run() {
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -4,7 +4,7 @@ import java.util.Optional;
|
||||
public class Test {
|
||||
|
||||
void m(String ss) {
|
||||
f(ss);
|
||||
f(<caret>ss);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user