Remove TestOnly annotation from JetScope#printScopeStructure

Because this method is located in core/ which will be present at runtime, and
this annotation is not needed at runtime
This commit is contained in:
Alexander Udalov
2014-08-14 16:14:05 +04:00
parent df2c8889d4
commit eab0342d39
10 changed files with 3 additions and 21 deletions
@@ -17,7 +17,6 @@
package org.jetbrains.jet.lang.resolve.scopes;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.TestOnly;
import org.jetbrains.jet.lang.descriptors.*;
import org.jetbrains.jet.lang.resolve.name.Name;
import org.jetbrains.jet.utils.Printer;
@@ -89,7 +88,6 @@ public abstract class AbstractScopeAdapter implements JetScope {
return getWorkerScope().getOwnDeclaredDescriptors();
}
@TestOnly
@Override
public void printScopeStructure(@NotNull Printer p) {
p.println(getClass().getSimpleName(), " {");
@@ -17,7 +17,6 @@
package org.jetbrains.jet.lang.resolve.scopes;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.TestOnly;
import org.jetbrains.jet.lang.descriptors.*;
import org.jetbrains.jet.lang.resolve.name.Name;
import org.jetbrains.jet.utils.Printer;
@@ -121,7 +120,6 @@ public class ChainedScope implements JetScope {
return debugName;
}
@TestOnly
@Override
public void printScopeStructure(@NotNull Printer p) {
p.println(getClass().getSimpleName(), ": ", debugName, " {");
@@ -20,7 +20,6 @@ import kotlin.Function1;
import kotlin.KotlinPackage;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.annotations.TestOnly;
import org.jetbrains.jet.lang.descriptors.*;
import org.jetbrains.jet.lang.resolve.name.Name;
import org.jetbrains.jet.utils.Printer;
@@ -100,7 +99,6 @@ public class FilteringScope implements JetScope {
return KotlinPackage.filter(workerScope.getOwnDeclaredDescriptors(), predicate);
}
@TestOnly
@Override
public void printScopeStructure(@NotNull Printer p) {
p.println(getClass().getSimpleName(), " {");
@@ -19,7 +19,6 @@ package org.jetbrains.jet.lang.resolve.scopes;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.annotations.ReadOnly;
import org.jetbrains.annotations.TestOnly;
import org.jetbrains.jet.lang.descriptors.*;
import org.jetbrains.jet.lang.resolve.name.Name;
import org.jetbrains.jet.utils.Printer;
@@ -93,6 +92,8 @@ public interface JetScope {
@ReadOnly
Collection<DeclarationDescriptor> getOwnDeclaredDescriptors();
@TestOnly
/**
* Is supposed to be used in tests and debug only
*/
void printScopeStructure(@NotNull Printer p);
}
@@ -18,7 +18,6 @@ package org.jetbrains.jet.lang.resolve.scopes;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.annotations.TestOnly;
import org.jetbrains.jet.lang.descriptors.*;
import org.jetbrains.jet.lang.resolve.name.Name;
import org.jetbrains.jet.utils.Printer;
@@ -81,7 +80,6 @@ public abstract class JetScopeImpl implements JetScope {
}
// This method should not be implemented here by default: every scope class has its unique structure pattern
@TestOnly
@Override
public abstract void printScopeStructure(@NotNull Printer p);
}
@@ -18,7 +18,6 @@ package org.jetbrains.jet.lang.resolve.scopes;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.annotations.TestOnly;
import org.jetbrains.jet.lang.descriptors.*;
import org.jetbrains.jet.lang.resolve.name.Name;
import org.jetbrains.jet.lang.types.TypeSubstitutor;
@@ -137,7 +136,6 @@ public class SubstitutingScope implements JetScope {
return substitute(workerScope.getOwnDeclaredDescriptors());
}
@TestOnly
@Override
public void printScopeStructure(@NotNull Printer p) {
p.println(getClass().getSimpleName(), " {");