Skip to content

Commit

Permalink
Remove logging dependency in BeanUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoeller authored and lxbzmy committed Mar 26, 2022
1 parent c6fa7fd commit 1e1e396
Showing 1 changed file with 1 addition and 16 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2020 the original author or authors.
* Copyright 2002-2021 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.
Expand Down Expand Up @@ -41,8 +41,6 @@
import kotlin.reflect.full.KClasses;
import kotlin.reflect.jvm.KCallablesJvm;
import kotlin.reflect.jvm.ReflectJvmMapping;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import org.springframework.core.DefaultParameterNameDiscoverer;
import org.springframework.core.KotlinDetector;
Expand Down Expand Up @@ -75,8 +73,6 @@
*/
public abstract class BeanUtils {

private static final Log logger = LogFactory.getLog(BeanUtils.class);

private static final ParameterNameDiscoverer parameterNameDiscoverer =
new DefaultParameterNameDiscoverer();

Expand Down Expand Up @@ -551,9 +547,6 @@ public static PropertyEditor findEditorByConvention(@Nullable Class<?> targetTyp
}
catch (Throwable ex) {
// e.g. AccessControlException on Google App Engine
if (logger.isDebugEnabled()) {
logger.debug("Could not access system ClassLoader: " + ex);
}
return null;
}
}
Expand All @@ -564,10 +557,6 @@ public static PropertyEditor findEditorByConvention(@Nullable Class<?> targetTyp
Class<?> editorClass = cl.loadClass(editorName);
if (editorClass != null) {
if (!PropertyEditor.class.isAssignableFrom(editorClass)) {
if (logger.isInfoEnabled()) {
logger.info("Editor class [" + editorName +
"] does not implement [java.beans.PropertyEditor] interface");
}
unknownEditorTypes.add(targetType);
return null;
}
Expand All @@ -579,10 +568,6 @@ public static PropertyEditor findEditorByConvention(@Nullable Class<?> targetTyp
catch (ClassNotFoundException ex) {
// Ignore - fall back to unknown editor type registration below
}
if (logger.isTraceEnabled()) {
logger.trace("No property editor [" + editorName + "] found for type " +
targetTypeName + " according to 'Editor' suffix convention");
}
unknownEditorTypes.add(targetType);
return null;
}
Expand Down

0 comments on commit 1e1e396

Please sign in to comment.