Remove potentially confusing kotlin-reflect related log message

Closes gh-24935
This commit is contained in:
Sébastien Deleuze 2020-04-20 10:20:08 +02:00
parent ed8c61a852
commit 6d5080825c
1 changed files with 1 additions and 9 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright 2002-2018 the original author or authors.
* Copyright 2002-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -18,9 +18,6 @@ package org.springframework.core;
import java.lang.annotation.Annotation;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.lang.Nullable;
import org.springframework.util.ClassUtils;
@ -34,8 +31,6 @@ import org.springframework.util.ClassUtils;
@SuppressWarnings("unchecked")
public abstract class KotlinDetector {
private static final Log logger = LogFactory.getLog(KotlinDetector.class);
@Nullable
private static final Class<? extends Annotation> kotlinMetadata;
@ -53,9 +48,6 @@ public abstract class KotlinDetector {
}
kotlinMetadata = (Class<? extends Annotation>) metadata;
kotlinReflectPresent = ClassUtils.isPresent("kotlin.reflect.full.KClasses", classLoader);
if (kotlinMetadata != null && !kotlinReflectPresent) {
logger.info("Kotlin reflection implementation not found at runtime, related features won't be available.");
}
}