Skip to content
Snippets Groups Projects

Fix modifier order, update stream toList calls, fix some magic numbers

Merged Martin Lowe requested to merge malowe/main/reduce-codesmell into main
7 files
+ 62
72
Compare changes
  • Side-by-side
  • Inline
Files
7
@@ -26,6 +26,9 @@ public final class CveIdMatcherHelper {
private static final Pattern CVE_ID_PARTS = Pattern.compile("^CVE-(\\d{4})-(\\d+?)\\d{3}$");
public static final int YEAR_MATCHING_GROUP = 1;
public static final int THOUSANDS_MATCHING_GROUP = 1;
/**
* Returns an Optional containing a Matcher if the provided cveId matches the
* required pattern. Returns an empty Optional if the pattern doesn't match.
Loading