sonatype-lift[bot] commented on code in PR #868: URL: https://github.com/apache/lucene/pull/868#discussion_r865657342
########## lucene/analysis/nori/src/java/org/apache/lucene/analysis/ko/dict/UnknownDictionary.java: ########## @@ -62,6 +65,20 @@ public UnknownDictionary(Path targetMapFile, Path posDictFile, Path dictFile) th () -> Files.newInputStream(dictFile)); } + /** + * Create a {@link UnknownDictionary} from an external resource URL (e.g. from Classpath with + * {@link ClassLoader#getResource(String)}). + * + * @param targetMapUrl where to load target map resource + * @param posDictUrl where to load POS dictionary resource + * @param dictUrl where to load dictionary entries resource + * @throws IOException if resource was not found or broken + */ + public UnknownDictionary(URL targetMapUrl, URL posDictUrl, URL dictUrl) throws IOException { + super( + () -> targetMapUrl.openStream(), () -> posDictUrl.openStream(), () -> dictUrl.openStream()); Review Comment: I've recorded this as ignored for this pull request. If you change your mind, just comment `@sonatype-lift unignore`. ########## lucene/analysis/nori/src/java/org/apache/lucene/analysis/ko/dict/TokenInfoDictionary.java: ########## @@ -89,6 +92,25 @@ public TokenInfoDictionary(Path targetMapFile, Path posDictFile, Path dictFile, () -> Files.newInputStream(fstFile)); } + /** + * Create a {@link TokenInfoDictionary} from an external resource URL (e.g. from Classpath with + * {@link ClassLoader#getResource(String)}). + * + * @param targetMapUrl where to load target map resource + * @param posDictUrl where to load POS dictionary resource + * @param dictUrl where to load dictionary entries resource + * @param fstUrl where to load encoded FST data resource + * @throws IOException if resource was not found or broken + */ + public TokenInfoDictionary(URL targetMapUrl, URL posDictUrl, URL dictUrl, URL fstUrl) + throws IOException { + this( + () -> targetMapUrl.openStream(), Review Comment: I've recorded this as ignored for this pull request. If you change your mind, just comment `@sonatype-lift unignore`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org