File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
opamp-client/src/main/java/io/opentelemetry/opamp/client/internal/connectivity/http Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1515
1616public final class RetryAfterParser {
1717 private final SystemTime systemTime ;
18- public static final Pattern SECONDS_PATTERN = Pattern .compile ("^ \\ d+$ " );
19- public static final Pattern DATE_PATTERN =
18+ private static final Pattern SECONDS_PATTERN = Pattern .compile ("\\ d+" );
19+ private static final Pattern DATE_PATTERN =
2020 Pattern .compile (
21- "^( [A-Za-z]{3}, [0-3][0-9] [A-Za-z]{3} [0-9]{4} [0-2][0-9]:[0-5][0-9]:[0-5][0-9] GMT)$ " );
21+ "[A-Za-z]{3}, [0-3][0-9] [A-Za-z]{3} [0-9]{4} [0-2][0-9]:[0-5][0-9]:[0-5][0-9] GMT" );
2222 private static final DateTimeFormatter DATE_FORMAT =
2323 DateTimeFormatter .ofPattern ("EEE, dd MMM yyyy HH:mm:ss z" , Locale .US );
2424
You can’t perform that action at this time.
0 commit comments