"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/java/edu/umd/cs/findbugs/ba/URLClassPath.java" between
findbugs-3.0.0-source.zip and findbugs-3.0.1-source.zip

About: FindBugs uses static analysis to look for bugs in Java code. Source.

URLClassPath.java  (findbugs-3.0.0-source):URLClassPath.java  (findbugs-3.0.1-source)
skipping to change at line 313 skipping to change at line 313
String protocol = URLClassPath.getURLProtocol(fileName); String protocol = URLClassPath.getURLProtocol(fileName);
if (protocol == null) { if (protocol == null) {
fileName = "file:" + fileName; fileName = "file:" + fileName;
protocol = "file"; protocol = "file";
} }
String fileExtension = URLClassPath.getFileExtension(fileName); String fileExtension = URLClassPath.getFileExtension(fileName);
boolean isArchive = fileExtension != null && URLClassPath.isArchiveExten sion(fileExtension); boolean isArchive = fileExtension != null && URLClassPath.isArchiveExten sion(fileExtension);
Entry entry; Entry entry;
if (protocol.equals("file")) { if ("file".equals(protocol)) {
String localFileName = fileName.substring("file:".length()); String localFileName = fileName.substring("file:".length());
if (fileName.endsWith("/") || new File(localFileName).isDirectory()) { if (fileName.endsWith("/") || new File(localFileName).isDirectory()) {
entry = new LocalDirectoryEntry(localFileName); entry = new LocalDirectoryEntry(localFileName);
} else if (isArchive) { } else if (isArchive) {
entry = new LocalArchiveEntry(localFileName); entry = new LocalArchiveEntry(localFileName);
} else { } else {
throw new IOException("Classpath entry " + fileName + " is not a directory or archive file"); throw new IOException("Classpath entry " + fileName + " is not a directory or archive file");
} }
} else { } else {
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS