mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
fix watch/trace exclude class pattern #1638
This commit is contained in:
@@ -117,7 +117,7 @@ public class MonitorCommand extends EnhancerCommand {
|
||||
|
||||
@Override
|
||||
protected Matcher getClassNameExcludeMatcher() {
|
||||
if (classNameExcludeMatcher == null) {
|
||||
if (classNameExcludeMatcher == null && getExcludeClassPattern() != null) {
|
||||
classNameExcludeMatcher = SearchUtils.classNameMatcher(getExcludeClassPattern(), isRegEx());
|
||||
}
|
||||
return classNameExcludeMatcher;
|
||||
|
||||
@@ -95,7 +95,7 @@ public class StackCommand extends EnhancerCommand {
|
||||
|
||||
@Override
|
||||
protected Matcher getClassNameExcludeMatcher() {
|
||||
if (classNameExcludeMatcher == null) {
|
||||
if (classNameExcludeMatcher == null && getExcludeClassPattern() != null) {
|
||||
classNameExcludeMatcher = SearchUtils.classNameMatcher(getExcludeClassPattern(), isRegEx());
|
||||
}
|
||||
return classNameExcludeMatcher;
|
||||
|
||||
@@ -307,7 +307,7 @@ public class TimeTunnelCommand extends EnhancerCommand {
|
||||
|
||||
@Override
|
||||
protected Matcher getClassNameExcludeMatcher() {
|
||||
if (classNameExcludeMatcher == null) {
|
||||
if (classNameExcludeMatcher == null && getExcludeClassPattern() != null) {
|
||||
classNameExcludeMatcher = SearchUtils.classNameMatcher(getExcludeClassPattern(), isRegEx());
|
||||
}
|
||||
return classNameExcludeMatcher;
|
||||
|
||||
@@ -136,7 +136,7 @@ public class TraceCommand extends EnhancerCommand {
|
||||
|
||||
@Override
|
||||
protected Matcher getClassNameExcludeMatcher() {
|
||||
if (classNameExcludeMatcher == null) {
|
||||
if (classNameExcludeMatcher == null && getExcludeClassPattern() != null) {
|
||||
classNameExcludeMatcher = SearchUtils.classNameMatcher(getExcludeClassPattern(), isRegEx());
|
||||
}
|
||||
return classNameExcludeMatcher;
|
||||
|
||||
@@ -176,7 +176,7 @@ public class WatchCommand extends EnhancerCommand {
|
||||
|
||||
@Override
|
||||
protected Matcher getClassNameExcludeMatcher() {
|
||||
if (classNameExcludeMatcher == null) {
|
||||
if (classNameExcludeMatcher == null && getExcludeClassPattern() != null) {
|
||||
classNameExcludeMatcher = SearchUtils.classNameMatcher(getExcludeClassPattern(), isRegEx());
|
||||
}
|
||||
return classNameExcludeMatcher;
|
||||
|
||||
Reference in New Issue
Block a user