formatting
This commit is contained in:
@@ -296,12 +296,12 @@ public class DescriptorUtils {
|
||||
}
|
||||
|
||||
public static boolean isClassObject(@NotNull DeclarationDescriptor descriptor) {
|
||||
if(descriptor instanceof ClassDescriptor) {
|
||||
if (descriptor instanceof ClassDescriptor) {
|
||||
ClassDescriptor classDescriptor = (ClassDescriptor) descriptor;
|
||||
if(classDescriptor.getKind() == ClassKind.OBJECT) {
|
||||
if(classDescriptor.getContainingDeclaration() instanceof ClassDescriptor) {
|
||||
if (classDescriptor.getKind() == ClassKind.OBJECT) {
|
||||
if (classDescriptor.getContainingDeclaration() instanceof ClassDescriptor) {
|
||||
ClassDescriptor containingDeclaration = (ClassDescriptor) classDescriptor.getContainingDeclaration();
|
||||
if(classDescriptor.getDefaultType().equals(containingDeclaration.getClassObjectType())) {
|
||||
if (classDescriptor.getDefaultType().equals(containingDeclaration.getClassObjectType())) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -116,7 +116,7 @@ public class SubstitutionUtils {
|
||||
}
|
||||
|
||||
for(TypeProjection proj : type.getArguments()) {
|
||||
if(hasUnsubstitutedTypeParameters(proj.getType())) {
|
||||
if (hasUnsubstitutedTypeParameters(proj.getType())) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -166,7 +166,7 @@ public class JetStandardLibrary {
|
||||
}
|
||||
|
||||
private void initStdClasses() {
|
||||
if(libraryScope == null) {
|
||||
if (libraryScope == null) {
|
||||
this.libraryScope = JetStandardClasses.STANDARD_CLASSES_NAMESPACE.getMemberScope();
|
||||
|
||||
this.numberClass = (ClassDescriptor) libraryScope.getClassifier(Name.identifier("Number"));
|
||||
@@ -504,7 +504,7 @@ public class JetStandardLibrary {
|
||||
|
||||
public final boolean isVolatile(PropertyDescriptor descriptor) {
|
||||
List<AnnotationDescriptor> annotations = descriptor.getOriginal().getAnnotations();
|
||||
if(annotations != null) {
|
||||
if (annotations != null) {
|
||||
for(AnnotationDescriptor d: annotations) {
|
||||
if (d.getType().equals(getVolatileType())) { return true; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user