src/share/classes/javax/swing/plaf/basic/BasicLookAndFeel.java
Print this page
rev 10195 : 8048267: Replace uses of 'new Long()' with appropriate alternative across core classes
Reviewed-by: chegar, psandoz
Contributed-by: otaviojava@java.net
@@ -456,11 +456,11 @@
// *** Shared Integers
Integer fiveHundred = new Integer(500);
// *** Shared Longs
- Long oneThousand = new Long(1000);
+ Long oneThousand = 1000L;
LazyValue dialogPlain12 = t ->
new FontUIResource(Font.DIALOG, Font.PLAIN, 12);
LazyValue serifPlain12 = t ->
new FontUIResource(Font.SERIF, Font.PLAIN, 12);