DATAMONGO-1919 - Polishing.

Fix typo, use diamond syntax where possible.

Original Pull Request: #572
This commit is contained in:
Mark Paluch
2018-06-14 14:56:09 +02:00
committed by Christoph Strobl
parent 2d36fc3050
commit 0d06e141a3
2 changed files with 3 additions and 3 deletions

View File

@@ -43,13 +43,13 @@ public abstract class MongoSimpleTypes {
public static final Set<Class<?>> AUTOGENERATED_ID_TYPES;
static {
Set<Class<?>> classes = new HashSet<Class<?>>();
Set<Class<?>> classes = new HashSet<>();
classes.add(ObjectId.class);
classes.add(String.class);
classes.add(BigInteger.class);
AUTOGENERATED_ID_TYPES = Collections.unmodifiableSet(classes);
Set<Class<?>> simpleTypes = new HashSet<Class<?>>();
Set<Class<?>> simpleTypes = new HashSet<>();
simpleTypes.add(DBRef.class);
simpleTypes.add(ObjectId.class);
simpleTypes.add(BsonObjectId.class);

View File

@@ -51,7 +51,7 @@ public class MongoClientVersion {
}
/**
* @return {lliteral true} if MongoDB Java driver is on classpath.
* @return {@literal true} if MongoDB Java driver is on classpath.
*/
public static boolean isAsyncClient() {
return IS_ASYNC_CLIENT;