Fix new Sonar smells

This commit is contained in:
Artem Bilan
2020-03-26 10:31:32 -04:00
parent ca493caf67
commit bff891b7a9
3 changed files with 5 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2019 the original author or authors.
* Copyright 2002-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -456,7 +456,7 @@ public abstract class AbstractMailReceiver extends IntegrationObjectSupport impl
}
}
private Object extractContent(MimeMessage message, Map<String, Object> headers) {
private Object extractContent(MimeMessage message, Map<String, Object> headers) { // NOSONAR
Object content;
try {
MimeMessage theMessage = message;

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2007-2019 the original author or authors.
* Copyright 2007-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -80,7 +80,7 @@ public abstract class MailTransportUtils {
* @param name The URL name.
* @return The result with password protection.
*/
public static String toPasswordProtectedString(URLName name) {
public static String toPasswordProtectedString(URLName name) { // NOSONAR
String protocol = name.getProtocol();
String username = name.getUsername();
String password = name.getPassword();