Utilities moved closer to their usages and rewritten to Kotlin
This commit is contained in:
committed by
Alexander Udalov
parent
e119ca27ca
commit
76c722b81c
@@ -16,6 +16,8 @@
|
||||
|
||||
package org.jetbrains.jet.lang.descriptors;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public enum Modality {
|
||||
// THE ORDER OF ENTRIES MATTERS HERE
|
||||
FINAL(false),
|
||||
@@ -32,6 +34,7 @@ public enum Modality {
|
||||
return overridable;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static Modality convertFromFlags(boolean _abstract, boolean open) {
|
||||
if (_abstract) return ABSTRACT;
|
||||
if (open) return OPEN;
|
||||
|
||||
+2
@@ -202,6 +202,8 @@ public abstract class MutableClassDescriptorLite extends ClassDescriptorBase {
|
||||
}
|
||||
|
||||
private PackageLikeBuilder builder = null;
|
||||
|
||||
@NotNull
|
||||
public PackageLikeBuilder getBuilder() {
|
||||
if (builder == null) {
|
||||
builder = new PackageLikeBuilder() {
|
||||
|
||||
Reference in New Issue
Block a user