r532 - trunk/nuiton-js-wro/src/main/java/org/nuiton/js/wro
Author: echatellier Date: 2014-07-24 12:28:07 +0200 (Thu, 24 Jul 2014) New Revision: 532 Url: http://forge.nuiton.org/projects/nuiton-js/repository/revisions/532 Log: Remove non necessary exception Modified: trunk/nuiton-js-wro/src/main/java/org/nuiton/js/wro/ImportWildcardXmlModelFactory.java Modified: trunk/nuiton-js-wro/src/main/java/org/nuiton/js/wro/ImportWildcardXmlModelFactory.java =================================================================== --- trunk/nuiton-js-wro/src/main/java/org/nuiton/js/wro/ImportWildcardXmlModelFactory.java 2014-07-24 10:19:39 UTC (rev 531) +++ trunk/nuiton-js-wro/src/main/java/org/nuiton/js/wro/ImportWildcardXmlModelFactory.java 2014-07-24 10:28:07 UTC (rev 532) @@ -26,7 +26,6 @@ import java.io.File; import java.io.IOException; -import java.net.URISyntaxException; import java.net.URL; import java.net.URLDecoder; import java.util.ArrayList; @@ -37,7 +36,6 @@ import java.util.jar.JarEntry; import java.util.jar.JarFile; -import org.apache.commons.io.Charsets; import org.apache.commons.io.FileUtils; import org.apache.commons.io.FilenameUtils; import org.apache.commons.io.filefilter.TrueFileFilter; @@ -144,11 +142,6 @@ // log only LOG.warn("[FAIL] problem while trying to expand wildcard for the following resource uri: {}", uri); - } catch (URISyntaxException e) { - e.printStackTrace(); // DEBUG - // log only - LOG.warn("[FAIL] problem while trying to expand wildcard for the following resource uri: {}", - uri); } } else { final WildcardExpanderHandlerAware expandedHandler = (WildcardExpanderHandlerAware) wildcardStreamLocator; @@ -190,9 +183,8 @@ * @param url l'url du jar dans lequel il faut faire la recherche * @return la liste des fichiers du jar qui correspond * @throws IOException - * @throws URISyntaxException */ - protected List<String> listAcceptableFile(String pattern, URL url) throws IOException, URISyntaxException { + protected List<String> listAcceptableFile(String pattern, URL url) throws IOException { // le path du pattern (c-a-d: a/b/c/) String classPath = FilenameUtils.getPath(pattern);
participants (1)
-
echatellier@users.nuiton.org