Reviewers: jat, jbrosenberg,

Description:
Adds back Util.toHexString() and Util.hex4() as deprecated methods.
They were moved to the Utility class.  This gives 3rd party linker and
generator authors a chance to migrate their code.


Please review this at http://gwt-code-reviews.appspot.com/1420802/

Affected files:
  M dev/core/src/com/google/gwt/dev/util/Util.java


Index: dev/core/src/com/google/gwt/dev/util/Util.java
===================================================================
--- dev/core/src/com/google/gwt/dev/util/Util.java      (revision 9996)
+++ dev/core/src/com/google/gwt/dev/util/Util.java      (working copy)
@@ -132,6 +132,30 @@
   }

   /**
+   * A 4-digit hex result.
+   *
+   * @deprecated use {@link Utility#hex4(char, StringBuffer)} instead.
+   */
+  @Deprecated
+  public static void hex4(char c, StringBuffer sb) {
+    return Utility.hex4(c, sb);
+  }
+
+  /**
+   * Returns a string representation of the byte array as a series of
+   * hexadecimal characters.
+   *
+   * @param bytes byte array to convert
+   * @return a string representation of the byte array as a series of
+   *         hexadecimal characters
+   * @deprecated use {@link Utility#toHexString(byte[])} instead.
+   */
+  @Deprecated
+  public static String toHexString(byte[] bytes) {
+    return Utility.toHexString(bytes);
+  }
+
+  /**
    * Computes the MD5 hash for the specified byte array.
    *
    * @return a big fat string encoding of the MD5 for the content, suitably


--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to