mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-20 13:31:28 +07:00
[java-inspections] More tests for preview
GitOrigin-RevId: 6b6405ee4491ad1d58947547c40df6fb2d291ab7
This commit is contained in:
committed by
intellij-monorepo-bot
parent
bbb218a972
commit
dd689d3a39
@@ -1,4 +1,4 @@
|
||||
// "Create missing branches: 'AA', 'AB', and 'AC'" "true"
|
||||
// "Create missing branches: 'AA', 'AB', and 'AC'" "true-preview"
|
||||
abstract sealed class A {}
|
||||
final class AA extends A {}
|
||||
sealed class AB extends A {}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create missing switch branch 'Ab'" "true"
|
||||
// "Create missing switch branch 'Ab'" "true-preview"
|
||||
sealed interface A {}
|
||||
sealed interface Aa extends A {}
|
||||
final class Aaa implements Aa {}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create missing switch branch 'Sub1'" "true"
|
||||
// "Create missing switch branch 'Sub1'" "true-preview"
|
||||
sealed interface I {}
|
||||
sealed interface J extends I {}
|
||||
final class Sub1 implements I, J {}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create missing switch branch 'Sub1'" "true"
|
||||
// "Create missing switch branch 'Sub1'" "true-preview"
|
||||
sealed interface I {}
|
||||
sealed interface J extends I {}
|
||||
final class Sub1 implements I, J {}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create missing switch branch 'Sub1'" "true"
|
||||
// "Create missing switch branch 'Sub1'" "true-preview"
|
||||
sealed interface I {}
|
||||
final class Sub1 implements I {}
|
||||
final class Sub2 implements I {}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create missing switch branch 'Sub1'" "true"
|
||||
// "Create missing switch branch 'Sub1'" "true-preview"
|
||||
sealed interface I {}
|
||||
final class Sub1 implements I {}
|
||||
final class Sub2 implements I {}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create missing branches: 'AA', 'AB', 'AC', and 'A'" "true"
|
||||
// "Create missing branches: 'AA', 'AB', 'AC', and 'A'" "true-preview"
|
||||
sealed class A {}
|
||||
final class AA extends A {}
|
||||
sealed class AB extends A {}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create missing branches: 'Ab', and 'A'" "true"
|
||||
// "Create missing branches: 'Ab', and 'A'" "true-preview"
|
||||
sealed class A {}
|
||||
abstract sealed class Aa extends A {}
|
||||
final class Aaa extends Aa {}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create missing branches: 'AC', 'AA', 'AB', and 'A'" "true"
|
||||
// "Create missing branches: 'AC', 'AA', 'AB', and 'A'" "true-preview"
|
||||
sealed class A permits AC, AA, AB {}
|
||||
final class AA extends A {}
|
||||
sealed class AB extends A permits ABC, ABA {}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create missing branches: 'AA', 'AB', and 'AC'" "true"
|
||||
// "Create missing branches: 'AA', 'AB', and 'AC'" "true-preview"
|
||||
abstract sealed class A {}
|
||||
final class AA extends A {}
|
||||
sealed class AB extends A {}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create missing switch branch 'Ab'" "true"
|
||||
// "Create missing switch branch 'Ab'" "true-preview"
|
||||
sealed interface A {}
|
||||
sealed interface Aa extends A {}
|
||||
final class Aaa implements Aa {}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create missing switch branch 'Sub1'" "true"
|
||||
// "Create missing switch branch 'Sub1'" "true-preview"
|
||||
sealed interface I {}
|
||||
sealed interface J extends I {}
|
||||
final class Sub1 implements I, J {}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create missing switch branch 'Sub1'" "true"
|
||||
// "Create missing switch branch 'Sub1'" "true-preview"
|
||||
sealed interface I {}
|
||||
sealed interface J extends I {}
|
||||
final class Sub1 implements I, J {}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create missing switch branch 'Sub1'" "true"
|
||||
// "Create missing switch branch 'Sub1'" "true-preview"
|
||||
sealed interface I {}
|
||||
final class Sub1 implements I {}
|
||||
final class Sub2 implements I {}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create missing switch branch 'Sub1'" "true"
|
||||
// "Create missing switch branch 'Sub1'" "true-preview"
|
||||
sealed interface I {}
|
||||
final class Sub1 implements I {}
|
||||
final class Sub2 implements I {}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create missing branches: 'AA', 'AB', 'AC', and 'A'" "true"
|
||||
// "Create missing branches: 'AA', 'AB', 'AC', and 'A'" "true-preview"
|
||||
sealed class A {}
|
||||
final class AA extends A {}
|
||||
sealed class AB extends A {}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create missing branches: 'Ab', and 'A'" "true"
|
||||
// "Create missing branches: 'Ab', and 'A'" "true-preview"
|
||||
sealed class A {}
|
||||
abstract sealed class Aa extends A {}
|
||||
final class Aaa extends Aa {}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create missing branches: 'AC', 'AA', 'AB', and 'A'" "true"
|
||||
// "Create missing branches: 'AC', 'AA', 'AB', and 'A'" "true-preview"
|
||||
sealed class A permits AC, AA, AB {}
|
||||
final class AA extends A {}
|
||||
sealed class AB extends A permits ABC, ABA {}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove redundant parameter" "true"
|
||||
// "Remove redundant parameter" "true-preview"
|
||||
|
||||
@interface Anno {
|
||||
boolean foo() default true;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove redundant parameter" "true"
|
||||
// "Remove redundant parameter" "true-preview"
|
||||
|
||||
@interface Anno {
|
||||
String[] foo() default {"One", "Two"};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove redundant parameter" "true"
|
||||
// "Remove redundant parameter" "true-preview"
|
||||
|
||||
@interface Anno {
|
||||
String foo() default "hello world";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove redundant parameter" "true"
|
||||
// "Remove redundant parameter" "true-preview"
|
||||
|
||||
@interface Anno {
|
||||
Class foo() default void.class;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove redundant parameter" "true"
|
||||
// "Remove redundant parameter" "true-preview"
|
||||
|
||||
@interface Anno {
|
||||
boolean foo() default true;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove redundant parameter" "true"
|
||||
// "Remove redundant parameter" "true-preview"
|
||||
|
||||
@interface Anno {
|
||||
String[] foo() default {"One", "Two"};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove redundant parameter" "true"
|
||||
// "Remove redundant parameter" "true-preview"
|
||||
|
||||
@interface Anno {
|
||||
String foo() default "hello world";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove redundant parameter" "true"
|
||||
// "Remove redundant parameter" "true-preview"
|
||||
|
||||
@interface Anno {
|
||||
Class foo() default void.class;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Defer assignment to 'n' using temp variable" "true"
|
||||
// "Defer assignment to 'n' using temp variable" "true-preview"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Defer assignment to 'n' using temp variable" "true"
|
||||
// "Defer assignment to 'n' using temp variable" "true-preview"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Defer assignment to 'n' using temp variable" "true"
|
||||
// "Defer assignment to 'n' using temp variable" "true-preview"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Defer assignment to 'n' using temp variable" "true"
|
||||
// "Defer assignment to 'n' using temp variable" "true-preview"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Defer assignment to 'i' using temp variable" "true"
|
||||
// "Defer assignment to 'i' using temp variable" "true-preview"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Defer assignment to 'n' using temp variable" "true"
|
||||
// "Defer assignment to 'n' using temp variable" "true-preview"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Defer assignment to 'n' using temp variable" "true"
|
||||
// "Defer assignment to 'n' using temp variable" "true-preview"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Defer assignment to 'n' using temp variable" "true"
|
||||
// "Defer assignment to 'n' using temp variable" "true-preview"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Defer assignment to 'i' using temp variable" "true"
|
||||
// "Defer assignment to 'i' using temp variable" "true-preview"
|
||||
class a {
|
||||
{
|
||||
final int i;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Defer assignment to 'n' using temp variable" "true"
|
||||
// "Defer assignment to 'n' using temp variable" "true-preview"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Defer assignment to 'n' using temp variable" "true"
|
||||
// "Defer assignment to 'n' using temp variable" "true-preview"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Defer assignment to 'n' using temp variable" "true"
|
||||
// "Defer assignment to 'n' using temp variable" "true-preview"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Defer assignment to 'n' using temp variable" "true"
|
||||
// "Defer assignment to 'n' using temp variable" "true-preview"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Defer assignment to 'i' using temp variable" "true"
|
||||
// "Defer assignment to 'i' using temp variable" "true-preview"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Defer assignment to 'n' using temp variable" "true"
|
||||
// "Defer assignment to 'n' using temp variable" "true-preview"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Defer assignment to 'n' using temp variable" "true"
|
||||
// "Defer assignment to 'n' using temp variable" "true-preview"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Defer assignment to 'n' using temp variable" "true"
|
||||
// "Defer assignment to 'n' using temp variable" "true-preview"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Defer assignment to 'i' using temp variable" "true"
|
||||
// "Defer assignment to 'i' using temp variable" "true-preview"
|
||||
class a {
|
||||
{
|
||||
final int i;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Delete catch for 'java.io.IOException'" "true"
|
||||
// "Delete catch for 'java.io.IOException'" "true-preview"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Delete catch for 'java.io.IOException'" "true"
|
||||
// "Delete catch for 'java.io.IOException'" "true-preview"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Delete catch for 'java.io.IOException'" "true"
|
||||
// "Delete catch for 'java.io.IOException'" "true-preview"
|
||||
import java.io.*;
|
||||
|
||||
class c {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Delete catch for 'java.io.IOException'" "true"
|
||||
// "Delete catch for 'java.io.IOException'" "true-preview"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Delete catch for 'java.io.IOException'" "true"
|
||||
// "Delete catch for 'java.io.IOException'" "true-preview"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Delete catch for 'java.lang.ClassNotFoundException'" "true"
|
||||
// "Delete catch for 'java.lang.ClassNotFoundException'" "true-preview"
|
||||
import java.io.*;
|
||||
|
||||
class Cl implements AutoCloseable {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Delete catch for 'java.io.IOException'" "true"
|
||||
// "Delete catch for 'java.io.IOException'" "true-preview"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Delete catch for 'java.io.IOException'" "true"
|
||||
// "Delete catch for 'java.io.IOException'" "true-preview"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Delete catch for 'java.io.IOException'" "true"
|
||||
// "Delete catch for 'java.io.IOException'" "true-preview"
|
||||
import java.io.*;
|
||||
|
||||
class c {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Delete catch for 'java.io.IOException'" "true"
|
||||
// "Delete catch for 'java.io.IOException'" "true-preview"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Delete catch for 'java.io.IOException'" "true"
|
||||
// "Delete catch for 'java.io.IOException'" "true-preview"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Delete catch for 'java.lang.ClassNotFoundException'" "true"
|
||||
// "Delete catch for 'java.lang.ClassNotFoundException'" "true-preview"
|
||||
import java.io.*;
|
||||
|
||||
class Cl implements AutoCloseable {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove element" "true"
|
||||
// "Remove element" "true-preview"
|
||||
record R() {
|
||||
R() {}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove element" "true"
|
||||
// "Remove element" "true-preview"
|
||||
record R() {
|
||||
R() {}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove element" "true"
|
||||
// "Remove element" "true-preview"
|
||||
record R() {
|
||||
R() throws<caret> Exception, Error {}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove element" "true"
|
||||
// "Remove element" "true-preview"
|
||||
record R() {
|
||||
<T, <caret>U> R() {}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Delete catch for 'java.io.IOException'" "true"
|
||||
// "Delete catch for 'java.io.IOException'" "true-preview"
|
||||
import java.io.*;
|
||||
|
||||
class C {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Delete catch for 'java.io.FileNotFoundException'" "true"
|
||||
// "Delete catch for 'java.io.FileNotFoundException'" "true-preview"
|
||||
import java.io.*;
|
||||
|
||||
class C {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Delete catch for 'java.io.FileNotFoundException'" "true"
|
||||
// "Delete catch for 'java.io.FileNotFoundException'" "true-preview"
|
||||
import java.io.*;
|
||||
|
||||
class C {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Delete catch for 'java.lang.RuntimeException'" "true"
|
||||
// "Delete catch for 'java.lang.RuntimeException'" "true-preview"
|
||||
import java.io.*;
|
||||
|
||||
class C {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Delete catch for 'java.io.IOException'" "true"
|
||||
// "Delete catch for 'java.io.IOException'" "true-preview"
|
||||
import java.io.*;
|
||||
|
||||
class C {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Delete catch for 'java.io.FileNotFoundException'" "true"
|
||||
// "Delete catch for 'java.io.FileNotFoundException'" "true-preview"
|
||||
import java.io.*;
|
||||
|
||||
class C {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Delete catch for 'java.io.FileNotFoundException'" "true"
|
||||
// "Delete catch for 'java.io.FileNotFoundException'" "true-preview"
|
||||
import java.io.*;
|
||||
|
||||
class C {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Delete catch for 'java.lang.RuntimeException'" "true"
|
||||
// "Delete catch for 'java.lang.RuntimeException'" "true-preview"
|
||||
import java.io.*;
|
||||
|
||||
class C {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove expression" "true"
|
||||
// "Remove expression" "true-preview"
|
||||
class X {
|
||||
void test() {
|
||||
for (int i = 0; i < Integer.MAX_VALUE; ) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove expression" "true"
|
||||
// "Remove expression" "true-preview"
|
||||
class X {
|
||||
void test() {
|
||||
for (int i = 0; i < Integer.MAX_VALUE; i<caret> *= 2) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Delete repeated 'I'" "true"
|
||||
// "Delete repeated 'I'" "true-preview"
|
||||
interface I {}
|
||||
class Test {
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Delete repeated 'I'" "true"
|
||||
// "Delete repeated 'I'" "true-preview"
|
||||
interface I {}
|
||||
class Test {
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Delete repeated 'I'" "true"
|
||||
// "Delete repeated 'I'" "true-preview"
|
||||
interface I {}
|
||||
class Test {
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Delete repeated 'I'" "true"
|
||||
// "Delete repeated 'I'" "true-preview"
|
||||
interface I {}
|
||||
class Test {
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Delete repeated 'I'" "true"
|
||||
// "Delete repeated 'I'" "true-preview"
|
||||
interface I {}
|
||||
class Test {
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Delete repeated 'I'" "true"
|
||||
// "Delete repeated 'I'" "true-preview"
|
||||
interface I {}
|
||||
class Test {
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Delete return statement" "true"
|
||||
// "Delete return statement" "true-preview"
|
||||
|
||||
class Test {
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Delete return statement and extract side effects" "true"
|
||||
// "Delete return statement and extract side effects" "true-preview"
|
||||
|
||||
class Test {
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Delete return value" "true"
|
||||
// "Delete return value" "true-preview"
|
||||
|
||||
class Test {
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Delete return value and extract side effects" "true"
|
||||
// "Delete return value and extract side effects" "true-preview"
|
||||
|
||||
class Test {
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Delete return statement" "true"
|
||||
// "Delete return statement" "true-preview"
|
||||
|
||||
class Test {
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Delete return value" "true"
|
||||
// "Delete return value" "true-preview"
|
||||
|
||||
class Test {
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Delete return statement" "true"
|
||||
// "Delete return statement" "true-preview"
|
||||
|
||||
class Test {
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Delete return statement and extract side effects" "true"
|
||||
// "Delete return statement and extract side effects" "true-preview"
|
||||
|
||||
class Test {
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Delete return value" "true"
|
||||
// "Delete return value" "true-preview"
|
||||
|
||||
class Test {
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Delete return value and extract side effects" "true"
|
||||
// "Delete return value and extract side effects" "true-preview"
|
||||
|
||||
class Test {
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Delete return statement" "true"
|
||||
// "Delete return statement" "true-preview"
|
||||
|
||||
class Test {
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Delete return value" "true"
|
||||
// "Delete return value" "true-preview"
|
||||
|
||||
class Test {
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Extract side effects" "true"
|
||||
// "Extract side effects" "true-preview"
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
public class Main {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove expression" "true"
|
||||
// "Remove expression" "true-preview"
|
||||
public class Main {
|
||||
public void test() {
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Extract side effects as an 'if' statement" "true"
|
||||
// "Extract side effects as an 'if' statement" "true-preview"
|
||||
import java.io.File;
|
||||
|
||||
public class Main {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Extract side effect" "true"
|
||||
// "Extract side effect" "true-preview"
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
public class Main {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Extract side effects" "true"
|
||||
// "Extract side effects" "true-preview"
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
public class Main {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Extract side effects" "true"
|
||||
// "Extract side effects" "true-preview"
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
public class Main {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove expression" "true"
|
||||
// "Remove expression" "true-preview"
|
||||
public class Main {
|
||||
public void test() {
|
||||
2 <caret>+ 2;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Extract side effects as an 'if' statement" "true"
|
||||
// "Extract side effects as an 'if' statement" "true-preview"
|
||||
import java.io.File;
|
||||
|
||||
public class Main {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Extract side effect" "true"
|
||||
// "Extract side effect" "true-preview"
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
public class Main {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Extract side effects" "true"
|
||||
// "Extract side effects" "true-preview"
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
public class Main {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove switch branch 'default'" "true"
|
||||
// "Remove switch branch 'default'" "true-preview"
|
||||
enum Day {
|
||||
MONDAY, TUESDAY, WEDNESDAY
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove switch branch '"baz"'" "true"
|
||||
// "Remove switch branch '"baz"'" "true-preview"
|
||||
class Main {
|
||||
public void test() {
|
||||
switch ("foo") {
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user