Skip to content

Commit

Permalink
Merge pull request #43 from vpa1977/master
Browse files Browse the repository at this point in the history
Workaround this-escape warnings
  • Loading branch information
Flowdalic authored Jan 30, 2024
2 parents 084fbad + bb985c1 commit 709b1a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 709b1a3

Please sign in to comment.