Index: runtime/src/com/sun/xml/bind/DatatypeConverterImpl.java =================================================================== RCS file: /cvs/jaxb2-sources/jaxb-ri/runtime/src/com/sun/xml/bind/DatatypeConverterImpl.java,v retrieving revision 1.16 diff -r1.16 DatatypeConverterImpl.java 102,111d101 < /** < * Faster but less robust String->int conversion. < * < * Note that: < *
    < *
  1. XML Schema allows '+', but {@link Integer#valueOf(String)} is not. < *
  2. XML Schema allows leading and trailing (but not in-between) whitespaces.. < * {@link Integer#valueOf(String)} doesn't allow any. < *
< */ 113,135c103 < int len = s.length(); < int sign = 1; < < int r = 0; < < for( int i=0; i return Integer.valueOf(removeOptionalPlus(WhiteSpaceProcessor.trim(s)).toString());