mirror of
https://github.com/apache/sqoop.git
synced 2025-05-06 11:40:41 +08:00
SQOOP-875: ClassUtils.instantiate class should not be logging on ERROR level
(Jarcec Cecho via Cheolsoo Park)
This commit is contained in:
parent
c7365b4751
commit
e8ca6f6c93
@ -105,13 +105,13 @@ public static Object instantiate(Class klass, Object ... args) {
|
|||||||
Constructor constructor = klass.getConstructor(argumentTypes);
|
Constructor constructor = klass.getConstructor(argumentTypes);
|
||||||
return constructor.newInstance(args);
|
return constructor.newInstance(args);
|
||||||
} catch (NoSuchMethodException e) {
|
} catch (NoSuchMethodException e) {
|
||||||
LOG.error("Can't find such constructor.", e);
|
LOG.debug("Can't find such constructor.", e);
|
||||||
} catch (InvocationTargetException e) {
|
} catch (InvocationTargetException e) {
|
||||||
LOG.error("Can't instantiate object.", e);
|
LOG.debug("Can't instantiate object.", e);
|
||||||
} catch (InstantiationException e) {
|
} catch (InstantiationException e) {
|
||||||
LOG.error("Can't instantiate object.", e);
|
LOG.debug("Can't instantiate object.", e);
|
||||||
} catch (IllegalAccessException e) {
|
} catch (IllegalAccessException e) {
|
||||||
LOG.error("Can't instantiate object.", e);
|
LOG.debug("Can't instantiate object.", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
Reference in New Issue
Block a user