Examples of LineData


Examples of net.sourceforge.cobertura.coveragedata.LineData

        lines.addAll((Collection) classData.getLines(methodNameAndDescriptor));
        Collections.sort(this.lines, new Comparator<CoverageData>() {

            @Override
            public int compare(CoverageData o1, CoverageData o2) {
                LineData l1 = (LineData) o1;
                LineData l2 = (LineData) o2;
                Integer i1 = new Integer(l1.getLineNumber());
                Integer i2 = new Integer(l2.getLineNumber());
                return i1.compareTo(i2);
            }
          

        });
View Full Code Here

Examples of net.sourceforge.cobertura.coveragedata.LineData

    }

    public int[] getFirstAndLastLinesForMethod() {
        int[] result = new int[] { Integer.MAX_VALUE, Integer.MIN_VALUE };
        for (CoverageData cd : lines) {
            LineData ld = (LineData) cd;
            result[0] = Math.min(result[0], ld.getLineNumber());
            result[1] = Math.max(result[1], ld.getLineNumber());
        }
        return result;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.