Changeset 7583


Ignore:
Timestamp:
01/24/11 17:49:50 (9 years ago)
Author:
melissa
Message:

Deprecated superfluous getHexString(byte[]) method.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/common/src/loci/common/DataTools.java

    r6881 r7583  
    698698  // -- Strings -- 
    699699 
    700   /** Convert byte array to a hexadecimal string. */ 
     700  /** 
     701   * Convert byte array to a hexadecimal string. 
     702   * @deprecated Use {@link bytesToHex(byte[])} instead. 
     703   */ 
     704  @Deprecated 
    701705  public static String getHexString(byte[] b) { 
    702     StringBuffer sb = new StringBuffer(); 
    703     for (int i=0; i<b.length; i++) { 
    704       String a = Integer.toHexString(b[i] & 0xff); 
    705       if (a.length() == 1) sb.append("0"); 
    706       sb.append(a); 
    707     } 
    708     return sb.toString(); 
     706    return bytesToHex(b); 
    709707  } 
    710708 
Note: See TracChangeset for help on using the changeset viewer.