mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8313948: Remove unnecessary static fields defaultUpper/defaultLower in sun.net.PortConfig
Reviewed-by: dfuchs
This commit is contained in:
parent
b88c273503
commit
6bbcef5315
1 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2023, 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
|
||||
|
@ -35,13 +35,14 @@ import jdk.internal.util.OperatingSystem;
|
|||
|
||||
public final class PortConfig {
|
||||
|
||||
private static int defaultUpper, defaultLower;
|
||||
private static final int upper, lower;
|
||||
|
||||
private PortConfig() {}
|
||||
|
||||
static {
|
||||
jdk.internal.loader.BootLoader.loadLibrary("net");
|
||||
int defaultUpper;
|
||||
int defaultLower;
|
||||
switch (OperatingSystem.current()) {
|
||||
case LINUX:
|
||||
defaultLower = 32768;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue