@@ -55,10 +55,9 @@ of this software and associated documentation files (the "Software"), to deal
5555 * A kim object can be constructed from an ordinary UTF-16 string, or from a
5656 * byte array. A kim object can produce a UTF-16 string.
5757 *
58- * As with UTF-8, Kim can be sorted, and it is possible to detect character
59- * boundaries within a byte sequence. UTF-8 is one of the world's great
60- * inventions. While Kim is more efficient, it is not clear that it is worth
61- * the expense of transition.
58+ * As with UTF-8, it is possible to detect character boundaries within a byte
59+ * sequence. UTF-8 is one of the world's great inventions. While Kim is more
60+ * efficient, it is not clear that it is worth the expense of transition.
6261 *
6362 * @version 2013-04-18
6463 */
@@ -70,7 +69,7 @@ public class Kim {
7069 private byte [] bytes = null ;
7170
7271 /**
73- * The kim's hashcode, conforming to Java's hashcode recommendations .
72+ * The kim's hashcode, conforming to Java's hashcode conventions .
7473 */
7574 private int hashcode = 0 ;
7675
@@ -158,7 +157,7 @@ public Kim(String string) throws JSONException {
158157 this .length = 0 ;
159158
160159// First pass: Determine the length of the kim, allowing for the UTF-16
161- // to UTF-32 conversion, and then the UTF-32 to kim conversion.
160+ // to UTF-32 conversion, and then the UTF-32 to Kim conversion.
162161
163162 if (stringLength > 0 ) {
164163 for (int i = 0 ; i < stringLength ; i += 1 ) {
@@ -320,7 +319,7 @@ public boolean equals(Object obj) {
320319 }
321320
322321 /**
323- *
322+ * Get a byte from a kim.
324323 * @param at
325324 * The position of the byte. The first byte is at 0.
326325 * @return The byte.
@@ -348,7 +347,7 @@ public int hashCode() {
348347 *
349348 * @return The string. A kim memoizes its string representation.
350349 * @throws JSONException
351- * if the kim is invalid .
350+ * if the kim is not valid .
352351 */
353352 public String toString () throws JSONException {
354353 if (this .string == null ) {
0 commit comments