private Integer parseInt(String s,int flags){
  if (convertColorNames(flags)) {
    String c=Descriptor.convertColorName(s);
    if (c != null) {
      s=c;
    }
  }
  try {
    if (hasLeadingZeros(s)) {
      return null;
    }
 else {
      return Integer.decode(s);
    }
  }
 catch (  NumberFormatException e) {
    return null;
  }
}

private Integer parseInt ( String s , int flags ) { if ( convertColorNames ( flags ) ) { String c = Descriptor . convertColorName ( s ) ; if ( c != null ) { s = c ; } } try { if ( hasLeadingZeros ( s ) ) { return null ; } else { return Integer . decode ( s ) ; } } catch ( NumberFormatException e ) { return null ; } }
we accept 0x and # prefixes .
