Skip to content

Commit fb9d6c6

Browse files
committed
Optimize codes
1 parent e7d8de3 commit fb9d6c6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/internal/ServiceLoaderUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*/
1515
public final class ServiceLoaderUtil {
1616

17-
private static Function<Class<?>, Iterable<?>> loadFunction = ServiceLoader::load;
17+
private static volatile Function<Class<?>, Iterable<?>> loadFunction = ServiceLoader::load;
1818

1919
private ServiceLoaderUtil() {}
2020

instrumentation-api/src/test/java/io/opentelemetry/instrumentation/api/internal/InstrumentationCustomizerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class InstrumentationCustomizerTest {
7878
private List<InternalInstrumenterCustomizerProvider> originalCustomizerProviders;
7979

8080
@BeforeEach
81-
void setUp() {
81+
void beforeEach() {
8282
originalCustomizerProviders =
8383
InternalInstrumenterCustomizerUtil.getInstrumenterCustomizerProviders();
8484
}

0 commit comments

Comments
 (0)