-
Notifications
You must be signed in to change notification settings - Fork 71
Open
Description
The size of File is represented by int:
| private final int size; |
But in LessThanOperator and GreaterThanOperator convert the values to Double.
| return Double.compare(attributeValue.doubleValue(), expectedValue.doubleValue()) > 0; |
| return Double.compare(attributeValue.doubleValue(), expectedValue.doubleValue()) < 0; |
Why not just use Number.intValue() and Integer.compare()? Ideally, those should be long in my opinion, as the file size is represented as long in java.io.File class.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels