Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Sonar bug hunting: For Loops Must Use Braces

  • Loading branch information...
commit eb1c7b111d22bb968abc1e1cd389158e7f31ee4c 1 parent 73822f8
@dluebke dluebke authored
View
4 net.bpelunit.framework/src/main/java/net/bpelunit/framework/control/util/XPathTool.java
@@ -32,7 +32,9 @@ public XPathTool(NamespaceContext nsContext) {
public List<Node> evaluateAsList(String query, Object item) throws XPathExpressionException {
NodeList nodes = (NodeList)fXPath.evaluate(query, item, XPathConstants.NODESET);
List<Node> list = new ArrayList<Node>();
- for (int i = 0; i < nodes.getLength(); ++i) list.add(nodes.item(i));
+ for (int i = 0; i < nodes.getLength(); ++i) {
+ list.add(nodes.item(i));
+ }
return list;
}
Please sign in to comment.
Something went wrong with that request. Please try again.