commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1814525 - in /commons/proper/codec/trunk/src/main/java/org/apache/commons/codec: CharEncoding.java binary/StringUtils.java net/BCodec.java net/QCodec.java net/RFC1522Codec.java
Date Tue, 07 Nov 2017 16:55:35 GMT
Author: ggregory
Date: Tue Nov  7 16:55:34 2017
New Revision: 1814525

URL: http://svn.apache.org/viewvc?rev=1814525&view=rev
Log:
[CODEC-244] Update from Java 6 to Java 7. Update JRE Javadoc links.

Modified:
    commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/CharEncoding.java
    commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/binary/StringUtils.java
    commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/net/BCodec.java
    commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/net/QCodec.java
    commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/net/RFC1522Codec.java

Modified: commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/CharEncoding.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/CharEncoding.java?rev=1814525&r1=1814524&r2=1814525&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/CharEncoding.java (original)
+++ commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/CharEncoding.java Tue
Nov  7 16:55:34 2017
@@ -21,7 +21,7 @@ package org.apache.commons.codec;
  * Character encoding names required of every implementation of the Java platform.
  *
  * From the Java documentation <a
- * href="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>:
+ * href="http://download.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>:
  * <p>
  * <cite>Every implementation of the Java platform is required to support the following
character encodings. Consult the
  * release documentation for your implementation to see if any other encodings are supported.
Consult the release
@@ -51,7 +51,7 @@ package org.apache.commons.codec;
  * This class is immutable and thread-safe.
  * </p>
  *
- * @see <a href="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
+ * @see <a href="http://download.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
  * @since 1.4
  * @version $Id$
  */
