File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/main/java/com/mongodb/quickstart Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ private static void insertOneDocument(MongoCollection<Document> gradesCollection
39
39
40
40
private static void insertManyDocuments (MongoCollection <Document > gradesCollection ) {
41
41
List <Document > grades = new ArrayList <>();
42
- for (int classId = 1 ; classId <= 10 ; classId ++) {
42
+ for (double classId = 1d ; classId <= 10d ; classId ++) {
43
43
grades .add (generateNewGrade (10001d , classId ));
44
44
}
45
45
Original file line number Diff line number Diff line change 22
22
public class Update {
23
23
24
24
public static void main (String [] args ) {
25
- Logger .getLogger ("org.mongodb.driver" ).setLevel (Level .ALL );
25
+ Logger .getLogger ("org.mongodb.driver" ).setLevel (Level .WARNING );
26
26
JsonWriterSettings prettyPrint = JsonWriterSettings .builder ().indent (true ).build ();
27
27
28
28
try (MongoClient mongoClient = MongoClients .create (System .getProperty ("mongodb.uri" ))) {
You can’t perform that action at this time.
0 commit comments