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=211c4b4dc2d20092a97282d6f30b19c926a5d96e;hpb=1e9a08c2b73b16dc178437eb8c8025aaa083fcca;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 211c4b4..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â2015 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));