changeset 55448:0f141453b9e0

8226518: Typo in the ConnectionBuilder javadoc examples Reviewed-by: bpb
author lancea
date Thu, 20 Jun 2019 16:15:10 -0400
parents 95794e32352e
children d3030613fab9
files 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
diffstat 3 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- 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>
  *