mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't highlight the entire expression
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
+2
-2
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -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 <code>new Boolean(b)</code> #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 <code>new Boolean(true)</code> #loc</description>
|
||||
<description>Boolean constructor call #loc</description>
|
||||
</problem>
|
||||
|
||||
</problems>
|
||||
Reference in New Issue
Block a user