Skip to content

Commit 6bbcef5

Browse files
author
Andrey Turbanov
committedAug 14, 2023
8313948: Remove unnecessary static fields defaultUpper/defaultLower in sun.net.PortConfig
Reviewed-by: dfuchs
1 parent b88c273 commit 6bbcef5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎src/java.base/unix/classes/sun/net/PortConfig.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2013, 2023, 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
@@ -35,13 +35,14 @@
3535

3636
public final class PortConfig {
3737

38-
private static int defaultUpper, defaultLower;
3938
private static final int upper, lower;
4039

4140
private PortConfig() {}
4241

4342
static {
4443
jdk.internal.loader.BootLoader.loadLibrary("net");
44+
int defaultUpper;
45+
int defaultLower;
4546
switch (OperatingSystem.current()) {
4647
case LINUX:
4748
defaultLower = 32768;

0 commit comments

Comments
 (0)
Please sign in to comment.