mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-25 21:42:07 +01:00
[core] Fix log/exception message of XmppElementUtil
The Class.toString() already prefixes the resulting string with "class ", no need to state it explicitly in the log message that this is a class.
This commit is contained in:
parent
b7fe56fb9b
commit
d3a99a133a
1 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ public class XmppElementUtil {
|
|||
}
|
||||
LOGGER.warning("The QNAME field of " + fullyQualifiedElement + " is not of type QNAME.");
|
||||
} catch (NoSuchFieldException e) {
|
||||
LOGGER.finer("The class " + fullyQualifiedElement + " has no static QNAME field. Consider adding one.");
|
||||
LOGGER.finer("The " + fullyQualifiedElement + " has no static QNAME field. Consider adding one.");
|
||||
// Proceed to fallback strategy.
|
||||
} catch (IllegalArgumentException | IllegalAccessException | SecurityException e) {
|
||||
throw new IllegalArgumentException(e);
|
||||
|
@ -49,7 +49,7 @@ public class XmppElementUtil {
|
|||
namespace = (String) fullyQualifiedElement.getField("NAMESPACE").get(null);
|
||||
}
|
||||
catch (IllegalArgumentException | IllegalAccessException | NoSuchFieldException | SecurityException e) {
|
||||
throw new IllegalArgumentException("The class" + fullyQualifiedElement + " has no ELEMENT, NAMESPACE or QNAME member. Consider adding QNAME", e);
|
||||
throw new IllegalArgumentException("The " + fullyQualifiedElement + " has no ELEMENT, NAMESPACE or QNAME member. Consider adding QNAME", e);
|
||||
}
|
||||
|
||||
return new QName(namespace, element);
|
||||
|
|
Loading…
Reference in a new issue