uschindler commented on code in PR #868:
URL: https://github.com/apache/lucene/pull/868#discussion_r866333077
##########
lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/dict/BinaryDictionary.java:
##########
@@ -140,19 +140,15 @@ public static final InputStream
getResource(ResourceScheme scheme, String path)
throws IOException {
switch (scheme) {
case CLASSPATH:
- return getClassResource(path);
+ return IOUtils.requireResourceNonNull(
+ BinaryDictionary.class.getClassLoader().getResourceAsStream(path),
path);
Review Comment:
We use getClassLoader() here because the old 9.0 code did this, too. This is
required for backwards compatibility, because the `path` format is different
(relative vs. absolute).
The same was done for NORI.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]