Repository: calcite-avatica
Updated Branches:
  refs/heads/master 4b7eee5bf -> a95407aaa


Cosmetic

Suppress deprecation warnings, remove whitespace, and apply code font to
release notes.


Project: http://git-wip-us.apache.org/repos/asf/calcite-avatica/repo
Commit: http://git-wip-us.apache.org/repos/asf/calcite-avatica/commit/a95407aa
Tree: http://git-wip-us.apache.org/repos/asf/calcite-avatica/tree/a95407aa
Diff: http://git-wip-us.apache.org/repos/asf/calcite-avatica/diff/a95407aa

Branch: refs/heads/master
Commit: a95407aaabef1df3b8956add5bcc21d5ea292847
Parents: 4b7eee5
Author: Julian Hyde <[email protected]>
Authored: Sat Jun 30 14:18:04 2018 -0700
Committer: Julian Hyde <[email protected]>
Committed: Sat Jun 30 14:18:04 2018 -0700

----------------------------------------------------------------------
 .../calcite/avatica/AvaticaResultSet.java       |  4 +++
 .../apache/calcite/avatica/util/ArrayImpl.java  |  7 +++-
 pom.xml                                         |  2 +-
 site/_docs/history.md                           | 38 +++++++++++---------
 4 files changed, 33 insertions(+), 18 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/calcite-avatica/blob/a95407aa/core/src/main/java/org/apache/calcite/avatica/AvaticaResultSet.java
----------------------------------------------------------------------
diff --git 
a/core/src/main/java/org/apache/calcite/avatica/AvaticaResultSet.java 
b/core/src/main/java/org/apache/calcite/avatica/AvaticaResultSet.java
index 29e2e0a..e9f2789 100644
--- a/core/src/main/java/org/apache/calcite/avatica/AvaticaResultSet.java
+++ b/core/src/main/java/org/apache/calcite/avatica/AvaticaResultSet.java
@@ -267,6 +267,7 @@ public class AvaticaResultSet extends ArrayFactoryImpl 
implements ResultSet {
     return getAccessor(columnIndex).getDouble();
   }
 
