/wro4j-core/src/main/java/ro/isdc/wro/model/resource/Resource.java
final int endIndex = result.length( ) - 1; if ( !StringUtils.isEmpty( uri) ) {
if ( !StringUtils.isEmpty ( uri ) ) { final int endIndex = result.length ( ) - 1;
final String resourceExtension = FilenameUtils.getExtension(uri); final ResourceType type = ResourceType.get(resourceExtension); return new Resource(uri, type); } private static String cleanUri(final String uri) { String result = uri.trim(); <extra_id_0> if (result.lastIndexOf('/') == endIndex) { result = result.substring(0, endIndex); } } return result; }