ilscipio/scipio-erp

View on GitHub
framework/base/src/org/ofbiz/base/util/UtilXml.java

Summary

Maintainability
D
3 days
Test Coverage

UtilXml has 74 methods (exceeds 20 allowed). Consider refactoring.
Open

public final class UtilXml {

    private static final Debug.OfbizLogger module = Debug.getOfbizLogger(java.lang.invoke.MethodHandles.lookup().lookupClass());
    private static final XStream xstream = createXStream();
    private static final List<String> logDetailedExcludedClasses = Arrays.asList(UtilXml.class.getName()); // SCIPIO
Severity: Major
Found in framework/base/src/org/ofbiz/base/util/UtilXml.java - About 1 day to fix

    ElementWrapper has 57 methods (exceeds 20 allowed). Consider refactoring.
    Open

        public static abstract class ElementWrapper implements Element {
    
            protected final Element element;
    
            // Constructors
    Severity: Major
    Found in framework/base/src/org/ofbiz/base/util/UtilXml.java - About 1 day to fix

      ElementHelper has 30 methods (exceeds 20 allowed). Consider refactoring.
      Open

          public static class ElementHelper extends ElementWrapper {
      
              // Constructors
      
              public ElementHelper(Element element) {
      Severity: Minor
      Found in framework/base/src/org/ofbiz/base/util/UtilXml.java - About 3 hrs to fix

        Method writeXmlDocument has 6 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            public static void writeXmlDocument(Node node, OutputStream os, String encoding, boolean omitXmlDeclaration, boolean indent, int indentAmount) throws TransformerException {
        Severity: Minor
        Found in framework/base/src/org/ofbiz/base/util/UtilXml.java - About 45 mins to fix

          Method addChildElementNSValue has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              public static Element addChildElementNSValue(Element element, String childElementName,
                      String childElementValue, Document document, String nameSpaceUrl) {
          Severity: Minor
          Found in framework/base/src/org/ofbiz/base/util/UtilXml.java - About 35 mins to fix

            Method writeXmlDocument has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                public static void writeXmlDocument(OutputStream os, Node node, String encoding, boolean includeXmlDeclaration, boolean enablePrettyPrint) throws ClassCastException, ClassNotFoundException, InstantiationException, IllegalAccessException {
            Severity: Minor
            Found in framework/base/src/org/ofbiz/base/util/UtilXml.java - About 35 mins to fix

              There are no issues that match your filters.

              Category
              Status