Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Simplify equals

  • Loading branch information...
commit ad05075ea6567adf50cca4bd27007e119dd5781c 1 parent 26ee372
@ashenfad ashenfad authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/java/com/bigml/histogram/Bin.java
View
5 src/java/com/bigml/histogram/Bin.java
@@ -81,10 +81,7 @@ public boolean equals(Object obj) {
return false;
}
final Bin<T> other = (Bin<T>) obj;
- if (Double.doubleToLongBits(_mean) != Double.doubleToLongBits(other._mean)) {
- return false;
- }
- return true;
+ return Double.doubleToLongBits(_mean) == Double.doubleToLongBits(other._mean);
}
@Override
Please sign in to comment.
Something went wrong with that request. Please try again.