From 11e010320c0443769eb4b5998184bc0f41edf12b Mon Sep 17 00:00:00 2001 From: Lance Andersen Date: Mon, 21 Jan 2013 14:08:39 -0500 Subject: [PATCH] 8006642: Fix javadoc warnings due to Integer.MAX_VALUE Reviewed-by: alanb --- .../classes/java/sql/BatchUpdateException.java | 4 ++-- .../classes/java/sql/PreparedStatement.java | 2 +- jdk/src/share/classes/java/sql/Statement.java | 17 ++++++++--------- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/jdk/src/share/classes/java/sql/BatchUpdateException.java b/jdk/src/share/classes/java/sql/BatchUpdateException.java index 9f5fb2e33b5..4d41d471cff 100644 --- a/jdk/src/share/classes/java/sql/BatchUpdateException.java +++ b/jdk/src/share/classes/java/sql/BatchUpdateException.java @@ -409,7 +409,7 @@ public class BatchUpdateException extends SQLException { * cause and updateCounts. *

* This constructor should be used when the returned update count may exceed - * {@link Integer.MAX_VALUE}. + * {@link Integer#MAX_VALUE}. *

* @param reason a description of the error * @param SQLState an XOPEN or SQL:2003 code identifying the exception @@ -447,7 +447,7 @@ public class BatchUpdateException extends SQLException { * the BatchUpdateException was thrown. *

* This method should be used when {@code Statement.executeLargeBatch} is - * invoked and the returned update count may exceed {@link Integer.MAX_VALUE}. + * invoked and the returned update count may exceed {@link Integer#MAX_VALUE}. *

* @return an array of long containing the update counts * for the updates that were executed successfully before this error diff --git a/jdk/src/share/classes/java/sql/PreparedStatement.java b/jdk/src/share/classes/java/sql/PreparedStatement.java index 22b170777cf..e4d16e86e6f 100644 --- a/jdk/src/share/classes/java/sql/PreparedStatement.java +++ b/jdk/src/share/classes/java/sql/PreparedStatement.java @@ -1300,7 +1300,7 @@ public interface PreparedStatement extends Statement { * such as a DDL statement. *

* This method should be used when the returned row count may exceed - * {@link Integer.MAX_VALUE}. + * {@link Integer#MAX_VALUE}. *

* The default implementation will throw {@code UnsupportedOperationException} * diff --git a/jdk/src/share/classes/java/sql/Statement.java b/jdk/src/share/classes/java/sql/Statement.java index 584f17c0a17..34859c52c44 100644 --- a/jdk/src/share/classes/java/sql/Statement.java +++ b/jdk/src/share/classes/java/sql/Statement.java @@ -1077,7 +1077,7 @@ public interface Statement extends Wrapper, AutoCloseable { * is returned. This method should be called only once per result. *

* This method should be used when the returned row count may exceed - * {@link Integer.MAX_VALUE}. + * {@link Integer#MAX_VALUE}. *

* The default implementation will throw {@code UnsupportedOperationException} * @@ -1100,7 +1100,7 @@ public interface Statement extends Wrapper, AutoCloseable { * rows are silently dropped. *

* This method should be used when the row limit may exceed - * {@link Integer.MAX_VALUE}. + * {@link Integer#MAX_VALUE}. *

* The default implementation will throw {@code UnsupportedOperationException} * @@ -1122,7 +1122,7 @@ public interface Statement extends Wrapper, AutoCloseable { * the excess rows are silently dropped. *

* This method should be used when the returned row limit may exceed - * {@link Integer.MAX_VALUE}. + * {@link Integer#MAX_VALUE}. *

* The default implementation will return {@code 0} * @@ -1172,7 +1172,7 @@ public interface Statement extends Wrapper, AutoCloseable { * *

* This method should be used when the returned row count may exceed - * {@link Integer.MAX_VALUE}. + * {@link Integer#MAX_VALUE}. *

* The default implementation will throw {@code UnsupportedOperationException} * @@ -1203,7 +1203,7 @@ public interface Statement extends Wrapper, AutoCloseable { * SQL statement that returns nothing, such as an SQL DDL statement. *

* This method should be used when the returned row count may exceed - * {@link Integer.MAX_VALUE}. + * {@link Integer#MAX_VALUE}. *

* Note:This method cannot be called on a * PreparedStatement or CallableStatement. @@ -1242,7 +1242,7 @@ public interface Statement extends Wrapper, AutoCloseable { * auto-generated keys (the list of such statements is vendor-specific). *

* This method should be used when the returned row count may exceed - * {@link Integer.MAX_VALUE}. + * {@link Integer#MAX_VALUE}. *

* Note:This method cannot be called on a * PreparedStatement or CallableStatement. @@ -1290,7 +1290,7 @@ public interface Statement extends Wrapper, AutoCloseable { * auto-generated keys (the list of such statements is vendor-specific). *

* This method should be used when the returned row count may exceed - * {@link Integer.MAX_VALUE}. + * {@link Integer#MAX_VALUE}. *

* Note:This method cannot be called on a * PreparedStatement or CallableStatement. @@ -1334,7 +1334,7 @@ public interface Statement extends Wrapper, AutoCloseable { * auto-generated keys (the list of such statements is vendor-specific). *

* This method should be used when the returned row count may exceed - * {@link Integer.MAX_VALUE}. + * {@link Integer#MAX_VALUE}. *

* Note:This method cannot be called on a * PreparedStatement or CallableStatement. @@ -1368,4 +1368,3 @@ public interface Statement extends Wrapper, AutoCloseable { throw new SQLFeatureNotSupportedException("executeLargeUpdate not implemented"); } } -