diff --git a/jxmpp-core/src/main/java/org/jxmpp/stringprep/XmppStringprepException.java b/jxmpp-core/src/main/java/org/jxmpp/stringprep/XmppStringprepException.java index 02b0d02..ac0be0b 100644 --- a/jxmpp-core/src/main/java/org/jxmpp/stringprep/XmppStringprepException.java +++ b/jxmpp-core/src/main/java/org/jxmpp/stringprep/XmppStringprepException.java @@ -36,6 +36,7 @@ public class XmppStringprepException extends IOException { * @param causingString the String causing the exception. * @param exception the exception. */ + @SuppressWarnings("this-escape") public XmppStringprepException(String causingString, Exception exception) { super("XmppStringprepException caused by '" + causingString + "': " + exception); initCause(exception); diff --git a/jxmpp-util-cache/src/main/java/org/jxmpp/util/cache/ExpirationCache.java b/jxmpp-util-cache/src/main/java/org/jxmpp/util/cache/ExpirationCache.java index 8399fa1..a7c3f7e 100644 --- a/jxmpp-util-cache/src/main/java/org/jxmpp/util/cache/ExpirationCache.java +++ b/jxmpp-util-cache/src/main/java/org/jxmpp/util/cache/ExpirationCache.java @@ -49,7 +49,7 @@ public ExpirationCache(int maxSize, long defaultExpirationTime) { * * @param defaultExpirationTime the default expiration time. */ - public void setDefaultExpirationTime(long defaultExpirationTime) { + public final void setDefaultExpirationTime(long defaultExpirationTime) { if (defaultExpirationTime <= 0) { throw new IllegalArgumentException(); }