The great tab cleanup of 2012

This commit is contained in:
Ben Gruver 2012-09-23 21:16:21 -07:00
parent 8d299c0222
commit 40c48da564
5 changed files with 1952 additions and 1944 deletions

View File

@ -262,7 +262,7 @@ public class ClassDefinition {
classDefItem.getClassType().getTypeDescriptor(), field.field.getShortFieldString())); classDefItem.getClassType().getTypeDescriptor(), field.field.getShortFieldString()));
} }
FieldDefinition.writeTo(fieldWriter, field, null, fieldAnnotations, false); FieldDefinition.writeTo(fieldWriter, field, null, fieldAnnotations, false);
} }
} }

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -85,19 +85,19 @@ class RadixTreeNode<T> {
this.childern = childern; this.childern = childern;
} }
public int getNumberOfMatchingCharacters(String key) { public int getNumberOfMatchingCharacters(String key) {
int numberOfMatchingCharacters = 0; int numberOfMatchingCharacters = 0;
while (numberOfMatchingCharacters < key.length() && numberOfMatchingCharacters < this.getKey().length()) { while (numberOfMatchingCharacters < key.length() && numberOfMatchingCharacters < this.getKey().length()) {
if (key.charAt(numberOfMatchingCharacters) != this.getKey().charAt(numberOfMatchingCharacters)) { if (key.charAt(numberOfMatchingCharacters) != this.getKey().charAt(numberOfMatchingCharacters)) {
break; break;
} }
numberOfMatchingCharacters++; numberOfMatchingCharacters++;
} }
return numberOfMatchingCharacters; return numberOfMatchingCharacters;
} }
@Override @Override
public String toString() { public String toString() {
return key; return key;
} }
} }

View File

@ -11,17 +11,17 @@ public abstract class VisitorImpl<T, R> implements Visitor<T, R> {
protected R result; protected R result;
public VisitorImpl() { public VisitorImpl() {
this.result = null; this.result = null;
} }
public VisitorImpl(R initialValue) { public VisitorImpl(R initialValue) {
this.result = initialValue; this.result = initialValue;
} }
public R getResult() { public R getResult() {
return result; return result;
} }
abstract public void visit(String key, RadixTreeNode<T> parent, RadixTreeNode<T> node); abstract public void visit(String key, RadixTreeNode<T> parent, RadixTreeNode<T> node);
} }