rs-client: Cleanup (#1087)
* rs-client: name SpriteBuffer * rs-client: (re)name spritebuffer methods * rs-client/deob: Add missed @Export's, make updatemappings fix this next time * rs-client: run intellij redundant else inspection * rs-client: invert some script interpreter if's * deob: checkstyle fixes * rs-client: SpriteBuffer_loadSprite -> SpriteBuffer_bufferFile
This commit is contained in:
@@ -49,48 +49,45 @@ public class IterableNodeHashTableIterator implements Iterator {
|
||||
public boolean hasNext() {
|
||||
if (this.hashTable.buckets[this.index - 1] != this.head) {
|
||||
return true;
|
||||
} else {
|
||||
while (this.index < this.hashTable.size) {
|
||||
if (this.hashTable.buckets[this.index++].previous != this.hashTable.buckets[this.index - 1]) {
|
||||
this.head = this.hashTable.buckets[this.index - 1].previous;
|
||||
return true;
|
||||
}
|
||||
|
||||
this.head = this.hashTable.buckets[this.index - 1];
|
||||
}
|
||||
while (this.index < this.hashTable.size) {
|
||||
if (this.hashTable.buckets[this.index++].previous != this.hashTable.buckets[this.index - 1]) {
|
||||
this.head = this.hashTable.buckets[this.index - 1].previous;
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
this.head = this.hashTable.buckets[this.index - 1];
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public Object next() {
|
||||
Node var1;
|
||||
if (this.hashTable.buckets[this.index - 1] != this.head) {
|
||||
var1 = this.head;
|
||||
this.head = var1.previous;
|
||||
this.last = var1;
|
||||
return var1;
|
||||
} else {
|
||||
do {
|
||||
if (this.index >= this.hashTable.size) {
|
||||
return null;
|
||||
}
|
||||
|
||||
var1 = this.hashTable.buckets[this.index++].previous;
|
||||
} while(var1 == this.hashTable.buckets[this.index - 1]);
|
||||
|
||||
this.head = var1.previous;
|
||||
this.last = var1;
|
||||
return var1;
|
||||
}
|
||||
do {
|
||||
if (this.index >= this.hashTable.size) {
|
||||
return null;
|
||||
}
|
||||
|
||||
var1 = this.hashTable.buckets[this.index++].previous;
|
||||
} while(var1 == this.hashTable.buckets[this.index - 1]);
|
||||
|
||||
this.head = var1.previous;
|
||||
this.last = var1;
|
||||
return var1;
|
||||
}
|
||||
|
||||
public void remove() {
|
||||
if (this.last == null) {
|
||||
throw new IllegalStateException();
|
||||
} else {
|
||||
this.last.remove();
|
||||
this.last = null;
|
||||
}
|
||||
this.last.remove();
|
||||
this.last = null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user