Skip to content

Commit

Permalink
Expose SecretPatterns as an API
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick committed Jun 23, 2021
1 parent 9cc0b87 commit 958f395
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
import org.kohsuke.accmod.Restricted;
import org.kohsuke.accmod.restrictions.NoExternalUse;

@Restricted(NoExternalUse.class)
public class SecretPatterns {

private static final Comparator<String> BY_LENGTH_DESCENDING =
Expand Down Expand Up @@ -101,4 +98,6 @@ public MaskingOutputStream(@NonNull OutputStream out, @CheckForNull Pattern secr

}

private SecretPatterns() {}

}

0 comments on commit 958f395

Please sign in to comment.