@@ -61,7 +61,7 @@ public class CharEncoding {
      * <p>
      * Every implementation of the Java platform is required to support this character encoding.
      *
-     * @see <a href="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
+     * @see <a href="http://download.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
      */
     public static final String ISO_8859_1 = "ISO-8859-1";
 
@@ -70,7 +70,7 @@ public class CharEncoding {
      * <p>
      * Every implementation of the Java platform is required to support this character encoding.
      *
-     * @see <a href="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
+     * @see <a href="http://download.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
      */
     public static final String US_ASCII = "US-ASCII";
 
@@ -80,7 +80,7 @@ public class CharEncoding {
      * <p>
      * Every implementation of the Java platform is required to support this character encoding.
      *
-     * @see <a href="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
+     * @see <a href="http://download.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
      */
     public static final String UTF_16 = "UTF-16";
 
@@ -89,7 +89,7 @@ public class CharEncoding {
      * <p>
      * Every implementation of the Java platform is required to support this character encoding.
      *
-     * @see <a href="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
+     * @see <a href="http://download.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
      */
     public static final String UTF_16BE = "UTF-16BE";
 
@@ -98,7 +98,7 @@ public class CharEncoding {
      * <p>
      * Every implementation of the Java platform is required to support this character encoding.
      *
-     * @see <a href="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
+     * @see <a href="http://download.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
      */
     public static final String UTF_16LE = "UTF-16LE";
 
@@ -107,7 +107,7 @@ public class CharEncoding {
      * <p>
      * Every implementation of the Java platform is required to support this character encoding.
      *
-     * @see <a href="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
+     * @see <a href="http://download.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
      */
     public static final String UTF_8 = "UTF-8";
 }

Modified: commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/binary/StringUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/binary/StringUtils.java?rev=1814525&r1=1814524&r2=1814525&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/binary/StringUtils.java
(original)
+++ commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/binary/StringUtils.java
Tue Nov  7 16:55:34 2017
@@ -26,13 +26,13 @@ import org.apache.commons.codec.Charsets
 
 /**
  * Converts String to and from bytes using the encodings required by the Java specification.
These encodings are
- * specified in <a href="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">
+ * specified in <a href="http://download.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html">
  * Standard charsets</a>.
  *
  * <p>This class is immutable and thread-safe.</p>
  *
  * @see CharEncoding
- * @see <a href="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
+ * @see <a href="http://download.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
  * @version $Id$
  * @since 1.4
  */
@@ -123,7 +123,7 @@ public class StringUtils {
      * @throws NullPointerException
      *             Thrown if {@link Charsets#UTF_8} is not initialized, which should never
happen since it is
      *             required by the Java platform specification.
-     * @see <a href="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
+     * @see <a href="http://download.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
      * @see #getBytesUnchecked(String, String)
      * @since 1.11
      */
@@ -142,7 +142,7 @@ public class StringUtils {
      *             Thrown if {@link Charsets#ISO_8859_1} is not initialized, which should
never happen since it is
      *             required by the Java platform specification.
      * @since As of 1.7, throws {@link NullPointerException} instead of UnsupportedEncodingException
-     * @see <a href="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
+     * @see <a href="http://download.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
      * @see #getBytesUnchecked(String, String)
      */
     public static byte[] getBytesIso8859_1(final String string) {
@@ -191,7 +191,7 @@ public class StringUtils {
      *             Thrown if {@link Charsets#US_ASCII} is not initialized, which should never
happen since it is
      *             required by the Java platform specification.
      * @since As of 1.7, throws {@link NullPointerException} instead of UnsupportedEncodingException
-     * @see <a href="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
+     * @see <a href="http://download.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
      * @see #getBytesUnchecked(String, String)
      */
     public static byte[] getBytesUsAscii(final String string) {
@@ -209,7 +209,7 @@ public class StringUtils {
      *             Thrown if {@link Charsets#UTF_16} is not initialized, which should never
happen since it is
      *             required by the Java platform specification.
      * @since As of 1.7, throws {@link NullPointerException} instead of UnsupportedEncodingException
-     * @see <a href="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
+     * @see <a href="http://download.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
      * @see #getBytesUnchecked(String, String)
      */
     public static byte[] getBytesUtf16(final String string) {
@@ -227,7 +227,7 @@ public class StringUtils {
      *             Thrown if {@link Charsets#UTF_16BE} is not initialized, which should never
happen since it is
      *             required by the Java platform specification.
      * @since As of 1.7, throws {@link NullPointerException} instead of UnsupportedEncodingException
-     * @see <a href="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
+     * @see <a href="http://download.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
      * @see #getBytesUnchecked(String, String)
      */
     public static byte[] getBytesUtf16Be(final String string) {
@@ -245,7 +245,7 @@ public class StringUtils {
      *             Thrown if {@link Charsets#UTF_16LE} is not initialized, which should never
happen since it is
      *             required by the Java platform specification.
      * @since As of 1.7, throws {@link NullPointerException} instead of UnsupportedEncodingException
-     * @see <a href="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
+     * @see <a href="http://download.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
      * @see #getBytesUnchecked(String, String)
      */
     public static byte[] getBytesUtf16Le(final String string) {
@@ -263,7 +263,7 @@ public class StringUtils {
      *             Thrown if {@link Charsets#UTF_8} is not initialized, which should never
happen since it is
      *             required by the Java platform specification.
      * @since As of 1.7, throws {@link NullPointerException} instead of UnsupportedEncodingException
-     * @see <a href="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
+     * @see <a href="http://download.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
      * @see #getBytesUnchecked(String, String)
      */
     public static byte[] getBytesUtf8(final String string) {

Modified: commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/net/BCodec.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/net/BCodec.java?rev=1814525&r1=1814524&r2=1814525&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/net/BCodec.java (original)
+++ commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/net/BCodec.java Tue
Nov  7 16:55:34 2017
@@ -62,7 +62,7 @@ public class BCodec extends RFC1522Codec
      * @param charset
      *            the default string Charset to use.
      *
-     * @see <a href="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
+     * @see <a href="http://download.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
      * @since 1.7
      */
     public BCodec(final Charset charset) {
@@ -77,7 +77,7 @@ public class BCodec extends RFC1522Codec
      * @throws java.nio.charset.UnsupportedCharsetException
      *             If the named Charset is unavailable
      * @since 1.7 throws UnsupportedCharsetException if the named Charset is unavailable
-     * @see <a href="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
+     * @see <a href="http://download.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
      */
     public BCodec(final String charsetName) {
         this(Charset.forName(charsetName));

Modified: commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/net/QCodec.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/net/QCodec.java?rev=1814525&r1=1814524&r2=1814525&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/net/QCodec.java (original)
+++ commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/net/QCodec.java Tue
Nov  7 16:55:34 2017
@@ -122,7 +122,7 @@ public class QCodec extends RFC1522Codec
      * @param charset
      *            the default string Charset to use.
      *
-     * @see <a href="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
+     * @see <a href="http://download.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
      * @since 1.7
      */
     public QCodec(final Charset charset) {
@@ -138,7 +138,7 @@ public class QCodec extends RFC1522Codec
      * @throws java.nio.charset.UnsupportedCharsetException
      *             If the named Charset is unavailable
      * @since 1.7 throws UnsupportedCharsetException if the named Charset is unavailable
-     * @see <a href="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
+     * @see <a href="http://download.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
      */
     public QCodec(final String charsetName) {
         this(Charset.forName(charsetName));

Modified: commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/net/RFC1522Codec.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/net/RFC1522Codec.java?rev=1814525&r1=1814524&r2=1814525&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/net/RFC1522Codec.java
(original)
+++ commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/net/RFC1522Codec.java
Tue Nov  7 16:55:34 2017
@@ -63,7 +63,7 @@ abstract class RFC1522Codec {
      * @return RFC 1522 compliant "encoded-word"
      * @throws EncoderException
      *             thrown if there is an error condition during the Encoding process.
-     * @see <a href="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
+     * @see <a href="http://download.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
      */
     protected String encodeText(final String text, final Charset charset) throws EncoderException
{
         if (text == null) {
@@ -97,7 +97,7 @@ abstract class RFC1522Codec {
      * @throws UnsupportedEncodingException
      *             if charset is not available
      *
-     * @see <a href="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
+     * @see <a href="http://download.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html">Standard
charsets</a>
      */
     protected String encodeText(final String text, final String charsetName)
             throws EncoderException, UnsupportedEncodingException {



Mime
View raw message