don't highlight the entire expression

This commit is contained in:
Bas Leijdekkers
2014-02-07 16:20:12 +01:00
parent 651545ed7e
commit bbfa3ce0a9
3 changed files with 5 additions and 5 deletions
@@ -1053,7 +1053,7 @@ string.replaceable.by.string.buffer.problem.descriptor=Non-constant <code>String
collections.must.have.initial.capacity.problem.descriptor=<code>#ref</code> without initial capacity #loc
string.concatenation.in.loops.problem.descriptor=String concatenation <code>#ref</code> in loop #loc
string.concatenation.inside.string.buffer.append.problem.descriptor=String concatenation as argument to <code>{0}.#ref()</code> call #loc
boolean.constructor.problem.descriptor=Boolean constructor call <code>#ref</code> #loc
boolean.constructor.problem.descriptor=Boolean constructor call #loc
string.to.string.problem.descriptor=<code>#ref</code> is redundant #loc
substring.zero.problem.descriptor=<code>#ref</code> is redundant #loc
string.buffer.to.string.in.concatenation.problem.descriptor=Calls to <code>StringBuffer.#ref()</code> in concatenation #loc
@@ -1,5 +1,5 @@
/*
* Copyright 2003-2013 Dave Griffith, Bas Leijdekkers
* Copyright 2003-2014 Dave Griffith, Bas Leijdekkers
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -173,7 +173,7 @@ public class BooleanConstructorInspection extends BaseInspection {
if (expressions.length != 1) {
return;
}
registerError(expression);
registerNewExpressionError(expression);
}
}
}
@@ -4,14 +4,14 @@
<file>BooleanConstructor.java</file>
<line>7</line>
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Boolean constructor call</problem_class>
<description>Boolean constructor call &lt;code&gt;new Boolean(b)&lt;/code&gt; #loc</description>
<description>Boolean constructor call #loc</description>
</problem>
<problem>
<file>BooleanConstructor.java</file>
<line>8</line>
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Boolean constructor call</problem_class>
<description>Boolean constructor call &lt;code&gt;new Boolean(true)&lt;/code&gt; #loc</description>
<description>Boolean constructor call #loc</description>
</problem>
</problems>