From 62851d0af30cdb0c54046627585451a468aacd2a Mon Sep 17 00:00:00 2001 From: nickl- Date: Mon, 30 Oct 2017 20:37:23 +0200 Subject: Source walk/Spring clean/Parameterize/Enhance et.al. The following were applied during multiple itterations through the source. * Parameterize raw types. * Mark unused members. * Annotate override and deprecated methods. * Convert loops to enhance for loop. * Remove redundant else statements. * Widening collection type references. * Optimize code for improved readability. * Squash compiler warnings. * Identify smells. --- src/main/javassist/compiler/ast/Pair.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/main/javassist/compiler/ast/Pair.java') diff --git a/src/main/javassist/compiler/ast/Pair.java b/src/main/javassist/compiler/ast/Pair.java index 553c9557..840c1145 100644 --- a/src/main/javassist/compiler/ast/Pair.java +++ b/src/main/javassist/compiler/ast/Pair.java @@ -32,8 +32,10 @@ public class Pair extends ASTree { right = _right; } + @Override public void accept(Visitor v) throws CompileError { v.atPair(this); } + @Override public String toString() { StringBuffer sbuf = new StringBuffer(); sbuf.append("( "); @@ -44,11 +46,15 @@ public class Pair extends ASTree { return sbuf.toString(); } + @Override public ASTree getLeft() { return left; } + @Override public ASTree getRight() { return right; } + @Override public void setLeft(ASTree _left) { left = _left; } + @Override public void setRight(ASTree _right) { right = _right; } } -- cgit v1.2.3