You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2015/09/11 22:43:32 UTC
[2/2] wicket git commit: Minor Java 7 improvements:
Minor Java 7 improvements:
- diamonds
- multi-catch
Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/82f75959
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/82f75959
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/82f75959
Branch: refs/heads/master
Commit: 82f75959e61def603255eb3204e1706eb97bde0e
Parents: ad286c3
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Fri Sep 11 22:42:55 2015 +0200
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Fri Sep 11 22:42:55 2015 +0200
----------------------------------------------------------------------
.../apache/wicket/protocol/http/WicketFilterTest.java | 12 ++----------
1 file changed, 2 insertions(+), 10 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/wicket/blob/82f75959/wicket-core/src/test/java/org/apache/wicket/protocol/http/WicketFilterTest.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/protocol/http/WicketFilterTest.java b/wicket-core/src/test/java/org/apache/wicket/protocol/http/WicketFilterTest.java
index a14f1de..7fc36a7 100644
--- a/wicket-core/src/test/java/org/apache/wicket/protocol/http/WicketFilterTest.java
+++ b/wicket-core/src/test/java/org/apache/wicket/protocol/http/WicketFilterTest.java
@@ -294,15 +294,7 @@ public class WicketFilterTest extends Assert
{
return new WebXmlFile().getUniqueFilterPath(false, filterName, in);
}
- catch (ParserConfigurationException ex)
- {
- throw new RuntimeException(ex);
- }
- catch (SAXException ex)
- {
- throw new RuntimeException(ex);
- }
- catch (IOException ex)
+ catch (ParserConfigurationException | IOException | SAXException ex)
{
throw new RuntimeException(ex);
}
@@ -310,7 +302,7 @@ public class WicketFilterTest extends Assert
private static class FilterTestingConfig implements FilterConfig
{
- private final Map<String, String> initParameters = new HashMap<String, String>();
+ private final Map<String, String> initParameters = new HashMap<>();
public FilterTestingConfig()
{