8226518: Typo in the ConnectionBuilder javadoc examples

Reviewed-by: bpb
This commit is contained in:
Lance Andersen 2019-06-20 16:15:10 -04:00
parent 61a4303c42
commit b1c6ff7193
3 changed files with 9 additions and 9 deletions

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -44,8 +44,8 @@ package java.sql;
* Connection con = ds.createConnectionBuilder() * Connection con = ds.createConnectionBuilder()
* .user("rafa") * .user("rafa")
* .password("tennis") * .password("tennis")
* .setShardingKey(shardingKey) * .shardingKey(shardingKey)
* .setSuperShardingKey(superShardingKey) * .superShardingKey(superShardingKey)
* .build(); * .build();
* }</pre> * }</pre>
* *

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -47,8 +47,8 @@ import java.sql.ShardingKey;
* PooledConnection con = ds.createPooledConnectionBuilder() * PooledConnection con = ds.createPooledConnectionBuilder()
* .user("rafa") * .user("rafa")
* .password("tennis") * .password("tennis")
* .setShardingKey(shardingKey) * .shardingKey(shardingKey)
* .setSuperShardingKey(superShardingKey) * .superShardingKey(superShardingKey)
* .build(); * .build();
* }</pre> * }</pre>
* *

View file

@ -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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -47,8 +47,8 @@ import java.sql.ShardingKey;
* XAConnection con = ds.createXAConnectionBuilder() * XAConnection con = ds.createXAConnectionBuilder()
* .user("rafa") * .user("rafa")
* .password("tennis") * .password("tennis")
* .setShardingKey(shardingKey) * .shardingKey(shardingKey)
* .setSuperShardingKey(superShardingKey) * .superShardingKey(superShardingKey)
* .build(); * .build();
* }</pre> * }</pre>
* *