@@ -34,7 +34,7 @@ public interface Opaque {
34
34
* @param bytes The bytes.
35
35
* @return The {@link Opaque} instance.
36
36
*/
37
- public static Opaque forBytes (byte [] bytes ) {
37
+ static Opaque forBytes (byte [] bytes ) {
38
38
return new OpaqueImpl (bytes .clone ());
39
39
}
40
40
@@ -45,7 +45,7 @@ public static Opaque forBytes(byte[] bytes) {
45
45
* @param length The number of bytes.
46
46
* @return The {@link Opaque} instance.
47
47
*/
48
- public static Opaque forBytes (ByteBuffer buf , int length ) {
48
+ static Opaque forBytes (ByteBuffer buf , int length ) {
49
49
byte [] bytes = new byte [length ];
50
50
buf .get (bytes );
51
51
@@ -59,7 +59,7 @@ public static Opaque forBytes(ByteBuffer buf, int length) {
59
59
* @return The hash code.
60
60
* @see #hashCode()
61
61
*/
62
- public static int defaultHashCode (Opaque obj ) {
62
+ static int defaultHashCode (Opaque obj ) {
63
63
return Arrays .hashCode (obj .toBytes ());
64
64
}
65
65
@@ -71,7 +71,7 @@ public static int defaultHashCode(Opaque obj) {
71
71
* @return {@code true} if equal.
72
72
* @see #equals(Object)
73
73
*/
74
- public static boolean defaultEquals (Opaque obj , Object other ) {
74
+ static boolean defaultEquals (Opaque obj , Object other ) {
75
75
if (other == obj ) {
76
76
return true ;
77
77
}
0 commit comments