Skip to content

Commit 039cbea

Browse files
committed
🎨 Improve name of constant
1 parent b016ecd commit 039cbea

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/org/spdx/storage/listedlicense/SpdxListedLicenseWebStore.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public class SpdxListedLicenseWebStore extends SpdxListedLicenseModelStore {
6464

6565
private static final int READ_TIMEOUT = 5000;
6666
private static final int IO_BUFFER_SIZE = 8192;
67-
private static final long CACHE_CHECK_INTERVAL_SECS = 86400; // 24 hours, in seconds
67+
private static final long DEFAULT_CACHE_CHECK_INTERVAL_SECS = 86400; // 24 hours, in seconds
6868

6969
static final List<String> WHITE_LIST = Collections.unmodifiableList(Arrays.asList(
7070
"spdx.org", "spdx.dev", "spdx.com", "spdx.info")); // Allowed host names for the SPDX listed licenses
@@ -95,7 +95,7 @@ public SpdxListedLicenseWebStore() throws InvalidSPDXAnalysisException {
9595
throw new InvalidSPDXAnalysisException("Unable to create cache directory: " + cacheDir, ioe);
9696
}
9797
}
98-
long tmpCacheCheckIntervalSecs = CACHE_CHECK_INTERVAL_SECS;
98+
long tmpCacheCheckIntervalSecs = DEFAULT_CACHE_CHECK_INTERVAL_SECS;
9999
try {
100100
tmpCacheCheckIntervalSecs = Long.parseLong(
101101
System.getProperty("org.spdx.storage.listedlicense.SpdxListedLicenseWebStore.cacheCheckIntervalSecs"));

0 commit comments

Comments
 (0)