mirror of
https://github.com/revanced/smali.git
synced 2025-05-06 01:24:24 +02:00
The great tab cleanup of 2012
This commit is contained in:
parent
8d299c0222
commit
40c48da564
@ -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
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user