Permalink
Browse files

Sonar bug hunting: For Loops Must Use Braces

  • Loading branch information...
dluebke committed May 20, 2012
1 parent 73822f8 commit eb1c7b111d22bb968abc1e1cd389158e7f31ee4c
@@ -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;
}

0 comments on commit eb1c7b1

Please sign in to comment.