X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=inline;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ftemplate%2FRequestChangeFilter.java;h=16cb0629776bfaf5b696e6a366c48dc3435fe46f;hb=ecfd4c5a91d204ce4c001d19fa600cf42ac4cf43;hp=2d6167a37739121daf3cdac320a288c3b4a35a42;hpb=c4ae226ec5052116cefc542ae2017036a7bc6332;p=Sone.git
diff --git a/src/main/java/net/pterodactylus/sone/template/RequestChangeFilter.java b/src/main/java/net/pterodactylus/sone/template/RequestChangeFilter.java
index 2d6167a..16cb062 100644
--- a/src/main/java/net/pterodactylus/sone/template/RequestChangeFilter.java
+++ b/src/main/java/net/pterodactylus/sone/template/RequestChangeFilter.java
@@ -1,5 +1,5 @@
/*
- * Sone - RequestChangeFilter.java - Copyright © 2010â2016 David Roden
+ * Sone - RequestChangeFilter.java - Copyright © 2010â2020 David Roden
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -34,8 +34,6 @@ import net.pterodactylus.util.template.TemplateContext;
* This filter expects a {@link FreenetRequest} as input and outputs a
* {@link URI} that is modified by the parameters. The name of the parameter is
* handed in as ânameâ, the new value is stored in âvalueâ.
- *
- * @author David âBombeâ Roden
*/
public class RequestChangeFilter implements Filter {
@@ -48,7 +46,7 @@ public class RequestChangeFilter implements Filter {
String name = String.valueOf(parameters.get("name"));
String value = String.valueOf(parameters.get("value"));
- Map values = new HashMap();
+ Map values = new HashMap<>();
Collection parameterNames = request.getHttpRequest().getParameterNames();
for (String parameterName : parameterNames) {
values.put(parameterName, request.getHttpRequest().getParam(parameterName));