+  @SuppressWarnings("deprecation")
   public BigDecimal getBigDecimal(
       int columnIndex, int scale) throws SQLException {
     return getAccessor(columnIndex).getBigDecimal(scale);
@@ -292,6 +293,7 @@ public class AvaticaResultSet extends ArrayFactoryImpl 
implements ResultSet {
     return getAccessor(columnIndex).getAsciiStream();
   }
 
+  @SuppressWarnings("deprecation")
   public InputStream getUnicodeStream(int columnIndex) throws SQLException {
     return getAccessor(columnIndex).getUnicodeStream();
   }
@@ -332,6 +334,7 @@ public class AvaticaResultSet extends ArrayFactoryImpl 
implements ResultSet {
     return getAccessor(columnLabel).getDouble();
   }
 
+  @SuppressWarnings("deprecation")
   public BigDecimal getBigDecimal(
       String columnLabel, int scale) throws SQLException {
     return getAccessor(columnLabel).getBigDecimal(scale);
@@ -357,6 +360,7 @@ public class AvaticaResultSet extends ArrayFactoryImpl 
implements ResultSet {
     return getAccessor(columnLabel).getAsciiStream();
   }
 
+  @SuppressWarnings("deprecation")
   public InputStream getUnicodeStream(String columnLabel) throws SQLException {
     return getAccessor(columnLabel).getUnicodeStream();
   }

http://git-wip-us.apache.org/repos/asf/calcite-avatica/blob/a95407aa/core/src/main/java/org/apache/calcite/avatica/util/ArrayImpl.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/calcite/avatica/util/ArrayImpl.java 
b/core/src/main/java/org/apache/calcite/avatica/util/ArrayImpl.java
index bb43607..3cdc70a 100644
--- a/core/src/main/java/org/apache/calcite/avatica/util/ArrayImpl.java
+++ b/core/src/main/java/org/apache/calcite/avatica/util/ArrayImpl.java
@@ -221,6 +221,11 @@ public class ArrayImpl implements Array {
     // nothing to do
   }
 
+  /** Returns whether two arrays have the same contents.
+   *
+   * <p>Arrays must have the same size, and elements in the same order.
+   * Elements are compared using {@link Object#equals(Object)}, and null
+   * values are equal to each other. */
   public static boolean equalContents(Array left, Array right) throws 
SQLException {
     ResultSet leftResultSet = left.getResultSet();
     ResultSet rightResultSet = right.getResultSet();
@@ -240,7 +245,7 @@ public class ArrayImpl implements Array {
      *
      * @param elementType The type of the elements
      * @param iterable The elements
-     * @throws SQLException
+     * @throws SQLException on error
      */
     ResultSet create(ColumnMetaData.AvaticaType elementType, Iterable<Object> 
iterable)
         throws SQLException;

http://git-wip-us.apache.org/repos/asf/calcite-avatica/blob/a95407aa/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index ef35803..bf0b3a6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -441,7 +441,7 @@ limitations under the License.
                 <artifactId>guava</artifactId>
               </exclusion>
             </exclusions>
-          </dependency>  
+          </dependency>
           <!-- checkstyle requires Guava 19 -->
         </dependencies>
       </plugin>

http://git-wip-us.apache.org/repos/asf/calcite-avatica/blob/a95407aa/site/_docs/history.md
----------------------------------------------------------------------
diff --git a/site/_docs/history.md b/site/_docs/history.md
index 596c097..d6aea4c 100644
--- a/site/_docs/history.md
+++ b/site/_docs/history.md
@@ -44,16 +44,16 @@ other software versions as specified in `pom.xml`.
 Features and bug fixes
 
 * [<a 
href="https://issues.apache.org/jira/browse/CALCITE-1520";>CALCITE-1520</a>]
-  Implement isValid for AvaticaConnection
+  Implement method `AvaticaConnection.isValid()`
 * [<a 
href="https://issues.apache.org/jira/browse/CALCITE-2212";>CALCITE-2212</a>]
-  Enforce minimum JDK 8 via maven-enforcer-plugin
+  Enforce minimum JDK 8 via `maven-enforcer-plugin`
 * [<a 
href="https://issues.apache.org/jira/browse/CALCITE-2268";>CALCITE-2268</a>]
   Bump HSQLDB to 2.4.0 in Avatica Docker image
 * [<a 
href="https://issues.apache.org/jira/browse/CALCITE-2272";>CALCITE-2272</a>]
   Bump dependencies: Apache Parent POM 19, JDK 10 Surefire and JDK 10 Javadoc
   Fix Javadoc generation
 * [<a 
href="https://issues.apache.org/jira/browse/CALCITE-2218";>CALCITE-2218</a>]
-  Fix AvaticaResultSet#getRow()
+  Fix `AvaticaResultSet.getRow()`
 * Add Docker Hub image for HSQLDB
 * [<a 
href="https://issues.apache.org/jira/browse/CALCITE-2289";>CALCITE-2289</a>]
   Enable html5 for Javadoc on JDK 9+
@@ -63,45 +63,51 @@ Features and bug fixes
   Stop generating ZIP archives for release
 * Bump HSQLDB dependency to 2.4.1
 * [<a 
href="https://issues.apache.org/jira/browse/CALCITE-2294";>CALCITE-2294</a>]
-  Allow customization for AvaticaServerConfiguration for plugging new 
authentication mechanisms (Karan Mehta)
+  Allow customization for `AvaticaServerConfiguration` for plugging new
+  authentication mechanisms (Karan Mehta)
 * [<a 
href="https://issues.apache.org/jira/browse/CALCITE-1884";>CALCITE-1884</a>]
-  DateTimeUtils produces incorrect results for days before the Gregorian 
cutover (Haohui Mai and Sergey Nuyanzin)
+  `DateTimeUtils` produces incorrect results for days before the Gregorian
+  cutover (Haohui Mai and Sergey Nuyanzin)
 * [<a 
href="https://issues.apache.org/jira/browse/CALCITE-2303";>CALCITE-2303</a>]
-  Support MICROSECONDS, MILLISECONDS, EPOCH, ISODOW, ISOYEAR and DECADE time 
units in EXTRACT function (Sergey Nuyanzin)
+  Support `MICROSECONDS`, `MILLISECONDS`, `EPOCH`, `ISODOW`, `ISOYEAR` and
+  `DECADE` time units in `EXTRACT` function (Sergey Nuyanzin)
 * [<a 
href="https://issues.apache.org/jira/browse/CALCITE-2350";>CALCITE-2350</a>]
   Fix cannot shade Avatica with Guava 21.0 or higher
 * [<a 
href="https://issues.apache.org/jira/browse/CALCITE-2341";>CALCITE-2341</a>]
   Fix Javadoc plugin incompatibility
 * [<a 
href="https://issues.apache.org/jira/browse/CALCITE-2352";>CALCITE-2352</a>]
-  Update checkstyle to 6.18 and update supressions.xml
+  Update checkstyle to 6.18 and update `suppressions.xml`
 * [<a 
href="https://issues.apache.org/jira/browse/CALCITE-2219";>CALCITE-2219</a>]
-  Update Connection, Statement, PreparedStatement and ResultSet to throw an 
exception if resource is closed.
+  Update `Connection`, `Statement`, `PreparedStatement` and `ResultSet` to 
throw
+  an exception if resource is closed
 * [<a 
href="https://issues.apache.org/jira/browse/CALCITE-2361";>CALCITE-2361</a>]
   Upgrade Bouncycastle to 1.59
 * [<a 
href="https://issues.apache.org/jira/browse/CALCITE-2299";>CALCITE-2299</a>]
-  Add support for NANOSECOND in TimeUnit and TimeUnitRange 
+  Add support for `NANOSECOND` in `TimeUnit` and `TimeUnitRange`
 * [<a 
href="https://issues.apache.org/jira/browse/CALCITE-2285";>CALCITE-2285</a>]
   Support client cert keystore for Avatica client (Karan Mehta)
-  
+
 Tests
 
 * [<a 
href="https://issues.apache.org/jira/browse/CALCITE-2210";>CALCITE-2210</a>]
-  Remove oraclejdk7, add oraclejdk9, add oraclejdk10, and add ibmjava to 
.travis.yml
+  Remove `oraclejdk7`, add `oraclejdk9`, add `oraclejdk10`, and add `ibmjava` 
to
+  `.travis.yml`
 * [<a 
href="https://issues.apache.org/jira/browse/CALCITE-2255";>CALCITE-2255</a>]
-  Add JDK 11 .travis.yml
+  Add JDK 11 `.travis.yml`
 * [<a 
href="https://issues.apache.org/jira/browse/CALCITE-2022";>CALCITE-2022</a>]
-  Add dynamic drive calculation to correctly determine trust store location 
when testing on Windows (Sergey Nuyanzin)
+  Add dynamic drive calculation to correctly determine trust store location 
when
+  testing on Windows (Sergey Nuyanzin)
 
 Website and Documentation
 
 * [<a 
href="https://issues.apache.org/jira/browse/CALCITE-1160";>CALCITE-1160</a>]
   Redirect from Avatica community to Calcite community
 * [<a 
href="https://issues.apache.org/jira/browse/CALCITE-1937";>CALCITE-1937</a>]
-  Update Avatica website to support the inclusion of Avatica-Go's content and 
add option for using docker to develop
-  and build the website
+  Update Avatica website to support the inclusion of Avatica-Go's content and 
add
+  option for using docker to develop and build the website
 * [<a 
href="https://issues.apache.org/jira/browse/CALCITE-1914";>CALCITE-1914</a>]
   Add DOAP (Description of a Project) file for Avatica
-* Fix broken link in HOWTO
+* Fix broken link in `HOWTO`
 * Add missing license header to avatica-go docs generation script
 
 ## <a 
href="https://github.com/apache/calcite-avatica/releases/tag/rel/avatica-1.11.0";>1.11.0</a>
 / 2018-03-09

Reply via email to