mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-17 20:11:25 +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 @@
|
||||
// "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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user