Style changes.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@555 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -74,7 +74,7 @@ public class AutoFringer
|
|||||||
public int hashCode ()
|
public int hashCode ()
|
||||||
{
|
{
|
||||||
int result = arrayHashCode(_fringeId);
|
int result = arrayHashCode(_fringeId);
|
||||||
if(_passable) {
|
if (_passable) {
|
||||||
result++;
|
result++;
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
@@ -84,9 +84,11 @@ public class AutoFringer
|
|||||||
* Replaces Arrays.hashCode(long a[]) in AutoFringer.hashCode().
|
* Replaces Arrays.hashCode(long a[]) in AutoFringer.hashCode().
|
||||||
* Arrays.hashCode(long a[]) is undefined for Java 1.4, and this is client code.
|
* Arrays.hashCode(long a[]) is undefined for Java 1.4, and this is client code.
|
||||||
*/
|
*/
|
||||||
protected int arrayHashCode(long a[]) {
|
protected int arrayHashCode (long a[])
|
||||||
if (a == null)
|
{
|
||||||
|
if (a == null) {
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
int result = 1;
|
int result = 1;
|
||||||
for (long element : a) {
|
for (long element : a) {
|
||||||
|
|||||||
Reference in New Issue
Block a user