Revision: 3996 http://openutils.svn.sourceforge.net/openutils/?rev=3996&view=rev Author: fgiust Date: 2012-05-06 16:20:26 +0000 (Sun, 06 May 2012) Log Message: ----------- compilation fix Modified Paths: -------------- magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/media/uri/MediaURI2RepositoryMapping.java Modified: magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/media/uri/MediaURI2RepositoryMapping.java =================================================================== --- magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/media/uri/MediaURI2RepositoryMapping.java 2012-05-06 16:17:47 UTC (rev 3995) +++ magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/media/uri/MediaURI2RepositoryMapping.java 2012-05-06 16:20:26 UTC (rev 3996) @@ -77,29 +77,12 @@ } } - return cleanHandle(uri); - } - - /** - * Clean a handle. Remove double / and add always a leading / - * @param handle - * @return - */ - private String cleanHandle(String handle) - { - if (handle == null) + if (uri == null) { return null; } - if (!handle.startsWith("/")) - { - handle = "/" + handle; - } - while (handle.indexOf("//") != -1) - { - handle = StringUtils.replace(handle, "//", "/"); - } - return handle; + + return cleanHandle(uri); } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |