package de.centerdevice.classcleaner.core.model;

public class CodeReference {

	private CodeElement src;
	private CodeElement dst;

	public CodeReference(CodeElement src, CodeElement dst) {
		this.src = src;
		this.dst = dst;
	}

	public CodeElement getDestination() {
		return dst;
	}

	public CodeElement getSource() {
		return src;
	}

	@Override
	public String toString() {
		return getClassNameWithFallback(src) + " -> " + getClassNameWithFallback(dst);
	}

	protected String getClassNameWithFallback(CodeElement element) {
		if (element == null) {
			return "none";
		}
		return element.getClassName();
	}
}

@@ -74,32 +74,38 @@
 nce %7B%0A%0A%09private 
+final 
 CodeElement src;
@@ -114,16 +114,22 @@
 private 
+final 
 CodeElem
@@ -599,28 +599,24 @@
 element.
-getClassName
+toString
 ();%0A%09%7D%0A%7D

Return full names of references in toString