DATAMONGO-2051 - Polishing.

Use method argument types to avoid false positives with different method signatures.

Original pull request: #597.
Related pull request: #598.
This commit is contained in:
Mark Paluch
2018-08-14 16:33:09 +02:00
parent 7100cd17be
commit ba6fa834e5
2 changed files with 3 additions and 3 deletions

View File

@@ -105,7 +105,7 @@ public class MongoCredentialPropertyEditor extends PropertyEditorSupport {
} else if ("SCRAM-SHA-256".equals(authMechanism)) {
Method createScramSha256Credential = ReflectionUtils.findMethod(MongoCredential.class,
"createScramSha256Credential");
"createScramSha256Credential", String.class, String.class, char[].class);
if (createScramSha256Credential == null) {
throw new IllegalArgumentException(

View File

@@ -20,7 +20,7 @@ import org.springframework.util.ClassUtils;
/**
* {@link MongoClientVersion} holds information about the used mongo-java client and is used to distinguish between
* different versions.
*
*
* @author Christoph Strobl
* @since 1.7
*/
@@ -62,7 +62,7 @@ public class MongoClientVersion {
/**
* @return {@literal true} if MongoDB Java driver version 3.8 or later is on classpath.
* @since 2.10
* @since 2.0.10
*/
public static boolean isMongo38Driver() {
return IS_MONGO_38;