[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 @@
// "Convert variable 'str1' from String to StringBuilder" "true"
// "Convert variable 'str1' from String to StringBuilder" "true-preview"
public class IntentionBug {
public static void main(String[] args) {

View File

@@ -1,4 +1,4 @@
// "Convert variable 'res' from String to StringBuilder" "true"
// "Convert variable 'res' from String to StringBuilder" "true-preview"
public class Main {
String test(String[] strings) {

View File

@@ -1,4 +1,4 @@
// "Convert variable 'res' from String to StringBuilder" "true"
// "Convert variable 'res' from String to StringBuilder" "true-preview"
public class Main {
String test(String[] strings) {

View File

@@ -1,4 +1,4 @@
// "Convert variable 'res' from String to StringBuilder" "true"
// "Convert variable 'res' from String to StringBuilder" "true-preview"
public class Main {
String test(String[] strings) {

View File

@@ -1,4 +1,4 @@
// "Convert variable 'res' from String to StringBuilder (null-safe)" "true"
// "Convert variable 'res' from String to StringBuilder (null-safe)" "true-preview"
class Main {
String test(String[] strings) {

View File

@@ -1,4 +1,4 @@
// "Convert variable 'res' from String to StringBuilder (null-safe)" "true"
// "Convert variable 'res' from String to StringBuilder (null-safe)" "true-preview"
public class Main {
String test(String[] strings) {

View File

@@ -1,4 +1,4 @@
// "Convert variable 'res' from String to StringBuilder (null-safe)" "true"
// "Convert variable 'res' from String to StringBuilder (null-safe)" "true-preview"
public class Main {
String test(String[] strings) {

View File

@@ -1,4 +1,4 @@
// "Convert variable 'res' from String to StringBuilder (null-safe)" "true"
// "Convert variable 'res' from String to StringBuilder (null-safe)" "true-preview"
import java.util.Optional;

View File

@@ -1,4 +1,4 @@
// "Convert variable 'res' from String to StringBuilder" "true"
// "Convert variable 'res' from String to StringBuilder" "true-preview"
public class Main {
void test(String[] strings) {

View File

@@ -1,4 +1,4 @@
// "Convert variable 'res' from String to StringBuilder" "true"
// "Convert variable 'res' from String to StringBuilder" "true-preview"
public class Main {
String test(String[] strings) {

View File

@@ -1,4 +1,4 @@
// "Convert variable 'res' from String to StringBuilder" "true"
// "Convert variable 'res' from String to StringBuilder" "true-preview"
public class Main {
String test(String[] strings) {

View File

@@ -1,4 +1,4 @@
// "Convert variable 'res' from String to StringBuilder" "true"
// "Convert variable 'res' from String to StringBuilder" "true-preview"
public class Main {
String test(String[] strings) {

View File

@@ -1,4 +1,4 @@
// "Convert variable 'res' from String to StringBuilder" "true"
// "Convert variable 'res' from String to StringBuilder" "true-preview"
public class Main {
String test(int[] ints) {

View File

@@ -1,4 +1,4 @@
// "Introduce new StringBuilder to update variable 's'" "true"
// "Introduce new StringBuilder to update variable 's'" "true-preview"
public class Main {
void test(boolean b) {

View File

@@ -1,4 +1,4 @@
// "Introduce new StringBuilder to update variable 'res' (null-safe)" "true"
// "Introduce new StringBuilder to update variable 'res' (null-safe)" "true-preview"
public class SB {
public static void main(String[] args) {
StringBuilder resBuilder = null;

View File

@@ -1,4 +1,4 @@
// "Introduce new StringBuilder to update variable 's'" "true"
// "Introduce new StringBuilder to update variable 's'" "true-preview"
public class Main {
void test(String s) {

View File

@@ -1,4 +1,4 @@
// "Convert variable 'str1' from String to StringBuilder" "true"
// "Convert variable 'str1' from String to StringBuilder" "true-preview"
public class IntentionBug {
public static void main(String[] args) {

View File

@@ -1,4 +1,4 @@
// "Convert variable 'res' from String to StringBuilder" "true"
// "Convert variable 'res' from String to StringBuilder" "true-preview"
public class Main {
String test(String[] strings) {

View File

@@ -1,4 +1,4 @@
// "Convert variable 'res' from String to StringBuilder" "true"
// "Convert variable 'res' from String to StringBuilder" "true-preview"
public class Main {
String test(String[] strings) {

View File

@@ -1,4 +1,4 @@
// "Convert variable 'res' from String to StringBuilder" "true"
// "Convert variable 'res' from String to StringBuilder" "true-preview"
public class Main {
String test(String[] strings) {

View File

@@ -1,4 +1,4 @@
// "Convert variable 'res' from String to StringBuilder (null-safe)" "true"
// "Convert variable 'res' from String to StringBuilder (null-safe)" "true-preview"
class Main {
String test(String[] strings) {

View File

@@ -1,4 +1,4 @@
// "Convert variable 'res' from String to StringBuilder (null-safe)" "true"
// "Convert variable 'res' from String to StringBuilder (null-safe)" "true-preview"
public class Main {
String test(String[] strings) {

View File

@@ -1,4 +1,4 @@
// "Convert variable 'res' from String to StringBuilder (null-safe)" "true"
// "Convert variable 'res' from String to StringBuilder (null-safe)" "true-preview"
public class Main {
String test(String[] strings) {

View File

@@ -1,4 +1,4 @@
// "Convert variable 'res' from String to StringBuilder (null-safe)" "true"
// "Convert variable 'res' from String to StringBuilder (null-safe)" "true-preview"
public class Main {
String test(String[] strings) {

View File

@@ -1,4 +1,4 @@
// "Convert variable 'res' from String to StringBuilder" "true"
// "Convert variable 'res' from String to StringBuilder" "true-preview"
public class Main {
void test(String[] strings) {

View File

@@ -1,4 +1,4 @@
// "Convert variable 'res' from String to StringBuilder" "true"
// "Convert variable 'res' from String to StringBuilder" "true-preview"
public class Main {
String test(String[] strings) {

View File

@@ -1,4 +1,4 @@
// "Convert variable 'res' from String to StringBuilder" "true"
// "Convert variable 'res' from String to StringBuilder" "true-preview"
public class Main {
String test(String[] strings) {

View File

@@ -1,4 +1,4 @@
// "Convert variable 'res' from String to StringBuilder" "true"
// "Convert variable 'res' from String to StringBuilder" "true-preview"
public class Main {
String test(String[] strings) {

View File

@@ -1,4 +1,4 @@
// "Convert variable 'res' from String to StringBuilder" "true"
// "Convert variable 'res' from String to StringBuilder" "true-preview"
public class Main {
String test(int[] ints) {

View File

@@ -1,4 +1,4 @@
// "Introduce new StringBuilder to update variable 's'" "true"
// "Introduce new StringBuilder to update variable 's'" "true-preview"
public class Main {
void test(boolean b) {

View File

@@ -1,4 +1,4 @@
// "Introduce new StringBuilder to update variable 'res' (null-safe)" "true"
// "Introduce new StringBuilder to update variable 'res' (null-safe)" "true-preview"
public class SB {
public static void main(String[] args) {
String res = null;

View File

@@ -1,4 +1,4 @@
// "Introduce new StringBuilder to update variable 's'" "true"
// "Introduce new StringBuilder to update variable 's'" "true-preview"
public class Main {
void test(String s) {