Skip to content

Commit d1bc72d

Browse files
committed
core: Opaque: Remove unnecessary "public" from "public static"
... not required, since implicit in public interfaces. Related: #149 Signed-off-by: Christian Kohlschütter <[email protected]>
1 parent d53f432 commit d1bc72d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/src/main/java/org/dcache/nfs/util/Opaque.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public interface Opaque {
3434
* @param bytes The bytes.
3535
* @return The {@link Opaque} instance.
3636
*/
37-
public static Opaque forBytes(byte[] bytes) {
37+
static Opaque forBytes(byte[] bytes) {
3838
return new OpaqueImpl(bytes.clone());
3939
}
4040

@@ -45,7 +45,7 @@ public static Opaque forBytes(byte[] bytes) {
4545
* @param length The number of bytes.
4646
* @return The {@link Opaque} instance.
4747
*/
48-
public static Opaque forBytes(ByteBuffer buf, int length) {
48+
static Opaque forBytes(ByteBuffer buf, int length) {
4949
byte[] bytes = new byte[length];
5050
buf.get(bytes);
5151

@@ -59,7 +59,7 @@ public static Opaque forBytes(ByteBuffer buf, int length) {
5959
* @return The hash code.
6060
* @see #hashCode()
6161
*/
62-
public static int defaultHashCode(Opaque obj) {
62+
static int defaultHashCode(Opaque obj) {
6363
return Arrays.hashCode(obj.toBytes());
6464
}
6565

@@ -71,7 +71,7 @@ public static int defaultHashCode(Opaque obj) {
7171
* @return {@code true} if equal.
7272
* @see #equals(Object)
7373
*/
74-
public static boolean defaultEquals(Opaque obj, Object other) {
74+
static boolean defaultEquals(Opaque obj, Object other) {
7575
if (other == obj) {
7676
return true;
7777
}

0 commit comments

Comments
 (0)