File tree 4 files changed +8
-8
lines changed
java.desktop/macosx/classes/com/apple/laf
java.management/share/classes/javax/management/openmbean
java.sql.rowset/share/classes/com/sun/rowset/internal
jdk.hotspot.agent/share/classes/com/sun/java/swing/ui
4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2011, 2021 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2011, 2022 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -420,9 +420,9 @@ private static int getHashCode(final Component m) {
420
420
final KeyStroke ks = mi .getAccelerator ();
421
421
if (ks != null ) hashCode ^= ks .hashCode ();
422
422
423
- hashCode ^= Boolean .valueOf (mi .isVisible ()). hashCode ( );
424
- hashCode ^= Boolean .valueOf (mi .isEnabled ()). hashCode ( );
425
- hashCode ^= Boolean .valueOf (mi .isSelected ()). hashCode ( );
423
+ hashCode ^= Boolean .hashCode (mi .isVisible ());
424
+ hashCode ^= Boolean .hashCode (mi .isEnabled ());
425
+ hashCode ^= Boolean .hashCode (mi .isSelected ());
426
426
427
427
} else if (m instanceof JSeparator ) {
428
428
hashCode ^= "-" .hashCode ();
Original file line number Diff line number Diff line change @@ -745,7 +745,7 @@ public int hashCode() {
745
745
int value = 0 ;
746
746
value += dimension ;
747
747
value += elementType .hashCode ();
748
- value += Boolean .valueOf ( primitiveArray ). hashCode ();
748
+ value += Boolean .hashCode (primitiveArray );
749
749
myHashCode = Integer .valueOf (value );
750
750
}
751
751
Original file line number Diff line number Diff line change @@ -569,7 +569,7 @@ private void writeInteger(int i) throws java.io.IOException {
569
569
}
570
570
571
571
private void writeBoolean (boolean b ) throws java .io .IOException {
572
- writer .write (Boolean .valueOf ( b ). toString ());
572
+ writer .write (Boolean .toString (b ));
573
573
}
574
574
575
575
private void writeFloat (float f ) throws java .io .IOException {
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2000, 2020 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2000, 2022 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -149,7 +149,7 @@ public void setPanels(Vector panels)
149
149
this .panels = panels ;
150
150
panesPanel .removeAll ();
151
151
for (int i = 0 ; i < numCards ; i ++)
152
- panesPanel .add ((JPanel )panels .elementAt (i ), ( Integer .valueOf ( i )). toString ());
152
+ panesPanel .add ((JPanel )panels .elementAt (i ), Integer .toString (i ));
153
153
154
154
validate ();
155
155
enableBackNextButtons ();
You can’t perform that action at this time.
0 commit comments