mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8312414: Make java.util.ServiceLoader.LANG_ACCESS final
Reviewed-by: alanb, jpai
This commit is contained in:
parent
d55d7e8d87
commit
f4ba7b2198
1 changed files with 2 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2005, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 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
|
||||
|
@ -422,10 +422,7 @@ public final class ServiceLoader<S>
|
|||
// Incremented when reload is called
|
||||
private int reloadCount;
|
||||
|
||||
private static JavaLangAccess LANG_ACCESS;
|
||||
static {
|
||||
LANG_ACCESS = SharedSecrets.getJavaLangAccess();
|
||||
}
|
||||
private static final JavaLangAccess LANG_ACCESS = SharedSecrets.getJavaLangAccess();
|
||||
|
||||
/**
|
||||
* Represents a service provider located by {@code ServiceLoader}.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue