Minor, make callback method empty, not abstract

This commit is contained in:
Alexander Udalov
2013-07-15 23:08:28 +04:00
parent 132f77d3c4
commit 8cbdb2924a
3 changed files with 2 additions and 13 deletions
@@ -72,5 +72,6 @@ public abstract class AbstractDescriptorFinder implements DescriptorFinder {
@Nullable @Nullable
protected abstract ClassData getClassData(@NotNull ClassId classId); protected abstract ClassData getClassData(@NotNull ClassId classId);
protected abstract void classDescriptorCreated(@NotNull ClassDescriptor classDescriptor); protected void classDescriptorCreated(@NotNull ClassDescriptor classDescriptor) {
}
} }
@@ -6,9 +6,7 @@ import org.jetbrains.annotations.Nullable;
import org.jetbrains.jet.descriptors.serialization.*; import org.jetbrains.jet.descriptors.serialization.*;
import org.jetbrains.jet.descriptors.serialization.descriptors.AnnotationDeserializer; import org.jetbrains.jet.descriptors.serialization.descriptors.AnnotationDeserializer;
import org.jetbrains.jet.descriptors.serialization.descriptors.DeserializedPackageMemberScope; import org.jetbrains.jet.descriptors.serialization.descriptors.DeserializedPackageMemberScope;
import org.jetbrains.jet.lang.descriptors.ClassDescriptor;
import org.jetbrains.jet.lang.descriptors.NamespaceDescriptor; import org.jetbrains.jet.lang.descriptors.NamespaceDescriptor;
import org.jetbrains.jet.lang.descriptors.ReceiverParameterDescriptor;
import org.jetbrains.jet.lang.descriptors.annotations.AnnotationDescriptor; import org.jetbrains.jet.lang.descriptors.annotations.AnnotationDescriptor;
import org.jetbrains.jet.lang.descriptors.impl.AbstractNamespaceDescriptorImpl; import org.jetbrains.jet.lang.descriptors.impl.AbstractNamespaceDescriptorImpl;
import org.jetbrains.jet.lang.resolve.lazy.storage.NotNullLazyValue; import org.jetbrains.jet.lang.resolve.lazy.storage.NotNullLazyValue;
@@ -18,7 +16,6 @@ import org.jetbrains.jet.lang.resolve.name.Name;
import org.jetbrains.jet.lang.resolve.scopes.JetScope; import org.jetbrains.jet.lang.resolve.scopes.JetScope;
import java.io.DataInputStream; import java.io.DataInputStream;
import java.io.EOFException;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import java.util.ArrayList; import java.util.ArrayList;
@@ -103,11 +100,6 @@ class BuiltinsNamespaceDescriptorImpl extends AbstractNamespaceDescriptorImpl {
? classNames.compute() ? classNames.compute()
: Collections.<Name>emptyList(); : Collections.<Name>emptyList();
} }
@Override
protected void classDescriptorCreated(@NotNull ClassDescriptor classDescriptor) {
// Do nothing
}
}; };
members = new DeserializedPackageMemberScope( members = new DeserializedPackageMemberScope(
@@ -97,9 +97,5 @@ public class KotlinClassAnnotationTest extends CodegenTestCase {
public Collection<Name> getClassNames(@NotNull FqName packageName) { public Collection<Name> getClassNames(@NotNull FqName packageName) {
throw new UnsupportedOperationException(); throw new UnsupportedOperationException();
} }
@Override
protected void classDescriptorCreated(@NotNull ClassDescriptor classDescriptor) {
}
} }
} }