Skip to content

Commit 077b842

Browse files
author
Eirik Bjørsnøs
committed
8345074: java.net.InterfaceAddress constructor could be made private
Reviewed-by: jpai
1 parent ec93cc5 commit 077b842

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/java.base/share/classes/java/net/InterfaceAddress.java

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2005, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2005, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -42,10 +42,9 @@ public class InterfaceAddress {
4242
private short maskLength = 0;
4343

4444
/*
45-
* Package private constructor. Can't be built directly, instances are
46-
* obtained through the NetworkInterface class.
45+
* This constructor is called via JNI in NetworkInterface.c
4746
*/
48-
InterfaceAddress() {
47+
private InterfaceAddress() {
4948
}
5049

5150
/**

0 commit comments

Comments
 (0)