Apply "type inference for generic instance creation" Java 7 feature
Change-Id: Ia14802c903ca67b9d94dc6038d70b0e9644bc621
This commit is contained in:
@@ -131,7 +131,7 @@ public class CmdLineParser {
|
||||
out.write(name);
|
||||
|
||||
char next = '?';
|
||||
List<NamedOptionDef> booleans = new ArrayList<NamedOptionDef>();
|
||||
List<NamedOptionDef> booleans = new ArrayList<>();
|
||||
for (@SuppressWarnings("rawtypes") OptionHandler handler : parser.options) {
|
||||
if (handler.option instanceof NamedOptionDef) {
|
||||
NamedOptionDef n = (NamedOptionDef) handler.option;
|
||||
|
||||
Reference in New Issue
Block a user