Refactoring: rename TEXT to FQNAMES_IN_TYPES

This commit is contained in:
Nikolay Krasko
2014-04-16 16:29:29 +04:00
parent 962044f887
commit 068c9636fc
39 changed files with 64 additions and 65 deletions
@@ -176,6 +176,6 @@ class LazyJavaAnnotationDescriptor(
override fun toString(): String {
return DescriptorRenderer.TEXT.renderAnnotation(this)
return DescriptorRenderer.FQNAMES_IN_TYPES.renderAnnotation(this)
}
}
@@ -71,6 +71,6 @@ public class AnnotationDescriptorImpl implements AnnotationDescriptor {
@Override
public String toString() {
return DescriptorRenderer.TEXT.renderAnnotation(this);
return DescriptorRenderer.FQNAMES_IN_TYPES.renderAnnotation(this);
}
}
@@ -194,7 +194,7 @@ public class TypeParameterDescriptorImpl extends DeclarationDescriptorNonRootImp
@Override
public String toString() {
try {
return DescriptorRenderer.TEXT.render(this);
return DescriptorRenderer.FQNAMES_IN_TYPES.render(this);
} catch (Exception e) {
return this.getClass().getName() + "@" + System.identityHashCode(this);
}
@@ -54,7 +54,7 @@ public interface DescriptorRenderer extends Renderer<DeclarationDescriptor> {
.setModifiers()
.setStartFromName(true).build();
DescriptorRenderer TEXT = new DescriptorRendererBuilder().build();
DescriptorRenderer FQNAMES_IN_TYPES = new DescriptorRendererBuilder().build();
DescriptorRenderer SHORT_NAMES_IN_TYPES = new DescriptorRendererBuilder().setShortNames(true).build();