[java-intentions] More preview tests; minor fixes

GitOrigin-RevId: 22a46c15d8900d8a31514846755a013f6a67ad42
This commit is contained in:
Tagir Valeev
2022-07-28 14:07:20 +02:00
committed by intellij-monorepo-bot
parent e74564a52c
commit 7e1064ea3c
2540 changed files with 2706 additions and 2696 deletions

View File

@@ -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);

View File

@@ -1,4 +1,4 @@
// "Replace with '.absent()'" "true"
// "Replace with '.absent()'" "true-preview"
class A{
void test(){
com.google.common.base.Optional.absent(<caret>);

View File

@@ -1,4 +1,4 @@
// "Replace with '.of()'" "true"
// "Replace with '.of()'" "true-preview"
class A{
void test(){
java.util.Optional.of(1<caret>1);

View File

@@ -1,4 +1,4 @@
// "Replace with '.of()'" "true"
// "Replace with '.of()'" "true-preview"
import java.util.Optional;
import static java.util.Optional.ofNullable;

View File

@@ -1,4 +1,4 @@
// "Replace with '.of()'" "true"
// "Replace with '.of()'" "true-preview"
import static java.util.Optional.*;
class A{

View File

@@ -1,4 +1,4 @@
// "Replace with '.of()'" "true"
// "Replace with '.of()'" "true-preview"
import java.util.Optional;
import static java.util.Optional.*;

View File

@@ -1,4 +1,4 @@
// "Replace with '.of()'" "true"
// "Replace with '.of()'" "true-preview"
class A{
void test(String s){

View File

@@ -1,4 +1,4 @@
// "Replace with '.empty()'" "true"
// "Replace with '.empty()'" "true-preview"
class A {
void test() {
String s = null;

View File

@@ -1,4 +1,4 @@
// "Replace with '.empty()'" "true"
// "Replace with '.empty()'" "true-preview"
class A {
void test() {
String s = null;

View File

@@ -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);

View File

@@ -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);

View File

@@ -1,4 +1,4 @@
// "Replace with '.of()'" "true"
// "Replace with '.of()'" "true-preview"
class A{
void test(){
java.util.Optional.ofNullable(1<caret>1);

View File

@@ -1,4 +1,4 @@
// "Replace with '.of()'" "true"
// "Replace with '.of()'" "true-preview"
import static java.util.Optional.ofNullable;
class A{

View File

@@ -1,4 +1,4 @@
// "Replace with '.of()'" "true"
// "Replace with '.of()'" "true-preview"
import static java.util.Optional.*;
class A{

View File

@@ -1,4 +1,4 @@
// "Replace with '.of()'" "true"
// "Replace with '.of()'" "true-preview"
import static java.util.Optional.*;
class A{

View File

@@ -1,4 +1,4 @@
// "Replace with '.of()'" "true"
// "Replace with '.of()'" "true-preview"
class A{
void test(String s){

View File

@@ -1,4 +1,4 @@
// "Replace with '.empty()'" "true"
// "Replace with '.empty()'" "true-preview"
class A {
void test() {
String s = null;

View File

@@ -1,4 +1,4 @@
// "Replace with '.empty()'" "true"
// "Replace with '.empty()'" "true-preview"
class A {
void test() {
String s = null;