1
1
/*
2
- * Copyright (c) 1996, 2020 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 1996, 2021 , 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
@@ -510,7 +510,7 @@ private ObjectStreamClass(final Class<?> cl) {
510
510
AccessController .doPrivileged (new PrivilegedAction <>() {
511
511
public Void run () {
512
512
if (isEnum ) {
513
- suid = Long . valueOf ( 0 ) ;
513
+ suid = 0L ;
514
514
fields = NO_FIELDS ;
515
515
return null ;
516
516
}
@@ -555,7 +555,7 @@ public Void run() {
555
555
}
556
556
});
557
557
} else {
558
- suid = Long . valueOf ( 0 ) ;
558
+ suid = 0L ;
559
559
fields = NO_FIELDS ;
560
560
}
561
561
@@ -673,7 +673,7 @@ void initProxy(Class<?> cl,
673
673
this .superDesc = superDesc ;
674
674
isProxy = true ;
675
675
serializable = true ;
676
- suid = Long . valueOf ( 0 ) ;
676
+ suid = 0L ;
677
677
fields = NO_FIELDS ;
678
678
if (osc != null ) {
679
679
localDesc = osc ;
@@ -698,7 +698,7 @@ void initNonProxy(ObjectStreamClass model,
698
698
ObjectStreamClass superDesc )
699
699
throws InvalidClassException
700
700
{
701
- long suid = Long . valueOf ( model .getSerialVersionUID () );
701
+ long suid = model .getSerialVersionUID ();
702
702
ObjectStreamClass osc = null ;
703
703
if (cl != null ) {
704
704
osc = lookup (cl , true );
@@ -796,7 +796,7 @@ void readNonProxy(ObjectInputStream in)
796
796
throws IOException , ClassNotFoundException
797
797
{
798
798
name = in .readUTF ();
799
- suid = Long . valueOf ( in .readLong () );
799
+ suid = in .readLong ();
800
800
isProxy = false ;
801
801
802
802
byte flags = in .readByte ();
@@ -1846,7 +1846,7 @@ private static Long getDeclaredSUID(Class<?> cl) {
1846
1846
int mask = Modifier .STATIC | Modifier .FINAL ;
1847
1847
if ((f .getModifiers () & mask ) == mask ) {
1848
1848
f .setAccessible (true );
1849
- return Long . valueOf ( f .getLong (null ) );
1849
+ return f .getLong (null );
1850
1850
}
1851
1851
} catch (Exception ex ) {
1852
1852
}
0 commit comments