summaryrefslogtreecommitdiffstats
path: root/core/java/android
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2015-03-07 17:13:16 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-03-07 17:13:16 +0000
commit5596600697f54feb944737b7bc55df06123e6e54 (patch)
treee80686000c026ef6de71b8ab71bd961a8bef05b9 /core/java/android
parenta3d5b2304cf2db03ba728d37c87ef7360c7da44f (diff)
parent7a4cb563a29f05658760739d3bc2e70bd6342174 (diff)
downloadframeworks_base-5596600697f54feb944737b7bc55df06123e6e54.zip
frameworks_base-5596600697f54feb944737b7bc55df06123e6e54.tar.gz
frameworks_base-5596600697f54feb944737b7bc55df06123e6e54.tar.bz2
am 7a4cb563: Merge "Frameworks/base: Remove unnecessary Pattern instance"
* commit '7a4cb563a29f05658760739d3bc2e70bd6342174': Frameworks/base: Remove unnecessary Pattern instance
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/content/UriMatcher.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/core/java/android/content/UriMatcher.java b/core/java/android/content/UriMatcher.java
index 8487dae..71a035e 100644
--- a/core/java/android/content/UriMatcher.java
+++ b/core/java/android/content/UriMatcher.java
@@ -20,7 +20,6 @@ import android.net.Uri;
import java.util.ArrayList;
import java.util.List;
-import java.util.regex.Pattern;
/**
Utility class to aid in matching URIs in content providers.
@@ -171,7 +170,7 @@ public class UriMatcher
if (path.length() > 0 && path.charAt(0) == '/') {
newPath = path.substring(1);
}
- tokens = PATH_SPLIT_PATTERN.split(newPath);
+ tokens = newPath.split("/");
}
int numTokens = tokens != null ? tokens.length : 0;
@@ -207,8 +206,6 @@ public class UriMatcher
node.mCode = code;
}
- static final Pattern PATH_SPLIT_PATTERN = Pattern.compile("/");
-
/**
* Try to match against the path in a url.
*