diamond op #32

This commit is contained in:
Enrique Zamudio
2015-02-19 19:55:24 -06:00
parent fa4006f270
commit e278903423
8 changed files with 37 additions and 37 deletions
@@ -49,12 +49,12 @@ public class AlphaParseInfo extends AlphaNumericFieldParseInfo {
}
try {
if (custom == null) {
return new IsoValue<String>(type, new String(buf, pos, length, getCharacterEncoding()), length, null);
return new IsoValue<>(type, new String(buf, pos, length, getCharacterEncoding()), length, null);
} else {
T decoded = custom.decodeField(new String(buf, pos, length, getCharacterEncoding()));
return decoded == null ?
new IsoValue<String>(type, new String(buf, pos, length, getCharacterEncoding()), length, null) :
new IsoValue<T>(type, decoded, length, custom);
new IsoValue<>(type, new String(buf, pos, length, getCharacterEncoding()), length, null) :
new IsoValue<>(type, decoded, length, custom);
}
} catch (IndexOutOfBoundsException ex) {
throw new ParseException(String.format(