Skip to content

Commit bbd5c73

Browse files
committed
minor
1 parent 2312c06 commit bbd5c73

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

driver-core/src/main/java/com/datastax/driver/core/Cluster.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -919,8 +919,10 @@ public Builder addContactPoint(String address) {
919919
* @see Builder#addContactPoint
920920
*/
921921
public Builder addContactPoints(String... addresses) {
922+
System.out.println("start to addContactPoints");
922923
for (String address : addresses)
923924
addContactPoint(address);
925+
System.out.println("finish addContactPoints");
924926
return this;
925927
}
926928

driver-examples/src/main/java/com/datastax/driver/examples/basic/CreateAndPopulateKeyspace.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public static void main(String[] args) {
4242

4343
CreateAndPopulateKeyspace client = new CreateAndPopulateKeyspace();
4444

45-
System.out.println("test");
45+
System.out.println("test");
4646
try {
4747
client.connect(CONTACT_POINTS, PORT);
4848
client.createSchema();
@@ -51,7 +51,7 @@ public static void main(String[] args) {
5151

5252
} catch (Error e) {
5353
e.printStackTrace();
54-
} finally {
54+
} finally {
5555
client.close();
5656
}
5757
}
@@ -69,13 +69,13 @@ public static void main(String[] args) {
6969
*/
7070
public void connect(String[] contactPoints, int port) {
7171

72-
System.out.println("tes2");
72+
System.out.println("tes2");
7373
cluster = Cluster.builder()
7474
.addContactPoints(contactPoints).withPort(port)
7575
.build();
7676

7777
System.out.printf("Connected to cluster: %s%n", cluster.getMetadata().getClusterName());
78-
System.out.println("tes3");
78+
System.out.println("tes3");
7979

8080
session = cluster.connect();
8181
}

0 commit comments

Comments
 (0)