mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 06:12:05 +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.");
|
LOGGER.warning("The QNAME field of " + fullyQualifiedElement + " is not of type QNAME.");
|
||||||
} catch (NoSuchFieldException e) {
|
} 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.
|
// Proceed to fallback strategy.
|
||||||
} catch (IllegalArgumentException | IllegalAccessException | SecurityException e) {
|
} catch (IllegalArgumentException | IllegalAccessException | SecurityException e) {
|
||||||
throw new IllegalArgumentException(e);
|
throw new IllegalArgumentException(e);
|
||||||
|
@ -49,7 +49,7 @@ public class XmppElementUtil {
|
||||||
namespace = (String) fullyQualifiedElement.getField("NAMESPACE").get(null);
|
namespace = (String) fullyQualifiedElement.getField("NAMESPACE").get(null);
|
||||||
}
|
}
|
||||||
catch (IllegalArgumentException | IllegalAccessException | NoSuchFieldException | SecurityException e) {
|
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);
|
return new QName(namespace, element);
|
||||||
|
|
Loading…
Reference in a new issue