"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/gui/edu/umd/cs/findbugs/gui2/SaveType.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.

SaveType.java  (findbugs-3.0.0-source):SaveType.java  (findbugs-3.0.1-source)
skipping to change at line 71 skipping to change at line 71
case FBA_FILE: case FBA_FILE:
return ".fba"; return ".fba";
default: default:
throw new IllegalArgumentException("No filter for type NOT_UNKNOWN") ; throw new IllegalArgumentException("No filter for type NOT_UNKNOWN") ;
} }
} }
public static SaveType forFile(File f) { public static SaveType forFile(File f) {
String extension = Util.getFileExtension(f); String extension = Util.getFileExtension(f);
if (extension.equals("html") || extension.equals("htm")) { if ("html".equals(extension) || "htm".equals(extension)) {
return HTML_OUTPUT; return HTML_OUTPUT;
} }
if (extension.equals("fba")) { if ("fba".equals(extension)) {
return FBA_FILE; return FBA_FILE;
} }
if (extension.equals("fbp")) { if ("fbp".equals(extension)) {
return FBP_FILE; return FBP_FILE;
} }
if (extension.equals("xml")) { if ("xml".equals(extension)) {
return XML_ANALYSIS; return XML_ANALYSIS;
} }
if (extension.equals("html")) { if ("html".equals(extension)) {
return XML_ANALYSIS; return XML_ANALYSIS;
} }
if (f.getName().toLowerCase().endsWith("xml.gz")) { if (f.getName().toLowerCase().endsWith("xml.gz")) {
return XML_ANALYSIS; return XML_ANALYSIS;
} }
return NOT_KNOWN; return NOT_KNOWN;
} }
} }
 End of changes. 5 change blocks. 
5 lines changed or deleted 5 lines changed or added

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