Replace unnecessary type parameters with <>
[Sone.git] / src / main / java / net / pterodactylus / sone / template / UniqueElementFilter.java
index 2ca695b..5ec2cd9 100644 (file)
@@ -27,8 +27,6 @@ import net.pterodactylus.util.template.TemplateContext;
 
 /**
  * Filter that reduces a collection to a {@link Set}, removing duplicates.
- *
- * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
  */
 public class UniqueElementFilter implements Filter {
 
@@ -40,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);
        }
 
 }