more consistent Java inspection names

GitOrigin-RevId: 5c958dfd8b5f55e9e5bede82be5015c3299dd16e
This commit is contained in:
Bas Leijdekkers
2021-12-19 12:50:54 +01:00
committed by intellij-monorepo-bot
parent 6fecec667a
commit ed2c73e98c
44 changed files with 142 additions and 141 deletions

View File

@@ -1,4 +1,4 @@
// "Fix all 'Redundant String operation' problems in file" "true"
// "Fix all 'Redundant 'String' operation' problems in file" "true"
import java.io.ByteArrayOutputStream;
class Main {

View File

@@ -1,4 +1,4 @@
// "Fix all 'Redundant String operation' problems in file" "true"
// "Fix all 'Redundant 'String' operation' problems in file" "true"
import java.io.ByteArrayOutputStream;
import java.io.UnsupportedEncodingException;
import java.nio.charset.Charset;

View File

@@ -1,4 +1,4 @@
// "Fix all 'Redundant String operation' problems in file" "true"
// "Fix all 'Redundant 'String' operation' problems in file" "true"
import java.io.ByteArrayOutputStream;
import java.io.UnsupportedEncodingException;

View File

@@ -1,4 +1,4 @@
// "Fix all 'Redundant String operation' problems in file" "true"
// "Fix all 'Redundant 'String' operation' problems in file" "true"
import java.util.Locale;
public class Main {
public static void main(String[] args) {

View File

@@ -1,4 +1,4 @@
// "Fix all 'Redundant String operation' problems in file" "true"
// "Fix all 'Redundant 'String' operation' problems in file" "true"
class Test {
String foo1(char c) {

View File

@@ -1,4 +1,4 @@
// "Fix all 'Redundant String operation' problems in file" "true"
// "Fix all 'Redundant 'String' operation' problems in file" "true"
class Foo {
public static void main(String[] args) {
StringBuilder sb = new StringBuilder();

View File

@@ -1,4 +1,4 @@
// "Fix all 'Redundant String operation' problems in file" "true"
// "Fix all 'Redundant 'String' operation' problems in file" "true"
class StringBuilderToString {

View File

@@ -1,4 +1,4 @@
// "Fix all 'Redundant String operation' problems in file" "true"
// "Fix all 'Redundant 'String' operation' problems in file" "true"
class Foo {
void test(String s) {
String s1 = s.substring(1);

View File

@@ -1,4 +1,4 @@
// "Fix all 'Redundant String operation' problems in file" "true"
// "Fix all 'Redundant 'String' operation' problems in file" "true"
class Foo {
void test(String s) {
String s1 = "";

View File

@@ -1,4 +1,4 @@
// "Fix all 'Redundant String operation' problems in file" "true"
// "Fix all 'Redundant 'String' operation' problems in file" "true"
class Foo {
void test(String s) {
String s1 = s.substring(1);

View File

@@ -1,4 +1,4 @@
// "Fix all 'Redundant String operation' problems in file" "true"
// "Fix all 'Redundant 'String' operation' problems in file" "true"
class Test {
String foo1(char c) {

View File

@@ -1,4 +1,4 @@
// "Fix all 'Redundant String operation' problems in file" "true"
// "Fix all 'Redundant 'String' operation' problems in file" "true"
class X {
boolean testStrip(String s) {
return s.isBlank();

View File

@@ -1,4 +1,4 @@
// "Fix all 'Redundant String operation' problems in file" "true"
// "Fix all 'Redundant 'String' operation' problems in file" "true"
class X {
void test(String s, int pos, String s2) {
if (s.startsWith("xyzt", pos)) { }

View File

@@ -1,4 +1,4 @@
// "Fix all 'Redundant String operation' problems in file" "true"
// "Fix all 'Redundant 'String' operation' problems in file" "true"
class Foo {
public static void main(String[] args) {
StringBuilder sb = new StringBuilder();

View File

@@ -1,4 +1,4 @@
// "Fix all 'Redundant String operation' problems in file" "true"
// "Fix all 'Redundant 'String' operation' problems in file" "true"
class Foo {
public static void main(String[] args) {
int i = Integer.parseInt(args[2]);

View File

@@ -1,4 +1,4 @@
// "Fix all 'Redundant String operation' problems in file" "true"
// "Fix all 'Redundant 'String' operation' problems in file" "true"
import java.io.ByteArrayOutputStream;
class Main {

View File

@@ -1,4 +1,4 @@
// "Fix all 'Redundant String operation' problems in file" "true"
// "Fix all 'Redundant 'String' operation' problems in file" "true"
import java.io.ByteArrayOutputStream;
import java.io.UnsupportedEncodingException;
import java.nio.charset.Charset;

View File

@@ -1,4 +1,4 @@
// "Fix all 'Redundant String operation' problems in file" "true"
// "Fix all 'Redundant 'String' operation' problems in file" "true"
import java.io.ByteArrayOutputStream;
import java.io.UnsupportedEncodingException;

View File

@@ -1,4 +1,4 @@
// "Fix all 'Redundant String operation' problems in file" "true"
// "Fix all 'Redundant 'String' operation' problems in file" "true"
import java.util.Locale;
public class Main {
public static void main(String[] args) {

View File

@@ -1,4 +1,4 @@
// "Fix all 'Redundant String operation' problems in file" "true"
// "Fix all 'Redundant 'String' operation' problems in file" "true"
class Test {
String foo1(char c) {

View File

@@ -1,4 +1,4 @@
// "Fix all 'Redundant String operation' problems in file" "true"
// "Fix all 'Redundant 'String' operation' problems in file" "true"
class Foo {
public static void main(String[] args) {
StringBuilder sb = new StringBuilder();

View File

@@ -1,4 +1,4 @@
// "Fix all 'Redundant String operation' problems in file" "true"
// "Fix all 'Redundant 'String' operation' problems in file" "true"
class StringBuilderToString {

View File

@@ -1,4 +1,4 @@
// "Fix all 'Redundant String operation' problems in file" "true"
// "Fix all 'Redundant 'String' operation' problems in file" "true"
class Foo {
void test(String s) {
String s1 = s.substring(1, s.leng<caret>th());

View File

@@ -1,4 +1,4 @@
// "Fix all 'Redundant String operation' problems in file" "true"
// "Fix all 'Redundant 'String' operation' problems in file" "true"
class Foo {
void test(String s) {
String s1 = s.substring(s.leng<caret>th());

View File

@@ -1,4 +1,4 @@
// "Fix all 'Redundant String operation' problems in file" "true"
// "Fix all 'Redundant 'String' operation' problems in file" "true"
class Foo {
void test(String s) {
String s1 = s.substring(1);

View File

@@ -1,4 +1,4 @@
// "Fix all 'Redundant String operation' problems in file" "true"
// "Fix all 'Redundant 'String' operation' problems in file" "true"
class Test {
String foo1(char c) {

View File

@@ -1,4 +1,4 @@
// "Fix all 'Redundant String operation' problems in file" "true"
// "Fix all 'Redundant 'String' operation' problems in file" "true"
class X {
boolean testStrip(String s) {
return s.st<caret>rip().isEmpty();

View File

@@ -1,4 +1,4 @@
// "Fix all 'Redundant String operation' problems in file" "true"
// "Fix all 'Redundant 'String' operation' problems in file" "true"
class X {
void test(String s, int pos, String s2) {
if (s.sub<caret>string(pos, pos + 4).equals("xyzt")) { }

View File

@@ -1,4 +1,4 @@
// "Fix all 'Redundant String operation' problems in file" "true"
// "Fix all 'Redundant 'String' operation' problems in file" "true"
class Foo {
public static void main(String[] args) {
StringBuilder sb = new StringBuilder();

View File

@@ -1,4 +1,4 @@
// "Fix all 'Redundant String operation' problems in file" "true"
// "Fix all 'Redundant 'String' operation' problems in file" "true"
class Foo {
public static void main(String[] args) {
int i = Integer.parseInt(args[2]);