aboutsummaryrefslogtreecommitdiffstats
path: root/guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/Chars.java
diff options
context:
space:
mode:
Diffstat (limited to 'guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/Chars.java')
-rw-r--r--guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/Chars.java9
1 files changed, 2 insertions, 7 deletions
diff --git a/guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/Chars.java b/guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/Chars.java
index 62c716a..5f78865 100644
--- a/guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/Chars.java
+++ b/guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/Chars.java
@@ -38,10 +38,6 @@ import java.util.RandomAccess;
* <p>All the operations in this class treat {@code char} values strictly
* numerically; they are neither Unicode-aware nor locale-dependent.
*
- * <p>See the Guava User Guide article on <a href=
- * "http://code.google.com/p/guava-libraries/wiki/PrimitivesExplained">
- * primitive utilities</a>.
- *
* @author Kevin Bourrillion
* @since 1.0
*/
@@ -472,8 +468,7 @@ public final class Chars {
@Override public Character set(int index, Character element) {
checkElementIndex(index, size());
char oldValue = array[start + index];
- // checkNotNull for GWT (do not optimize)
- array[start + index] = checkNotNull(element);
+ array[start + index] = checkNotNull(element); // checkNotNull for GWT (do not optimize)
return oldValue;
}
@@ -524,7 +519,7 @@ public final class Chars {
}
char[] toCharArray() {
- // Arrays.copyOfRange() is not available under GWT
+ // Arrays.copyOfRange() requires Java 6
int size = size();
char[] result = new char[size];
System.arraycopy(array, start, result, 0, size);