diff options
author | Sven Gothel <[email protected]> | 2015-10-03 04:10:06 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2015-10-03 04:10:06 +0200 |
commit | d78bb1be0a6290cb94918b21865a023c01825048 (patch) | |
tree | 9a73b17c835cbbe87055ca8664dd8065a4a9e445 /src/junit/com/jogamp/common/net | |
parent | a1009b450e68c083c0d3c56129602697a4f674d9 (diff) |
Bug 1237 - Clarify IOUtil.getResource(..) for better efficiency, i.e. allow caller to skip relative futile lookup
IOUtil.getResource(..) and IOUtil.ClassResources, needs more clarity.
ClassLoader shall be passed explicitly next to the optional
relative context Class instance.
This allows better efficiency, i.e. caller can pass ClassLoader
but skip a possible relative lookup, if not existing.
Diffstat (limited to 'src/junit/com/jogamp/common/net')
-rw-r--r-- | src/junit/com/jogamp/common/net/AssetURLConnectionUnregisteredTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/junit/com/jogamp/common/net/AssetURLConnectionUnregisteredTest.java b/src/junit/com/jogamp/common/net/AssetURLConnectionUnregisteredTest.java index 5167abb..1bb88c5 100644 --- a/src/junit/com/jogamp/common/net/AssetURLConnectionUnregisteredTest.java +++ b/src/junit/com/jogamp/common/net/AssetURLConnectionUnregisteredTest.java @@ -38,7 +38,7 @@ public class AssetURLConnectionUnregisteredTest extends AssetURLConnectionBase { @Test public void assetUnregisteredIOUtilGetResourceRel0_RT() throws IOException, URISyntaxException { - final URLConnection urlConn0 = IOUtil.getResource(this.getClass(), test_asset_test2_rel.get()); + final URLConnection urlConn0 = IOUtil.getResource(test_asset_test2_rel.get(), this.getClass().getClassLoader(), this.getClass()); testAssetConnection(urlConn0, test_asset_test2_entry); final Uri uri1 = Uri.valueOf(urlConn0.getURL()).getRelativeOf(test_asset_test3_rel); |