8226518: Typo in the ConnectionBuilder javadoc examples
authorlancea
Thu, 20 Jun 2019 16:15:10 -0400
changeset 55448 0f141453b9e0
parent 55447 95794e32352e
child 55449 d3030613fab9
8226518: Typo in the ConnectionBuilder javadoc examples Reviewed-by: bpb
src/java.sql/share/classes/java/sql/ConnectionBuilder.java
src/java.sql/share/classes/javax/sql/PooledConnectionBuilder.java
src/java.sql/share/classes/javax/sql/XAConnectionBuilder.java
--- a/src/java.sql/share/classes/java/sql/ConnectionBuilder.java	Thu Jun 20 14:03:10 2019 -0600
+++ b/src/java.sql/share/classes/java/sql/ConnectionBuilder.java	Thu Jun 20 16:15:10 2019 -0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -44,8 +44,8 @@
  *     Connection con = ds.createConnectionBuilder()
  *                       .user("rafa")
  *                       .password("tennis")
- *                       .setShardingKey(shardingKey)
- *                       .setSuperShardingKey(superShardingKey)
+ *                       .shardingKey(shardingKey)
+ *                       .superShardingKey(superShardingKey)
  *                       .build();
  * }</pre>
  *
--- a/src/java.sql/share/classes/javax/sql/PooledConnectionBuilder.java	Thu Jun 20 14:03:10 2019 -0600
+++ b/src/java.sql/share/classes/javax/sql/PooledConnectionBuilder.java	Thu Jun 20 16:15:10 2019 -0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -47,8 +47,8 @@
  *     PooledConnection con = ds.createPooledConnectionBuilder()
  *                       .user("rafa")
  *                       .password("tennis")
- *                       .setShardingKey(shardingKey)
- *                       .setSuperShardingKey(superShardingKey)
+ *                       .shardingKey(shardingKey)
+ *                       .superShardingKey(superShardingKey)
  *                       .build();
  * }</pre>
  *
--- a/src/java.sql/share/classes/javax/sql/XAConnectionBuilder.java	Thu Jun 20 14:03:10 2019 -0600
+++ b/src/java.sql/share/classes/javax/sql/XAConnectionBuilder.java	Thu Jun 20 16:15:10 2019 -0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -47,8 +47,8 @@
  *     XAConnection con = ds.createXAConnectionBuilder()
  *                       .user("rafa")
  *                       .password("tennis")
- *                       .setShardingKey(shardingKey)
- *                       .setSuperShardingKey(superShardingKey)
+ *                       .shardingKey(shardingKey)
+ *                       .superShardingKey(superShardingKey)
  *                       .build();
  * }</pre>
  *