File tree Expand file tree Collapse file tree
src/main/java/org/spdx/utility/compare Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ public void text(String text) {
8585 currentString .append (text );
8686 } else if (OptionalTextHandling .REGEX_USING_TOKENS .equals (optionalTextHandling )) {
8787 optionalTokens .get (optionalDepth ).addAll (Arrays .asList (
88- LicenseCompareHelper .tokenizeLicenseText (text , new HashMap <Integer , LineColumn >())));
88+ LicenseCompareHelper .tokenizeLicenseText (text , new HashMap <>())));
8989 }
9090 }
9191
@@ -140,12 +140,11 @@ public void beginOptional(LicenseTemplateRule rule) {
140140 }
141141
142142 /**
143- * @param tokens list of tokens
144143 * @return regular expression with quoted tokens
145144 */
146145 private String toTokenRegex (List <String > tokens ) {
147146 StringBuilder sb = new StringBuilder ();
148- for (String token :optionalTokens . get ( optionalDepth ) ) {
147+ for (String token :tokens ) {
149148 token = token .trim ();
150149 if (LicenseCompareHelper .NORMALIZE_TOKENS .containsKey (token .toLowerCase ())) {
151150 token = LicenseCompareHelper .NORMALIZE_TOKENS .get (token .toLowerCase ());
You can’t perform that action at this time.
0 commit comments