mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-20 23:05:23 +00:00
Changed some boolean checks to use the recommended method of comparing floating point values in Java. (#1075)
This commit is contained in:
1 parent
66138e5ea2
commit
bf5a8c2fad
4 files changed
+4
-5
No files matched your search
@@ -229,7 +229,7 @@ public class DocPropertyOptions {
|
||||
if (docMapping.store()) {
|
||||
store = true;
|
||||
}
|
||||
if (docMapping.boost() != 1) {
|
||||
if (Float.compare(docMapping.boost(), 1.0F) != 0) {
|
||||
boost = docMapping.boost();
|
||||
}
|
||||
if (!"".equals(docMapping.nullValue())) {
|
||||
|
||||
Reference in new issue
Block a user