8345074: java.net.InterfaceAddress constructor could be made private

Reviewed-by: jpai
This commit is contained in:
Eirik Bjørsnøs 2024-12-03 09:53:37 +00:00
parent ec93cc5098
commit 077b8422bb

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -42,10 +42,9 @@ public class InterfaceAddress {
private short maskLength = 0;
/*
* Package private constructor. Can't be built directly, instances are
* obtained through the NetworkInterface class.
* This constructor is called via JNI in NetworkInterface.c
*/
InterfaceAddress() {
private InterfaceAddress() {
}
/**