From f023df703aab022bc71b3b130ac0c79162a379b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deleuze?= Date: Mon, 20 Apr 2020 10:23:02 +0200 Subject: [PATCH] Remove potentially confusing kotlin-reflect related log message Closes gh-24939 --- .../java/org/springframework/core/KotlinDetector.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/spring-core/src/main/java/org/springframework/core/KotlinDetector.java b/spring-core/src/main/java/org/springframework/core/KotlinDetector.java index ea5b4115baf..3be5346c7c2 100644 --- a/spring-core/src/main/java/org/springframework/core/KotlinDetector.java +++ b/spring-core/src/main/java/org/springframework/core/KotlinDetector.java @@ -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 kotlinMetadata; @@ -53,9 +48,6 @@ public abstract class KotlinDetector { } kotlinMetadata = (Class) 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."); - } }