java: use 'Long.valueOf' instead of 'new Long'

Change-Id: If4fff3dd37326fbcdd01b743355a16591d71fa69
This commit is contained in:
Noel Grandin
2014-08-12 15:10:41 +02:00
parent ff0ad0493e
commit 8a2c6c29af
18 changed files with 50 additions and 50 deletions

View File

@ -93,15 +93,15 @@ public final class PolyStructTest extends ComplexTestCase {
new TestPolyStruct(Integer.valueOf(Integer.MAX_VALUE))).member);
assertEquals(
new Long(0L), t.transportHyper(new TestPolyStruct()).member);
Long.valueOf(0L), t.transportHyper(new TestPolyStruct()).member);
assertEquals(
new Long(Long.MIN_VALUE),
Long.valueOf(Long.MIN_VALUE),
t.transportHyper(
new TestPolyStruct(new Long(Long.MIN_VALUE))).member);
new TestPolyStruct(Long.valueOf(Long.MIN_VALUE))).member);
assertEquals(
new Long(Long.MAX_VALUE),
Long.valueOf(Long.MAX_VALUE),
t.transportHyper(
new TestPolyStruct(new Long(Long.MAX_VALUE))).member);
new TestPolyStruct(Long.valueOf(Long.MAX_VALUE))).member);
assertEquals(
new Float(0.0f), t.transportFloat(new TestPolyStruct()).member);