/src/main/java/org/htmlunit/util/StringUtils.java
final int tmpBlue = Integer.parseInt( tmpHex.substring( 2, 3) + tmpHex.substring( 2, 3) , 16) ;final int tmpGreen = Integer.parseInt( tmpHex.substring( 1, 2) + tmpHex.substring( 1, 2) , 16) ;
final int tmpGreen = Integer.parseInt ( tmpHex.substring ( 1, 2 ) + tmpHex.substring ( 1, 2 ) , 16 ) ;
final int tmpRed = Integer.parseInt(tmpHex.substring(0, 2), 16); final int tmpGreen = Integer.parseInt(tmpHex.substring(2, 4), 16); final int tmpBlue = Integer.parseInt(tmpHex.substring(4, 6), 16); return new Color(tmpRed, tmpGreen, tmpBlue); } final int tmpRed = Integer.parseInt(tmpHex.substring(0, 1) + tmpHex.substring(0, 1), 16); <extra_id_0> final int tmpBlue = Integer.parseInt(tmpHex.substring(2, 3) + tmpHex.substring(2, 3), 16); return new Color(tmpRed, tmpGreen, tmpBlue); } public static Color findColorRGB(final String token) { if (token == null) { return null;