diff options
author | David Gageot <david@gageot.net> | 2012-04-27 16:48:46 +0200 |
---|---|---|
committer | David Gageot <david@gageot.net> | 2012-04-27 16:49:03 +0200 |
commit | 9e1a2abf9da026c059442381b84b45d0712b7258 (patch) | |
tree | 17d60faee4187ea3e60db13df015a8f718ee7508 /plugins/sonar-checkstyle-plugin | |
parent | bd90fa7d3ec17f825cac80eebd46cf1ee0412ee9 (diff) | |
download | sonarqube-9e1a2abf9da026c059442381b84b45d0712b7258.tar.gz sonarqube-9e1a2abf9da026c059442381b84b45d0712b7258.zip |
Code cleaning : Remove indirect access to static member
Diffstat (limited to 'plugins/sonar-checkstyle-plugin')
-rw-r--r-- | plugins/sonar-checkstyle-plugin/src/main/java/org/sonar/plugins/checkstyle/CheckstyleProfileImporter.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/sonar-checkstyle-plugin/src/main/java/org/sonar/plugins/checkstyle/CheckstyleProfileImporter.java b/plugins/sonar-checkstyle-plugin/src/main/java/org/sonar/plugins/checkstyle/CheckstyleProfileImporter.java index 1d4a5b7887b..25b8f5520bb 100644 --- a/plugins/sonar-checkstyle-plugin/src/main/java/org/sonar/plugins/checkstyle/CheckstyleProfileImporter.java +++ b/plugins/sonar-checkstyle-plugin/src/main/java/org/sonar/plugins/checkstyle/CheckstyleProfileImporter.java @@ -21,7 +21,6 @@ package org.sonar.plugins.checkstyle; import com.google.common.collect.Maps; import org.apache.commons.lang.StringUtils; -import org.codehaus.stax2.XMLInputFactory2; import org.codehaus.staxmate.SMInputFactory; import org.codehaus.staxmate.in.SMHierarchicCursor; import org.codehaus.staxmate.in.SMInputCursor; @@ -79,7 +78,7 @@ public class CheckstyleProfileImporter extends ProfileImporter { } private SMInputFactory initStax() { - XMLInputFactory xmlFactory = XMLInputFactory2.newInstance(); + XMLInputFactory xmlFactory = XMLInputFactory.newInstance(); xmlFactory.setProperty(XMLInputFactory.IS_COALESCING, Boolean.TRUE); xmlFactory.setProperty(XMLInputFactory.IS_NAMESPACE_AWARE, Boolean.FALSE); xmlFactory.setProperty(XMLInputFactory.SUPPORT_DTD, Boolean.FALSE); |