IG: more consistent inspection name

This commit is contained in:
Bas Leijdekkers
2015-12-31 14:46:19 +01:00
parent a6fe4c6d2f
commit 367f780e77
2 changed files with 4 additions and 4 deletions
@@ -1874,8 +1874,8 @@ array.hash.code.display.name='hashCode()' called on array
array.hash.code.problem.descriptor=<code>#ref()</code> called on array should probably be 'Arrays.hashCode()' #loc
arrays.deep.hash.code.quickfix=Replace with 'Arrays.deepHashCode()'
arrays.hash.code.quickfix=Replace with 'Arrays.hashCode()'
method.can.be.variable.arity.method.display.name=Method can be variable arity method
method.can.be.variable.arity.method.problem.descriptor=<code>#ref()</code> can be converted to variable arity method #loc
method.can.be.variable.arity.method.display.name=Method can be varargs method
method.can.be.variable.arity.method.problem.descriptor=<code>#ref()</code> can be converted to varargs method #loc
method.can.be.variable.arity.method.ignore.byte.short.option=Ignore methods with a last parameter of type byte[] or short[]
method.can.be.variable.arity.method.ignore.multiple.arrays.option=Ignore methods with multiple array parameters
convert.to.variable.arity.method.quickfix=Convert to varargs method
@@ -7,7 +7,7 @@ public class MethodCanBeVariableArity {
public void method(String... s) {}
public void <warning descr="'convertMe()' can be converted to variable arity method">convertMe</warning>(String[] ss) {}
public void <warning descr="'convertMe()' can be converted to varargs method">convertMe</warning>(String[] ss) {}
public void convertMeNot(byte[] bs) {}
}
@@ -31,7 +31,7 @@ class Annotated {
void m(String[] ss) {}
}
interface X {
void <warning descr="'m()' can be converted to variable arity method">m</warning>(String[] ss);
void <warning descr="'m()' can be converted to varargs method">m</warning>(String[] ss);
}
class Yes {
void m(int[] is, int[] js) {}