mirror of
https://github.com/google/nomulus
synced 2026-01-10 16:00:52 +00:00
Remove unnecessary explicit generic type declarations
They can be inferred correctly even in Java 7, and display as compiler warnings in IntelliJ. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=173451087
This commit is contained in:
@@ -33,7 +33,7 @@ public final class XmlToEnumMapper<T extends Enum<?>> {
|
||||
* Creates a new {@link XmlToEnumMapper} from xml value to enum value.
|
||||
*/
|
||||
public static <T extends Enum<?>> XmlToEnumMapper<T> create(T[] enumValues) {
|
||||
return new XmlToEnumMapper<T>(enumValues);
|
||||
return new XmlToEnumMapper<>(enumValues);
|
||||
}
|
||||
|
||||
private XmlToEnumMapper(T[] enumValues) {
|
||||
|
||||
Reference in New Issue
Block a user