Remove unnecessary escapes from RegExp

This commit is contained in:
Jano Svitok 2018-08-06 13:30:21 +02:00
parent 3fd68d337f
commit e4f4137108

View File

@ -16,7 +16,7 @@ import java.util.regex.Pattern;
* A class which works with properties, uses getprop and setprop methods of android shell
*/
public class PropertyManager {
private final Pattern pattern = Pattern.compile("^\\[([a-zA-Z0-9_.-]*)\\]:.\\[([^\\[\\]]*)\\]");
private final Pattern pattern = Pattern.compile("^\\[([a-zA-Z0-9_.-]*)]:.\\[([^\\[\\]]*)]");
private final JadbDevice device;
public PropertyManager(JadbDevice device) {