Package ch.hortis.sonar.model

Examples of ch.hortis.sonar.model.FileMeasure.addParameter()


    NodeList lines = parser.executeXPathNodeList(elt, "methods/method/lines/line");
    for (int i = 0; i < lines.getLength(); i++) {
      Element line = (Element) lines.item(i);
      double hits = Double.parseDouble(line.getAttribute("hits"));
      if (hits > 0) {
        measure.addParameter("line-hit", Double.parseDouble(line.getAttribute("number")), hits);
      }
    }
    return measure;
  }
View Full Code Here


    NodeList lines = parser.executeXPathNodeList( elt, "methods/method/lines/line" );
    for (int i = 0; i < lines.getLength(); i++) {
      Element line = (Element) lines.item( i );
      double hits = Double.parseDouble( line.getAttribute( "hits" ) );
      if ( hits > 0 ) {
        measure.addParameter( "line-hit", Double.parseDouble( line.getAttribute( "number" ) ), hits );
      }
    }
    return measure;
  }
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.