Package edu.umd.cs.findbugs

Examples of edu.umd.cs.findbugs.PackageMemberAnnotation


     */
    private static @CheckForNull
    IJavaElement getJavaElement(BugInstance bug, IJavaProject project) throws JavaModelException {

        SourceLineAnnotation primarySourceLineAnnotation = bug.getPrimarySourceLineAnnotation();
        PackageMemberAnnotation packageAnnotation = null;
        String packageName = null;
        String qualifiedClassName = null;
        if (primarySourceLineAnnotation == null) {
            packageAnnotation = bug.getPrimaryClass();
            if (packageAnnotation != null) {
                packageName = packageAnnotation.getPackageName();
                qualifiedClassName = packageAnnotation.getClassName();
            }
        } else {
            packageName = primarySourceLineAnnotation.getPackageName();
            qualifiedClassName = primarySourceLineAnnotation.getClassName();
        }
View Full Code Here

TOP

Related Classes of edu.umd.cs.findbugs.PackageMemberAnnotation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.