Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
3.0.0-alpha2
-
None
-
None
-
None
Description
Hi
return getId() > getId() ? 1 : getId() < getId() ? -1 : 0;
strangely, than getId() compare with itself
Probably It should be something like this:
return this.getId() > other.getId() ? 1 : this.getId() < other.getId() ? -1 : 0;
if(filesUploaded.size() != filesUploaded.size()) { fail(errMsgPrefix + ": actual size: " + filesUploaded.size() + " vs " + "expected size: " + filesExpected.size()); }
filesUploaded.size() compare with it self
probably it should be:
if(filesUploaded.size() != filesExpected.size()) { fail(errMsgPrefix + ": actual size: " + filesUploaded.size() + " vs " + "expected size: " + filesExpected.size()); }
These possible defects found by static code analyzer AppChecker