replace 'for (;;)' with 'while (true)'
This commit is contained in:
@@ -318,7 +318,7 @@ public class DescriptorUtils {
|
||||
public static List<DeclarationDescriptor> getPathWithoutRootNsAndModule(@NotNull DeclarationDescriptor descriptor) {
|
||||
List<DeclarationDescriptor> path = Lists.newArrayList();
|
||||
DeclarationDescriptor current = descriptor;
|
||||
for (;;) {
|
||||
while (true) {
|
||||
if (current instanceof NamespaceDescriptor && isRootNamespace((NamespaceDescriptor) current)) {
|
||||
return Lists.reverse(path);
|
||||
}
|
||||
|
||||
@@ -196,7 +196,7 @@ public class FqNameUnsafe {
|
||||
FqNameUnsafe last = new FqNameUnsafe(firstSegment, FqName.ROOT.toUnsafe(), firstSegment);
|
||||
callback.segment(firstSegment, last);
|
||||
|
||||
for (;;) {
|
||||
while (true) {
|
||||
int next = fqName.indexOf('.', pos + 1);
|
||||
if (next < 0) {
|
||||
if (this.parent == null) {
|
||||
|
||||
Reference in New Issue
Block a user