Skip to content

Commit af68175

Browse files
author
Samin Rahman
committed
Removed redundant commits
1 parent 8642ad5 commit af68175

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/main/java/com/uid2/shared/util/HTTPPathMetricFilter.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public class HTTPPathMetricFilter {
77
public static String filterPath(String actualPath, Set<String> pathSet) {
88
try {
99
String normalized = HttpUtils.normalizePath(actualPath);
10-
/* Optimization 1: Split that avoids array and regex initialization */
10+
1111
int splitIndex = normalized.indexOf('?');
1212
if (splitIndex != -1) {
1313
normalized = normalized.substring(0, splitIndex);
@@ -35,7 +35,7 @@ public static String filterPath(String actualPath, Set<String> pathSet) {
3535
public static String filterPathWithoutPathParameters(String actualPath, Set<String> pathSet) {
3636
try {
3737
String normalized = HttpUtils.normalizePath(actualPath);
38-
/* Optimization 1: Split that avoids array and regex initialization */
38+
3939
int splitIndex = normalized.indexOf('?');
4040
if (splitIndex != -1) {
4141
normalized = normalized.substring(0, splitIndex);
@@ -48,7 +48,6 @@ public static String filterPathWithoutPathParameters(String actualPath, Set<Stri
4848

4949
if (pathSet == null || pathSet.isEmpty()) { return normalized; }
5050

51-
/* Optimization 2: Remove for loop and regex matching */
5251
if (pathSet.contains(normalized)) { return normalized; }
5352

5453
return "/unknown";

0 commit comments

Comments
 (0)