changeset 23216:16b472b9ca55

Enable substring matching in Metrics
author Stefan Anzinger <stefan.anzinger@oracle.com>
date Wed, 23 Dec 2015 14:36:50 +0100
parents 131ca5e519b0
children a1bfeec72458
files graal/com.oracle.graal.debug/src/com/oracle/graal/debug/Debug.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.debug/src/com/oracle/graal/debug/Debug.java	Wed Dec 23 13:06:05 2015 +0100
+++ b/graal/com.oracle.graal.debug/src/com/oracle/graal/debug/Debug.java	Wed Dec 23 14:36:50 2015 +0100
@@ -1404,7 +1404,7 @@
     }
 
     private static boolean findMatch(Set<String> haystack, Set<String> haystackSubstrings, String needle) {
-        if (haystack.isEmpty()) {
+        if (haystack.isEmpty() && haystackSubstrings.isEmpty()) {
             // Empty haystack means match all
             return true;
         }