Repository: any23 Updated Branches: refs/heads/master f12fced32 -> 7588c3e95
ANY23-368 no-op commit; attempting to trigger a successful build Project: http://git-wip-us.apache.org/repos/asf/any23/repo Commit: http://git-wip-us.apache.org/repos/asf/any23/commit/7588c3e9 Tree: http://git-wip-us.apache.org/repos/asf/any23/tree/7588c3e9 Diff: http://git-wip-us.apache.org/repos/asf/any23/diff/7588c3e9 Branch: refs/heads/master Commit: 7588c3e95cfc9f5d11e39c3be1024b16bc24c137 Parents: f12fced Author: Hans <[email protected]> Authored: Fri Jul 13 15:21:35 2018 -0500 Committer: Hans <[email protected]> Committed: Fri Jul 13 15:21:35 2018 -0500 ---------------------------------------------------------------------- .../java/org/apache/any23/validator/rule/MetaNameMisuseFix.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/any23/blob/7588c3e9/core/src/main/java/org/apache/any23/validator/rule/MetaNameMisuseFix.java ---------------------------------------------------------------------- diff --git a/core/src/main/java/org/apache/any23/validator/rule/MetaNameMisuseFix.java b/core/src/main/java/org/apache/any23/validator/rule/MetaNameMisuseFix.java index 149ce5f..4346360 100644 --- a/core/src/main/java/org/apache/any23/validator/rule/MetaNameMisuseFix.java +++ b/core/src/main/java/org/apache/any23/validator/rule/MetaNameMisuseFix.java @@ -43,13 +43,12 @@ public class MetaNameMisuseFix implements Fix { @SuppressWarnings("unchecked") public void execute(Rule rule, @SuppressWarnings("rawtypes") RuleContext context, DOMDocument document) { List<Node> nodes = (List<Node>) context.getData(MetaNameMisuseRule.ERRORED_META_NODES); - for(Node node : nodes) { + for (Node node : nodes) { final String nameValue = node.getAttributes().getNamedItem("name").getTextContent(); node.getAttributes().removeNamedItem("name"); Node propertyNode = document.getOriginalDocument().createAttribute("property"); propertyNode.setNodeValue(nameValue); node.getAttributes().setNamedItem(propertyNode); - } }
