Skip to content

Commit 39678ef

Browse files
committed
Revert "Merge pull request #1885 from ISHIDAUNAI/master"
4a31f2e
1 parent 4a31f2e commit 39678ef

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/main/java/org/apache/ibatis/io/DefaultVFS.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,18 @@ protected URL findJarForResource(URL url) throws MalformedURLException {
295295
return null;
296296
}
297297

298+
/**
299+
* Converts a Java package name to a path that can be looked up with a call to
300+
* {@link ClassLoader#getResources(String)}.
301+
*
302+
* @param packageName
303+
* The Java package name to convert to a path
304+
* @return the package path
305+
*/
306+
protected String getPackagePath(String packageName) {
307+
return packageName == null ? null : packageName.replace('.', '/');
308+
}
309+
298310
/**
299311
* Returns true if the resource located at the given URL is a JAR file.
300312
*

0 commit comments

Comments
 (0)