static / static final fields Project: http://git-wip-us.apache.org/repos/asf/wicket/repo Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/eca07da8 Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/eca07da8 Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/eca07da8
Branch: refs/heads/master Commit: eca07da8b82ac2abe735939f34ba9f49efff346c Parents: 2ac0c64 Author: klopfdreh <klopfdreh@tobiass-mbp> Authored: Wed Feb 4 17:42:59 2015 +0100 Committer: klopfdreh <klopfdreh@tobiass-mbp> Committed: Wed Feb 4 17:42:59 2015 +0100 ---------------------------------------------------------------------- .../main/java/org/apache/wicket/resource/CssUrlReplacer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/wicket/blob/eca07da8/wicket-core/src/main/java/org/apache/wicket/resource/CssUrlReplacer.java ---------------------------------------------------------------------- diff --git a/wicket-core/src/main/java/org/apache/wicket/resource/CssUrlReplacer.java b/wicket-core/src/main/java/org/apache/wicket/resource/CssUrlReplacer.java index c39dcea..01b92fa 100644 --- a/wicket-core/src/main/java/org/apache/wicket/resource/CssUrlReplacer.java +++ b/wicket-core/src/main/java/org/apache/wicket/resource/CssUrlReplacer.java @@ -52,10 +52,10 @@ public class CssUrlReplacer implements ICssCompressor { // Holds the names of pages - private Map<String, String> pageNames = Collections.synchronizedMap(new LinkedHashMap<String, String>()); + private final Map<String, String> pageNames = Collections.synchronizedMap(new LinkedHashMap<String, String>()); // The pattern to find URLs in CSS resources - private Pattern urlPattern = Pattern.compile("url\\(['|\"](.*)['|\"]\\)"); + private static final Pattern urlPattern = Pattern.compile("url\\(['|\"](.*)['|\"]\\)"); public CssUrlReplacer(Application application) { @@ -84,7 +84,7 @@ public class CssUrlReplacer implements ICssCompressor @Override public String compress(String original) { - Matcher matcher = this.urlPattern.matcher(original); + Matcher matcher = CssUrlReplacer.urlPattern.matcher(original); // Search for urls while (matcher.find()) {