mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-03 11:47:50 +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 @@
|
||||
// "Replace with '.of()'" "true"
|
||||
// "Replace with '.of()'" "true-preview"
|
||||
class A{
|
||||
void test(){
|
||||
com.google.common.base.Optional.of(1<caret>1);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with '.absent()'" "true"
|
||||
// "Replace with '.absent()'" "true-preview"
|
||||
class A{
|
||||
void test(){
|
||||
com.google.common.base.Optional.absent(<caret>);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with '.of()'" "true"
|
||||
// "Replace with '.of()'" "true-preview"
|
||||
class A{
|
||||
void test(){
|
||||
java.util.Optional.of(1<caret>1);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with '.of()'" "true"
|
||||
// "Replace with '.of()'" "true-preview"
|
||||
import java.util.Optional;
|
||||
|
||||
import static java.util.Optional.ofNullable;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with '.of()'" "true"
|
||||
// "Replace with '.of()'" "true-preview"
|
||||
import static java.util.Optional.*;
|
||||
|
||||
class A{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with '.of()'" "true"
|
||||
// "Replace with '.of()'" "true-preview"
|
||||
import java.util.Optional;
|
||||
|
||||
import static java.util.Optional.*;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with '.of()'" "true"
|
||||
// "Replace with '.of()'" "true-preview"
|
||||
|
||||
class A{
|
||||
void test(String s){
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with '.empty()'" "true"
|
||||
// "Replace with '.empty()'" "true-preview"
|
||||
class A {
|
||||
void test() {
|
||||
String s = null;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with '.empty()'" "true"
|
||||
// "Replace with '.empty()'" "true-preview"
|
||||
class A {
|
||||
void test() {
|
||||
String s = null;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with '.of()'" "true"
|
||||
// "Replace with '.of()'" "true-preview"
|
||||
class A{
|
||||
void test(){
|
||||
com.google.common.base.Optional.fromNullable(1<caret>1);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with '.absent()'" "true"
|
||||
// "Replace with '.absent()'" "true-preview"
|
||||
class A{
|
||||
void test(){
|
||||
com.google.common.base.Optional.fromNullable(n<caret>ull);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with '.of()'" "true"
|
||||
// "Replace with '.of()'" "true-preview"
|
||||
class A{
|
||||
void test(){
|
||||
java.util.Optional.ofNullable(1<caret>1);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with '.of()'" "true"
|
||||
// "Replace with '.of()'" "true-preview"
|
||||
import static java.util.Optional.ofNullable;
|
||||
|
||||
class A{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with '.of()'" "true"
|
||||
// "Replace with '.of()'" "true-preview"
|
||||
import static java.util.Optional.*;
|
||||
|
||||
class A{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with '.of()'" "true"
|
||||
// "Replace with '.of()'" "true-preview"
|
||||
import static java.util.Optional.*;
|
||||
|
||||
class A{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with '.of()'" "true"
|
||||
// "Replace with '.of()'" "true-preview"
|
||||
|
||||
class A{
|
||||
void test(String s){
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with '.empty()'" "true"
|
||||
// "Replace with '.empty()'" "true-preview"
|
||||
class A {
|
||||
void test() {
|
||||
String s = null;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Replace with '.empty()'" "true"
|
||||
// "Replace with '.empty()'" "true-preview"
|
||||
class A {
|
||||
void test() {
|
||||
String s = null;
|
||||
|
||||
Reference in New Issue
Block a user