"Fossies" - the Fresh Open Source Software Archive  

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

DefaultNullnessAnnotations.java  (findbugs-3.0.0-source):DefaultNullnessAnnotations.java  (findbugs-3.0.1-source)
skipping to change at line 52 skipping to change at line 52
database.addDefaultAnnotation(AnnotationDatabase.Target.METHOD, "java.la ng.String", NullnessAnnotation.NONNULL); database.addDefaultAnnotation(AnnotationDatabase.Target.METHOD, "java.la ng.String", NullnessAnnotation.NONNULL);
database.addFieldAnnotation("java.lang.System", "out", "Ljava/io/PrintSt ream;", true, NullnessAnnotation.NONNULL); database.addFieldAnnotation("java.lang.System", "out", "Ljava/io/PrintSt ream;", true, NullnessAnnotation.NONNULL);
database.addFieldAnnotation("java.lang.System", "err", "Ljava/io/PrintSt ream;", true, NullnessAnnotation.NONNULL); database.addFieldAnnotation("java.lang.System", "err", "Ljava/io/PrintSt ream;", true, NullnessAnnotation.NONNULL);
database.addFieldAnnotation("java.lang.System", "in", "Ljava/io/InputStr eam;", true, NullnessAnnotation.NONNULL); database.addFieldAnnotation("java.lang.System", "in", "Ljava/io/InputStr eam;", true, NullnessAnnotation.NONNULL);
database.addFieldAnnotation("java.math.BigInteger", "ZERO", "Ljava/math/ BigInteger;", true, NullnessAnnotation.NONNULL); database.addFieldAnnotation("java.math.BigInteger", "ZERO", "Ljava/math/ BigInteger;", true, NullnessAnnotation.NONNULL);
database.addFieldAnnotation("java.math.BigInteger", "ONE", "Ljava/math/B igInteger;", true, NullnessAnnotation.NONNULL); database.addFieldAnnotation("java.math.BigInteger", "ONE", "Ljava/math/B igInteger;", true, NullnessAnnotation.NONNULL);
database.addFieldAnnotation("java.math.BigInteger", "TEN", "Ljava/math/B igInteger;", true, NullnessAnnotation.NONNULL); database.addFieldAnnotation("java.math.BigInteger", "TEN", "Ljava/math/B igInteger;", true, NullnessAnnotation.NONNULL);
database.addMethodAnnotation("java.nio.file.Files", "probeContentType",
"(Ljava/nio/file/Path;)Ljava/lang/String;", true,
NullnessAnnotation.CHECK_FOR_NULL);
database.addMethodAnnotation("java.nio.file.Path", "getRoot", "()Ljava/n
io/file/Path;", false,
NullnessAnnotation.CHECK_FOR_NULL);
database.addMethodAnnotation("java.nio.file.Path", "getFileName", "()Lja
va/nio/file/Path;", false,
NullnessAnnotation.CHECK_FOR_NULL);
database.addMethodAnnotation("java.nio.file.Path", "getParent", "()Ljava
/nio/file/Path;", false,
NullnessAnnotation.CHECK_FOR_NULL);
database.addMethodAnnotation("java.io.File", "list", "()[Ljava/lang/Stri
ng;", false,
NullnessAnnotation.CHECK_FOR_NULL);
database.addMethodAnnotation("java.io.File", "list", "(Ljava/io/Filename
Filter;)[Ljava/lang/String;", false,
NullnessAnnotation.CHECK_FOR_NULL);
database.addMethodAnnotation("java.io.File", "listFiles", "()[Ljava/io/F
ile;", false,
NullnessAnnotation.CHECK_FOR_NULL);
database.addMethodAnnotation("java.io.File", "listFiles", "(Ljava/io/Fil
enameFilter;)[Ljava/io/File;", false,
NullnessAnnotation.CHECK_FOR_NULL);
database.addMethodAnnotation("java.io.File", "listFiles", "(Ljava/io/Fil
eFilter;)[Ljava/io/File;", false,
NullnessAnnotation.CHECK_FOR_NULL);
database.addMethodAnnotation("java.lang.ref.ReferenceQueue", "poll", "() Ljava/lang/ref/Reference;", false, database.addMethodAnnotation("java.lang.ref.ReferenceQueue", "poll", "() Ljava/lang/ref/Reference;", false,
NullnessAnnotation.CHECK_FOR_NULL); NullnessAnnotation.CHECK_FOR_NULL);
database.addMethodAnnotation("java.lang.ref.Reference", "get", "()Ljava/ lang/Object;", false, database.addMethodAnnotation("java.lang.ref.Reference", "get", "()Ljava/ lang/Object;", false,
NullnessAnnotation.CHECK_FOR_NULL); NullnessAnnotation.CHECK_FOR_NULL);
database.addMethodAnnotation("java.lang.Class", "newInstance", "()Ljava/ lang/Object;", false, NullnessAnnotation.NONNULL); database.addMethodAnnotation("java.lang.Class", "newInstance", "()Ljava/ lang/Object;", false, NullnessAnnotation.NONNULL);
database.addMethodAnnotation("java.lang.Class", "forName", "(Ljava/lang/ String;)Ljava/lang/Class;", true, database.addMethodAnnotation("java.lang.Class", "forName", "(Ljava/lang/ String;)Ljava/lang/Class;", true,
NullnessAnnotation.NONNULL); NullnessAnnotation.NONNULL);
database.addMethodAnnotation("java.lang.reflect.Method", "getParameterTy pes", "()[Ljava/lang/Class;", false, database.addMethodAnnotation("java.lang.reflect.Method", "getParameterTy pes", "()[Ljava/lang/Class;", false,
NullnessAnnotation.NONNULL); NullnessAnnotation.NONNULL);
database.addMethodAnnotation("java.lang.Object", "clone", "()Ljava/lang/ Object;", false, NullnessAnnotation.NONNULL); database.addMethodAnnotation("java.lang.Object", "clone", "()Ljava/lang/ Object;", false, NullnessAnnotation.NONNULL);
skipping to change at line 395 skipping to change at line 416
true, 0, NullnessAnnotation.NONNULL); true, 0, NullnessAnnotation.NONNULL);
database.addMethodAnnotation("java.util.Objects","requireNonNull", "(Lja va/lang/Object;)Ljava/lang/Object;", database.addMethodAnnotation("java.util.Objects","requireNonNull", "(Lja va/lang/Object;)Ljava/lang/Object;",
true, NullnessAnnotation.NONNULL); true, NullnessAnnotation.NONNULL);
database.addMethodAnnotation("java.util.Objects","requireNonNull", "(Lja va/lang/Object;Ljava/lang/String;)Ljava/lang/Object;", database.addMethodAnnotation("java.util.Objects","requireNonNull", "(Lja va/lang/Object;Ljava/lang/String;)Ljava/lang/Object;",
true, NullnessAnnotation.NONNULL); true, NullnessAnnotation.NONNULL);
database.addMethodAnnotation("org.w3c.dom.Element","getAttribute", "(Lja va/lang/String;)Ljava/lang/String;", database.addMethodAnnotation("org.w3c.dom.Element","getAttribute", "(Lja va/lang/String;)Ljava/lang/String;",
false, NullnessAnnotation.NONNULL); false, NullnessAnnotation.NONNULL);
database.addMethodAnnotation("org.w3c.dom.Element","getAttributeNS", "(L java/lang/String;Ljava/lang/String;)Ljava/lang/String;", database.addMethodAnnotation("org.w3c.dom.Element","getAttributeNS", "(L java/lang/String;Ljava/lang/String;)Ljava/lang/String;",
false, NullnessAnnotation.NONNULL); false, NullnessAnnotation.NONNULL);
database.addMethodAnnotation("org.w3c.dom.Element","getElementsByTagName
", "(Ljava/lang/String;)Lorg/w3c/dom/NodeList;",
false, NullnessAnnotation.NONNULL);
database.addMethodAnnotation("org.w3c.dom.Element","getElementsByTagName
NS", "(Ljava/lang/String;Ljava/lang/String;)Lorg/w3c/dom/NodeList;",
false, NullnessAnnotation.NONNULL);
addEclipseSpecificAnnotations(database); addEclipseSpecificAnnotations(database);
AnalysisContext.currentAnalysisContext().setMissingClassWarningsSuppress ed(missingClassWarningsSuppressed); AnalysisContext.currentAnalysisContext().setMissingClassWarningsSuppress ed(missingClassWarningsSuppressed);
} }
private static void addEclipseSpecificAnnotations(INullnessAnnotationDatabas e db) { private static void addEclipseSpecificAnnotations(INullnessAnnotationDatabas e db) {
// if(true){ // if(true){
// return; // return;
 End of changes. 2 change blocks. 
0 lines changed or deleted 36 lines changed or added

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