Refactoring: remove warning

This commit is contained in:
Nikolay Krasko
2013-07-12 14:46:50 +04:00
parent bf8d5c37ed
commit 68bd7405ff
@@ -172,7 +172,10 @@ public final class QualifiedNamesUtil {
if (!Character.isJavaIdentifierPart(c)) return false; if (!Character.isJavaIdentifierPart(c)) return false;
state = MIDDLE; state = MIDDLE;
} }
else if (state == MIDDLE) {
//noinspection ConstantConditions
assert state == MIDDLE;
if (c == '.') { if (c == '.') {
state = AFTER_DOT; state = AFTER_DOT;
} }
@@ -180,7 +183,6 @@ public final class QualifiedNamesUtil {
return false; return false;
} }
} }
}
return state != AFTER_DOT; return state != AFTER_DOT;
} }