From 8e635001de1008d7248a6bca13acbac27b369138 Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Fri, 19 Jun 2015 15:36:57 +1000 Subject: [PATCH] Use precompiled patterns --- jetty-start/src/main/java/org/eclipse/jetty/start/Props.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jetty-start/src/main/java/org/eclipse/jetty/start/Props.java b/jetty-start/src/main/java/org/eclipse/jetty/start/Props.java index 65191c81f57..ac5d908b529 100644 --- a/jetty-start/src/main/java/org/eclipse/jetty/start/Props.java +++ b/jetty-start/src/main/java/org/eclipse/jetty/start/Props.java @@ -44,7 +44,6 @@ public final class Props implements Iterable { private static final Pattern __propertyPattern = Pattern.compile("(?<=[^$]|^)\\$\\{([^:}]*)(:=([^}]*))?\\}"); - public static class Prop { public String key; @@ -324,7 +323,7 @@ public final class Props implements Iterable public static boolean hasPropertyKey(String name) { - return Pattern.compile("(?<=[^$]|^)(\\$\\{[^}]*\\})").matcher(name).find(); + return __propertyPattern.matcher(name).find(); } @Override