Reformat whole codebase using Android Studio
This commit is contained in:
parent
d5322667d5
commit
c15913c1ab
161 changed files with 15124 additions and 18537 deletions
|
|
@ -4,29 +4,24 @@ import java.util.Arrays;
|
|||
|
||||
import btools.util.LruMapNode;
|
||||
|
||||
public final class CacheNode extends LruMapNode
|
||||
{
|
||||
public final class CacheNode extends LruMapNode {
|
||||
byte[] ab;
|
||||
float[] vars;
|
||||
|
||||
@Override
|
||||
public int hashCode()
|
||||
{
|
||||
public int hashCode() {
|
||||
return hash;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals( Object o )
|
||||
{
|
||||
public boolean equals(Object o) {
|
||||
CacheNode n = (CacheNode) o;
|
||||
if ( hash != n.hash )
|
||||
{
|
||||
if (hash != n.hash) {
|
||||
return false;
|
||||
}
|
||||
if ( ab == null )
|
||||
{
|
||||
if (ab == null) {
|
||||
return true; // hack: null = crc match only
|
||||
}
|
||||
return Arrays.equals( ab, n.ab );
|
||||
return Arrays.equals(ab, n.ab);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue