Replace unnecessary type parameters with <>
[Sone.git] / src / main / java / net / pterodactylus / sone / template / UniqueElementFilter.java
index 4705e6f..5ec2cd9 100644 (file)
@@ -38,7 +38,7 @@ public class UniqueElementFilter implements Filter {
                if (!(data instanceof Collection<?>)) {
                        return data;
                }
-               return new HashSet<Object>((Collection<?>) data);
+               return new HashSet<>((Collection<?>) data);
        }
 
 }