mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-23 15:01:27 +07:00
[java-intentions] More preview tests; minor fixes
GitOrigin-RevId: 22a46c15d8900d8a31514846755a013f6a67ad42
This commit is contained in:
committed by
intellij-monorepo-bot
parent
e74564a52c
commit
7e1064ea3c
@@ -1,4 +1,4 @@
|
||||
// "Simplify 'Objects.nonNull(...)' to true extracting side effects" "true"
|
||||
// "Simplify 'Objects.nonNull(...)' to true extracting side effects" "true-preview"
|
||||
import java.util.Set;
|
||||
import java.util.Objects;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Simplify 'arg.isEmpty()' to false" "true"
|
||||
// "Simplify 'arg.isEmpty()' to false" "true-preview"
|
||||
class Test {
|
||||
void test() {
|
||||
String arg = "12";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Simplify 'arg.isEmpty()' to false" "true"
|
||||
// "Simplify 'arg.isEmpty()' to false" "true-preview"
|
||||
class Test {
|
||||
void test() {
|
||||
String arg = "12";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Simplify 'b' to true" "true"
|
||||
// "Simplify 'b' to true" "true-preview"
|
||||
class A {
|
||||
void foo(boolean b) {
|
||||
if (b) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Simplify 'test(...) || obj == null' to true extracting side effects" "true"
|
||||
// "Simplify 'test(...) || obj == null' to true extracting side effects" "true-preview"
|
||||
import org.jetbrains.annotations.Contract;
|
||||
|
||||
class X {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Simplify 'pureConsumer(...)' to true extracting side effects" "true"
|
||||
// "Simplify 'pureConsumer(...)' to true extracting side effects" "true-preview"
|
||||
import org.jetbrains.annotations.Contract;
|
||||
|
||||
public class Main {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Simplify 'Objects.nonNull(...)' to true extracting side effects" "true"
|
||||
// "Simplify 'Objects.nonNull(...)' to true extracting side effects" "true-preview"
|
||||
import java.util.Set;
|
||||
import java.util.Objects;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Simplify 'arg.isEmpty()' to false" "true"
|
||||
// "Simplify 'arg.isEmpty()' to false" "true-preview"
|
||||
class Test {
|
||||
void test() {
|
||||
String arg = "12";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Simplify 'arg.isEmpty()' to false" "true"
|
||||
// "Simplify 'arg.isEmpty()' to false" "true-preview"
|
||||
class Test {
|
||||
void test() {
|
||||
String arg = "12";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Simplify 'b' to true" "true"
|
||||
// "Simplify 'b' to true" "true-preview"
|
||||
class A {
|
||||
void foo(boolean b) {
|
||||
if (b) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Simplify 'test(...) || obj == null' to true extracting side effects" "true"
|
||||
// "Simplify 'test(...) || obj == null' to true extracting side effects" "true-preview"
|
||||
import org.jetbrains.annotations.Contract;
|
||||
|
||||
class X {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Simplify 'pureConsumer(...)' to true extracting side effects" "true"
|
||||
// "Simplify 'pureConsumer(...)' to true extracting side effects" "true-preview"
|
||||
import org.jetbrains.annotations.Contract;
|
||||
|
||||
public class Main {
|
||||
|
||||
Reference in New Issue
Block a user