Refactoring: remove warning

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