5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-06 01:59:09 +08:00

SQOOP-875: ClassUtils.instantiate class should not be logging on ERROR level

(Jarcec Cecho via Cheolsoo Park)
This commit is contained in:
Cheolsoo Park 2013-02-10 13:03:45 -08:00
parent c7365b4751
commit e8ca6f6c93

View File

@ -105,13 +105,13 @@ public static Object instantiate(Class klass, Object ... args) {
Constructor constructor = klass.getConstructor(argumentTypes);
return constructor.newInstance(args);
} catch (NoSuchMethodException e) {
LOG.error("Can't find such constructor.", e);
LOG.debug("Can't find such constructor.", e);
} catch (InvocationTargetException e) {
LOG.error("Can't instantiate object.", e);
LOG.debug("Can't instantiate object.", e);
} catch (InstantiationException e) {
LOG.error("Can't instantiate object.", e);
LOG.debug("Can't instantiate object.", e);
} catch (IllegalAccessException e) {
LOG.error("Can't instantiate object.", e);
LOG.debug("Can't instantiate object.", e);
}
return null;