Skip to content

Commit 0832e32

Browse files
pmonksgoneall
authored andcommitted
📚 Correct JavaDoc comment
1 parent 6099535 commit 0832e32

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/main/java/org/spdx/utility/DownloadCache.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,8 @@ public void resetCache() throws IOException {
169169
/**
170170
* @param url The URL to get an input stream for. Notes: redirects issued by this url are restricted to known
171171
* SPDX hosts; redirects to other hosts will cause an IOException to be thrown.
172-
* @return An InputStream for url, or null if url is null or the method is interrupted during execution. Note that
173-
* this InputStream may be of different concrete types, depending on whether the content is being served out
174-
* of cache or not.
172+
* @return An InputStream for url, or null if url is null. Note that this InputStream may be of different concrete
173+
* types, depending on whether the content is being served out of cache or not.
175174
* @throws IOException When an IO error of some kind occurs.
176175
*/
177176
public InputStream getUrlInputStream(final URL url) throws IOException {
@@ -207,9 +206,8 @@ private static String normalizeURL(final URL url) {
207206
* @param url The URL to get an input stream for.
208207
* @param restrictRedirects A flag that controls whether redirects returned by url are restricted to known SPDX
209208
* hosts or not. Defaults to true. USE EXTREME CAUTION WHEN TURNING THIS OFF!
210-
* @return An InputStream for url, or null if url is null or the method is interrupted during execution. Note that
211-
* this InputStream may be of different concrete types, depending on whether the content is being served out
212-
* of cache or not.
209+
* @return An InputStream for url, or null if url is null. Note that this InputStream may be of different concrete
210+
* types, depending on whether the content is being served out of cache or not.
213211
* @throws IOException When an IO error of some kind occurs.
214212
*/
215213
public InputStream getUrlInputStream(final URL url, final boolean restrictRedirects) throws IOException {
@@ -268,7 +266,7 @@ private InputStream getUrlInputStreamDirect(URL url, boolean restrictRedirects)
268266
* @param restrictRedirects A flag that controls whether redirects returned by url are restricted to known SPDX
269267
* hosts or not. Defaults to true. USE EXTREME CAUTION WHEN TURNING THIS OFF!
270268
* @return An InputStream for url, or null if url is null. Note that this InputStream may be of different concrete
271-
* types, depending on whether the content is being served out of cache or not.
269+
* types, depending on whether the content is being served out of cache or not.
272270
* @throws IOException When an IO error of some kind occurs.
273271
*/
274272
private InputStream getUrlInputStreamThroughCache(final URL url, boolean restrictRedirects) throws IOException {

0 commit comments

Comments
 (0)