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:
@@ -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(
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user