Skip to content
Permalink
Browse files
Use private instead of protected for new methods
They should not be used outside of this class.
  • Loading branch information
FSchumacher committed Mar 5, 2022
1 parent 41b16e5 commit 74c69e2d77085290e618be6632d980d52574b423
Showing 2 changed files with 4 additions and 4 deletions.
@@ -378,7 +378,7 @@ protected boolean excPattern(String text) {
return excPatternWithOroRegex(text);
}

protected boolean excPatternWithJavaRegex(String text) {
private boolean excPatternWithJavaRegex(String text) {
this.USEFILE = true;
for (String excludePattern : this.excludePatternStrings) {
if (JMeterUtils.compilePattern(excludePattern).matcher(text).find()) {
@@ -389,7 +389,7 @@ protected boolean excPatternWithJavaRegex(String text) {
return false;
}

protected boolean excPatternWithOroRegex(String text) {
private boolean excPatternWithOroRegex(String text) {
this.USEFILE = true;
boolean exc = false;
for (Pattern excludePattern : this.EXCPATTERNS) {
@@ -96,7 +96,7 @@ protected String getIpAddress(String logLine) {
return getIpAddressWithOroRegex(logLine);
}

protected String getIpAddressWithJavaRegex(String logLine) {
private String getIpAddressWithJavaRegex(String logLine) {
java.util.regex.Pattern incIp = JMeterUtils.compilePattern("\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}");
Matcher matcher = incIp.matcher(logLine);
if (matcher.find()) {
@@ -105,7 +105,7 @@ protected String getIpAddressWithJavaRegex(String logLine) {
return "";
}

protected String getIpAddressWithOroRegex(String logLine) {
private String getIpAddressWithOroRegex(String logLine) {
Pattern incIp = JMeterUtils.getPatternCache().getPattern("\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}",
Perl5Compiler.READ_ONLY_MASK | Perl5Compiler.SINGLELINE_MASK);
Perl5Matcher matcher = JMeterUtils.getMatcher();

0 comments on commit 74c69e2

Please sign in to comment.