mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8345074: java.net.InterfaceAddress constructor could be made private
Reviewed-by: jpai
This commit is contained in:
parent
ec93cc5098
commit
077b8422bb
1 changed files with 3 additions and 4 deletions
|
@ -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() {
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue