projects
/
cfb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add further unit tests.
[cfb.git]
/
prod
/
net
/
jaekl
/
cfb
/
util
/
Util.java
diff --git
a/prod/net/jaekl/cfb/util/Util.java
b/prod/net/jaekl/cfb/util/Util.java
index d1e79bdaa0742c45bb763c302d7404aaa6d44216..99ef6e846f78b9b082cfbbc7d4e8db7f94e9fae6 100644
(file)
--- a/
prod/net/jaekl/cfb/util/Util.java
+++ b/
prod/net/jaekl/cfb/util/Util.java
@@
-47,6
+47,14
@@
public class Util {
return (a == b);
}
return (a == b);
}
+ if ((a instanceof Number) && (b instanceof Number)) {
+ Number aNum = (Number)a;
+ Number bNum = (Number)b;
+
+ return ( (aNum.longValue() == bNum.longValue())
+ || (aNum.doubleValue() == bNum.doubleValue()) );
+ }
+
return a.equals(b);
}
return a.equals(b);
}