Skip to content

Commit f02ab36

Browse files
committed
Suppressing unchecked warning in DB.
1 parent 2ba6588 commit f02ab36

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/com/mongodb/DB.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2008 - 2013 MongoDB Inc., Inc. <http://mongodb.com>
2+
* Copyright (c) 2008 - 2013 MongoDB Inc. <http://10gen.com>
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -103,6 +103,7 @@ ReadPreference getCommandReadPreference(DBObject command, ReadPreference request
103103
primaryRequired = true;
104104
}
105105
} else if(comString.equals("aggregate")) {
106+
@SuppressWarnings("unchecked")
106107
List<DBObject> pipeline = (List<DBObject>) command.get("pipeline");
107108
primaryRequired = pipeline.get(pipeline.size()-1).get("$out") != null;
108109
} else {

0 commit comments

Comments
 (0)