commit | 9414be13e9b1cc59c14ed6d1bdbad82982bf9b22 | [log] [tgz] |
---|---|---|
author | <rchaves> | Wed May 11 21:27:42 2005 +0000 |
committer | <rchaves> | Wed May 11 21:27:42 2005 +0000 |
tree | b100f215b6d4831e81ae86c964f73b4759588c96 | |
parent | 1d64b91f5b4c7739208dc07666c3083bed2c0b98 [diff] |
Bug 94853 - AbstractBundleData#findNativePath should return first hit
diff --git a/bundles/org.eclipse.osgi/defaultAdaptor/src/org/eclipse/osgi/framework/adaptor/core/AbstractBundleData.java b/bundles/org.eclipse.osgi/defaultAdaptor/src/org/eclipse/osgi/framework/adaptor/core/AbstractBundleData.java index 2803ceb..6061a53 100644 --- a/bundles/org.eclipse.osgi/defaultAdaptor/src/org/eclipse/osgi/framework/adaptor/core/AbstractBundleData.java +++ b/bundles/org.eclipse.osgi/defaultAdaptor/src/org/eclipse/osgi/framework/adaptor/core/AbstractBundleData.java
@@ -580,7 +580,6 @@ } protected String findNativePath(String libname) { - String path = null; if (!libname.startsWith("/")) { //$NON-NLS-1$ libname = '/' + libname; } @@ -590,11 +589,11 @@ if (nativepaths[i].endsWith(libname)) { File nativeFile = baseBundleFile.getFile(nativepaths[i]); if (nativeFile != null) - path = nativeFile.getAbsolutePath(); + return nativeFile.getAbsolutePath(); } } } - return path; + return null; } /**