mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-10-04 11:26:44 -04:00
Changes suggested by Intellij in the category "Performance".
Updated.
This commit is contained in:
@@ -88,7 +88,7 @@ public final class BeanUtil {
|
||||
|
||||
while (begIdx < pProperty.length() && begIdx >= 0) {
|
||||
|
||||
endIdx = pProperty.indexOf(".", endIdx + 1);
|
||||
endIdx = pProperty.indexOf('.', endIdx + 1);
|
||||
if (endIdx > 0) {
|
||||
subProp = pProperty.substring(begIdx, endIdx);
|
||||
begIdx = endIdx + 1;
|
||||
@@ -106,7 +106,7 @@ public final class BeanUtil {
|
||||
Class[] paramClass = new Class[0];
|
||||
|
||||
int begBracket;
|
||||
if ((begBracket = subProp.indexOf("[")) > 0) {
|
||||
if ((begBracket = subProp.indexOf('[')) > 0) {
|
||||
// An error if there is no matching bracket
|
||||
if (!subProp.endsWith("]")) {
|
||||
return null;
|
||||
|
@@ -622,7 +622,7 @@ public class WildcardStringParser {
|
||||
buffer.append("\n");
|
||||
buffer.append(" Format: <state index>: <character> (<last free state>)");
|
||||
buffer.append("\n");
|
||||
buffer.append(" Number of strings parsed: " + totalNumberOfStringsParsed);
|
||||
buffer.append(" Number of strings parsed: ").append(totalNumberOfStringsParsed);
|
||||
buffer.append("\n");
|
||||
}
|
||||
return buffer.toString();
|
||||
|
Reference in New Issue
Block a user