Skip to content

Commit 2da26ac

Browse files
committed
Update javadocs for isSingleTokenText
1 parent e14473c commit 2da26ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/spdx/utility/compare/LicenseCompareHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,14 +227,14 @@ public static String locateOriginalText(String fullLicenseText, int startToken,
227227
/**
228228
* Check whether the given text contains only a single token
229229
* <p>
230-
* A single token string is a string that contains zero or one token,
230+
* A single token string is a string that contains exactly one token,
231231
* as identified by the {@link LicenseTextHelper#TOKEN_SPLIT_PATTERN}.
232232
* Whitespace and punctuation such as dots, commas, question marks,
233233
* and quotation marks are ignored.
234234
* </p>
235235
*
236236
* @param text The text to test.
237-
* @return {@code true} if the text contains zero or one token,
237+
* @return {@code true} if the text contains exactly one token,
238238
* {@code false} otherwise.
239239
*/
240240
public static boolean isSingleTokenString(@Nullable String text) {

0 commit comments

Comments
 (0)