Skip to content

Commit 4bcef0c

Browse files
committed
Make selector match package-private
1 parent 1a8cee4 commit 4bcef0c

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

internal-api/src/main/java/datadog/trace/bootstrap/config/provider/StableConfigParser.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,9 @@ private static boolean checkEnvMatches(
125125
return false;
126126
}
127127

128-
// TODO: Make this private again after testing?
129-
// We do all of the case insensitivity modifications in this function, because each selector will
128+
// We do all the case insensitivity modifications in this function, because each selector will
130129
// be viewed just once
131-
public static boolean selectorMatch(
132-
String origin, List<String> matches, String operator, String key) {
130+
static boolean selectorMatch(String origin, List<String> matches, String operator, String key) {
133131
switch (origin.toLowerCase()) {
134132
case "language":
135133
if (!validOperatorForLanguageOrigin(operator)) {

internal-api/src/test/groovy/datadog/trace/bootstrap/config/provider/StableConfigParserTest.groovy

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ apm_configuration_rules:
6464
Files.delete(filePath)
6565
}
6666

67-
// TODO: This test will fail if we make selectorMatch private again
6867
def "test selectorMatch"() {
6968
when:
7069
// Env vars

0 commit comments

Comments
 (0)