From 3926b9f88a1ea516bf4095c5349b92e781f978c6 Mon Sep 17 00:00:00 2001 From: Jeff Gaston Date: Tue, 7 Mar 2023 12:24:23 -0500 Subject: [PATCH] verifyDownloadLocation error message clarification This should make it faster for readers to distinguish which string is the configured download location and which string is the required pattern, particularly if these strings are long. Signed-off-by: Jeff Gaston --- src/main/java/org/spdx/library/SpdxVerificationHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/spdx/library/SpdxVerificationHelper.java b/src/main/java/org/spdx/library/SpdxVerificationHelper.java index 3676f683..344d7afe 100644 --- a/src/main/java/org/spdx/library/SpdxVerificationHelper.java +++ b/src/main/java/org/spdx/library/SpdxVerificationHelper.java @@ -289,7 +289,7 @@ public static String verifyDownloadLocation(String downloadLocation) { } else if (SpdxConstants.DOWNLOAD_LOCATION_PATTERN.matcher(downloadLocation).matches()) { return null; } else { - return "Invalid download location pattern "+downloadLocation+". Must match the pattern "+ + return "Invalid download location "+downloadLocation+". Must match the pattern "+ SpdxConstants.DOWNLOAD_LOCATION_PATTERN.pattern(); } }