[Commonizer] Classifiers

This commit is contained in:
Dmitriy Dolovov
2019-09-09 15:50:32 +07:00
parent e6b17e4bb5
commit 1a49d88578
74 changed files with 2473 additions and 1316 deletions
@@ -159,8 +159,11 @@ public final class FqNameUnsafe {
}
public boolean startsWith(@NotNull Name segment) {
if (isRoot())
return false;
int firstDot = fqName.indexOf('.');
return !isRoot() && fqName.regionMatches(0, segment.asString(), 0, firstDot == -1 ? fqName.length() : firstDot);
return fqName.regionMatches(0, segment.asString(), 0, firstDot == -1 ? fqName.length() : firstDot);
}
@NotNull