Skip to content

Commit

Permalink
refactor: removes duplicated code
Browse files Browse the repository at this point in the history
  • Loading branch information
monperrus authored and tdurieux committed Nov 7, 2016
1 parent 170dbb7 commit d50e820
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 723 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
package spoon.support.reflect.declaration;

import org.apache.log4j.Logger;

import spoon.reflect.code.CtComment;
import spoon.reflect.cu.SourcePosition;
import spoon.reflect.declaration.CtAnnotation;
Expand All @@ -37,8 +36,8 @@
import spoon.support.reflect.cu.SourcePositionImpl;
import spoon.support.util.EmptyClearableList;
import spoon.support.util.EmptyClearableSet;
import spoon.support.visitor.DeepRepresentationVisitor;
import spoon.support.visitor.HashcodeVisitor;
import spoon.support.visitor.ShortRepresentationPrinter;
import spoon.support.visitor.TypeReferenceScanner;
import spoon.support.visitor.equals.CloneHelper;
import spoon.support.visitor.equals.EqualsVisitor;
Expand Down Expand Up @@ -98,9 +97,9 @@ public CtElementImpl() {

@Override
public String getShortRepresentation() {
final ShortRepresentationPrinter printer = new ShortRepresentationPrinter();
final DeepRepresentationVisitor printer = new DeepRepresentationVisitor();
printer.scan(this);
return printer.getShortRepresentation();
return printer.getRepresentation();
}


Expand Down
Loading

0 comments on commit d50e820

Please sign in to comment.