uschindler edited a comment on pull request #567:
URL: https://github.com/apache/lucene/pull/567#issuecomment-1003365974
> In general a simple hotfix rule for
`Class#getClassLoader().getResource(xxx)` is: Replace by
`Class#getResource("/".concat(xxx))`
An alternative is `Class#getModule().getResourceAsStream(xxx)`, which has
similar behaviour like old code (but is limited to one module).
But not for the Kuromoji/Nori code, as this would limit to only current
module so breaking backwards.
--
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]