mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Changed some boolean checks to use the recommended method of comparing floating point values in Java. (#1075)
This commit is contained in:
committed by
Rob Bygrave
parent
66138e5ea2
commit
bf5a8c2fad
@@ -60,7 +60,7 @@ public class DeployDocPropertyOptions {
|
||||
}
|
||||
|
||||
private void setBoost(float boost) {
|
||||
if (boost != 1) {
|
||||
if (Float.compare(boost, 1.0F) != 0) {
|
||||
mapping.setBoost(boost);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user