Skip to content

Commit 27faf45

Browse files
author
Andrey Turbanov
committed
8354826: Make ResolverConfigurationImpl.lock field final
Reviewed-by: dfuchs, jpai
1 parent 9a2b425 commit 27faf45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/java.base/unix/classes/sun/net/dns/ResolverConfigurationImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2002, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2002, 2025, 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
@@ -41,7 +41,7 @@ public final class ResolverConfigurationImpl
4141
extends ResolverConfiguration
4242
{
4343
// Lock helds whilst loading configuration or checking
44-
private static Object lock = new Object();
44+
private static final Object lock = new Object();
4545

4646
// Time of last refresh.
4747
private static long lastRefresh = -1;

0 commit comments

Comments
 (0)