Skip to content

Commit fe6fad1

Browse files
committed
Only Java 7+ has StandardCharsets
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1744164 13f79535-47bb-0310-9956-ffa450edef68
1 parent 321a2f3 commit fe6fad1

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/main/java/org/apache/commons/codec/Charsets.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public static Charset toCharset(final String charset) {
9393
* Every implementation of the Java platform is required to support this character encoding.
9494
* </p>
9595
* <p>
96-
* On Java, use {@link java.nio.charset.StandardCharsets#ISO_8859_1} instead.
96+
* On Java 7 or later, use {@link java.nio.charset.StandardCharsets#ISO_8859_1} instead.
9797
* </p>
9898
*
9999
* @see <a href="http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
@@ -106,7 +106,7 @@ public static Charset toCharset(final String charset) {
106106
* Every implementation of the Java platform is required to support this character encoding.
107107
* </p>
108108
* <p>
109-
* On Java, use {@link java.nio.charset.StandardCharsets#ISO_8859_1} instead.
109+
* On Java 7 or later, use {@link java.nio.charset.StandardCharsets#ISO_8859_1} instead.
110110
* </p>
111111
*
112112
* @see <a href="http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
@@ -120,7 +120,7 @@ public static Charset toCharset(final String charset) {
120120
* Every implementation of the Java platform is required to support this character encoding.
121121
* </p>
122122
* <p>
123-
* On Java, use {@link java.nio.charset.StandardCharsets#ISO_8859_1} instead.
123+
* On Java 7 or later, use {@link java.nio.charset.StandardCharsets#ISO_8859_1} instead.
124124
* </p>
125125
*
126126
* @see <a href="http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
@@ -133,7 +133,7 @@ public static Charset toCharset(final String charset) {
133133
* Every implementation of the Java platform is required to support this character encoding.
134134
* </p>
135135
* <p>
136-
* On Java, use {@link java.nio.charset.StandardCharsets#ISO_8859_1} instead.
136+
* On Java 7 or later, use {@link java.nio.charset.StandardCharsets#ISO_8859_1} instead.
137137
* </p>
138138
*
139139
* @see <a href="http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
@@ -146,7 +146,7 @@ public static Charset toCharset(final String charset) {
146146
* Every implementation of the Java platform is required to support this character encoding.
147147
* </p>
148148
* <p>
149-
* On Java, use {@link java.nio.charset.StandardCharsets#ISO_8859_1} instead.
149+
* On Java 7 or later, use {@link java.nio.charset.StandardCharsets#ISO_8859_1} instead.
150150
* </p>
151151
*
152152
* @see <a href="http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
@@ -159,7 +159,7 @@ public static Charset toCharset(final String charset) {
159159
* Every implementation of the Java platform is required to support this character encoding.
160160
* </p>
161161
* <p>
162-
* On Java, use {@link java.nio.charset.StandardCharsets#ISO_8859_1} instead.
162+
* On Java 7 or later, use {@link java.nio.charset.StandardCharsets#ISO_8859_1} instead.
163163
* </p>
164164
*
165165
* @see <a href="http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a>

0 commit comments

Comments
 (0)