Skip to content

Commit f023df7

Browse files
committed
Remove potentially confusing kotlin-reflect related log message
Closes gh-24939
1 parent 9ab7cde commit f023df7

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

spring-core/src/main/java/org/springframework/core/KotlinDetector.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -18,9 +18,6 @@
1818

1919
import java.lang.annotation.Annotation;
2020

21-
import org.apache.commons.logging.Log;
22-
import org.apache.commons.logging.LogFactory;
23-
2421
import org.springframework.lang.Nullable;
2522
import org.springframework.util.ClassUtils;
2623

@@ -34,8 +31,6 @@
3431
@SuppressWarnings("unchecked")
3532
public abstract class KotlinDetector {
3633

37-
private static final Log logger = LogFactory.getLog(KotlinDetector.class);
38-
3934
@Nullable
4035
private static final Class<? extends Annotation> kotlinMetadata;
4136

@@ -53,9 +48,6 @@ public abstract class KotlinDetector {
5348
}
5449
kotlinMetadata = (Class<? extends Annotation>) metadata;
5550
kotlinReflectPresent = ClassUtils.isPresent("kotlin.reflect.full.KClasses", classLoader);
56-
if (kotlinMetadata != null && !kotlinReflectPresent) {
57-
logger.info("Kotlin reflection implementation not found at runtime, related features won't be available.");
58-
}
5951
}
6052

6153

0 commit comments

Comments
 (0)