"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/java/edu/umd/cs/findbugs/ba/SignatureConverter.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.

SignatureConverter.java  (findbugs-3.0.0-source):SignatureConverter.java  (findbugs-3.0.1-source)
skipping to change at line 273 skipping to change at line 273
* the signature * the signature
*/ */
public static String convert(String signature) { public static String convert(String signature) {
return new SignatureConverter(signature).parseNext(); return new SignatureConverter(signature).parseNext();
} }
public static String shorten(String pkgName, String typeName) { public static String shorten(String pkgName, String typeName) {
int index = typeName.lastIndexOf('.'); int index = typeName.lastIndexOf('.');
if (index >= 0) { if (index >= 0) {
String otherPkg = typeName.substring(0, index); String otherPkg = typeName.substring(0, index);
if (otherPkg.equals(pkgName) || otherPkg.equals("java.lang")) { if (otherPkg.equals(pkgName) || "java.lang".equals(otherPkg)) {
typeName = typeName.substring(index + 1); typeName = typeName.substring(index + 1);
} }
} }
return typeName; return typeName;
} }
} }
 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