Skip to content

Commit 5dbe49d

Browse files
xiepuhuanxiepuhuan
authored and
xiepuhuan
committed
Add comments for copied methods.
1 parent 7c6a575 commit 5dbe49d

File tree

1 file changed

+2
-1
lines changed
  • instrumentation-api-incubator/src/main/java/io/opentelemetry/instrumentation/api/incubator/semconv/util/internal

1 file changed

+2
-1
lines changed

instrumentation-api-incubator/src/main/java/io/opentelemetry/instrumentation/api/incubator/semconv/util/internal/GlobUtil.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
* <p>This class is internal and is hence not for public use. Its APIs are unstable and can change
1515
* at any time.
1616
*/
17-
// copied from io.opentelemetry.sdk.internal.GlobUtil except for isGlobString.
1817
public final class GlobUtil {
1918

2019
private GlobUtil() {}
@@ -30,6 +29,7 @@ private GlobUtil() {}
3029
* <li>{@code ?} matches exactly one instance of any character
3130
* </ul>
3231
*/
32+
// copied from io.opentelemetry.sdk.internal.GlobUtil
3333
public static Predicate<String> toGlobPatternPredicate(String globPattern) {
3434
// Match all
3535
if (globPattern.equals("*")) {
@@ -53,6 +53,7 @@ public static Predicate<String> toGlobPatternPredicate(String globPattern) {
5353
* Transform the {@code globPattern} to a regex by converting {@code *} to {@code .*}, {@code ?}
5454
* to {@code .}, and escaping other regex special characters.
5555
*/
56+
// copied from io.opentelemetry.sdk.internal.GlobUtil
5657
private static Pattern toRegexPattern(String globPattern) {
5758
int tokenStart = -1;
5859
StringBuilder patternBuilder = new StringBuilder();

0 commit comments

Comments
 (0)