ilscipio/scipio-erp

View on GitHub
framework/widget/src/org/ofbiz/widget/renderer/macro/MacroFormRenderer.java

Summary

Maintainability
F
3 days
Test Coverage

MacroFormRenderer has 101 methods (exceeds 20 allowed). Consider refactoring.
Open

public final class MacroFormRenderer implements FormStringRenderer {

    private static final Debug.OfbizLogger module = Debug.getOfbizLogger(java.lang.invoke.MethodHandles.lookup().lookupClass());
    private final Template macroLibrary;
    private final WeakHashMap<Appendable, Environment> environments = new WeakHashMap<Appendable, Environment>();

    Method makeHyperlinkByType has 13 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        public void makeHyperlinkByType(Appendable writer, String linkType, String linkStyle, String targetType, String target, Map<String, String> parameterMap, String description, String targetWindow, String confirmation, ModelFormField modelFormField, HttpServletRequest request,
                HttpServletResponse response, Map<String, Object> context) throws IOException {

      Method makeHyperlinkString has 12 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          public void makeHyperlinkString(Appendable writer, String linkStyle, String targetType, String target, Map<String, String> parameterMap, String description, String confirmation, ModelFormField modelFormField, HttpServletRequest request, HttpServletResponse response, Map<String, Object> context,
                  String targetWindow) throws IOException {

        Method makeHiddenFormLinkForm has 9 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            public void makeHiddenFormLinkForm(Appendable writer, String target, String targetType, String targetWindow, Map<String, String> parameterMap, ModelFormField modelFormField, HttpServletRequest request, HttpServletResponse response, Map<String, Object> context) throws IOException {

          Method makeHiddenFormLinkForm has 9 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              private void makeHiddenFormLinkForm(Appendable writer, String target, String targetType, String targetWindow, String parameterFtlArg, ModelFormField modelFormField, HttpServletRequest request, HttpServletResponse response, Map<String, Object> context) throws IOException {

            Method makeHiddenFormLinkForm has 9 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                public void makeHiddenFormLinkForm(Appendable writer, String target, String targetType, String targetWindow, List<CommonWidgetModels.Parameter> parameterList, ModelFormField modelFormField, HttpServletRequest request, HttpServletResponse response, Map<String, Object> context) throws IOException {

              Method makeHiddenFormLinkAnchor has 8 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  public void makeHiddenFormLinkAnchor(Appendable writer, String linkStyle, String description, String confirmation, ModelFormField modelFormField, HttpServletRequest request, HttpServletResponse response, Map<String, Object> context) throws IOException { // SCIPIO: modified for exception

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

                    public void renderFormatFieldRowWidgetCellClose(Appendable writer, Map<String, Object> context, ModelFormField modelFormField, int positions, int positionSpan, Integer nextPositionInRow) throws IOException {

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

                      public void renderFormatFieldRowWidgetCellOpen(Appendable writer, Map<String, Object> context, ModelFormField modelFormField, int positions, int positionSpan, Integer nextPositionInRow) throws IOException {

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

                        public void renderAlternateText(Appendable writer, Map<String, Object> context, ModelForm modelForm, boolean wrapperOpened, boolean headerRendered, int numOfColumns) throws IOException {

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

                          public void renderFormatItemRowCellOpen(Appendable writer, Map<String, Object> context, ModelForm modelForm, ModelFormField modelFormField, int positionSpan) throws IOException {

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

                            public void renderFormatHeaderRowCellOpen(Appendable writer, Map<String, Object> context, ModelForm modelForm, ModelFormField modelFormField, int positionSpan) throws IOException {

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

                              public void renderFormatHeaderRowFormCellTitleSeparator(Appendable writer, Map<String, Object> context, ModelForm modelForm, ModelFormField modelFormField, boolean isLast) throws IOException {

                            There are no issues that match your filters.

                            Category
                            Status