Java: Update test.

This commit is contained in:
Anders Schack-Mulligen
2019-01-08 11:57:54 +01:00
parent 203c9fb9d8
commit 06e48ca19f
2 changed files with 1 additions and 2 deletions

View File

@@ -1,4 +1,3 @@
| Test.java:20:23:20:48 | ... * ... | Potential overflow in $@ before it is converted to long by use in an assignment context. | Test.java:20:23:20:48 | ... * ... | int multiplication |
| Test.java:27:23:27:52 | ... + ... | Potential overflow in $@ before it is converted to long by use in an assignment context. | Test.java:27:23:27:48 | ... * ... | int multiplication |
| Test.java:34:23:34:63 | ...?...:... | Potential overflow in $@ before it is converted to long by use in an assignment context. | Test.java:34:30:34:55 | ... * ... | int multiplication |
| Test.java:41:25:41:49 | ... * ... | Potential overflow in $@ before it is converted to double by use in an assignment context. | Test.java:41:25:41:49 | ... * ... | long multiplication |

View File

@@ -37,7 +37,7 @@ class Test {
{
long timeInSeconds = 10000000L;
// BAD: same problem, but with longs
// same problem, but with longs; not reported as the conversion to double is not sufficient indication of a large number
double timeInNanos = timeInSeconds * 10000000L;
}