Commit d184339
committed
Bug: "Comparing identical expressions" warnings in DoubleTest/FloatTest
This is related to tests like this:
assertTrue("-0d should be == 0d", 0d == -0d);
I.e. the warning can be ignored, as we are explicitly checking for
identical expressions.
Fix: add '@SuppressWarnings("all") // "Comparing identical expressions" ...'
to the methods raising the warning.1 parent da4c407 commit d184339
File tree
2 files changed
+3
-0
lines changed- tests/net.sf.j2s.test.junit/src/net/sf/j2s/test/junit
2 files changed
+3
-0
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
| 395 | + | |
395 | 396 | | |
396 | 397 | | |
397 | 398 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| 205 | + | |
205 | 206 | | |
206 | 207 | | |
207 | 208 | | |
| |||
552 | 553 | | |
553 | 554 | | |
554 | 555 | | |
| 556 | + | |
555 | 557 | | |
556 | 558 | | |
557 | 559 | | |
| |||
0 commit comments