Skip to content

Commit 01edad7

Browse files
committed
[CODEC-324] BeiderMorse engine doesn't work with JPMS enabled
Javadoc
1 parent 8e744dd commit 01edad7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/org/apache/commons/codec/Resources.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,15 @@
2727
public class Resources {
2828

2929
/**
30-
* Opens the given named resource from the given class.
30+
* Gets a read-only stream on the contents of the resource specified by resName. The mapping between the resource name and the stream is managed by this
31+
* class's class loader.
3132
*
3233
* @param name The resource name.
3334
* @return An input stream.
35+
* @see ClassLoader#getResourceAsStream(String)
3436
*/
3537
public static InputStream getInputStream(final String name) {
38+
// Use java.lang.Class.getResourceAsStream(String) to make JPMS happy
3639
final InputStream inputStream = Resources.class.getResourceAsStream(name);
3740
if (inputStream == null) {
3841
throw new IllegalArgumentException("Unable to resolve required resource: " + name);

0 commit comments

Comments
 (0)