Package edu.umd.cs.findbugs.ba

Examples of edu.umd.cs.findbugs.ba.SourceFinder


        SourceLineAnnotation line = bugInstance.getPrimarySourceLineAnnotation();

        lineStart = line.getStartLine();
        lineEnd = line.getEndLine();
        SourceFinder sourceFinder = AnalysisContext.currentAnalysisContext().getSourceFinder();
        String pkgName = line.getPackageName();
        try {
            fullPath = sourceFinder.findSourceFile(pkgName, line.getSourceFile()).getFullFileName();
        } catch (IOException e) {
            if (pkgName.equals("")) {
                fullPath = line.getSourceFile();
            } else {
                fullPath = pkgName.replace('.', '/') + "/" + line.getSourceFile();
View Full Code Here


        Project project = collection.getProject();
        for (String sourceFolder : sources) {
            project.addSourceDir(sourceFolder);
        }

        SourceFinder sourceFinder = new SourceFinder(project);
        String actualName = extractModuleName(moduleName, project);

        TreeStringBuilder stringPool = new TreeStringBuilder();
        List<FileAnnotation> annotations = new ArrayList<FileAnnotation>();
        Collection<BugInstance> bugs = collection.getCollection();
View Full Code Here

TOP

Related Classes of edu.umd.cs.findbugs.ba.SourceFinder

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.