Showing 239 of 782 total issues

File PersonData.java has 296 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 * Copyright 2010 James Pether Sörling
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.

    File UserAccount.java has 285 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    //
    // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
    // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
    // Any modifications to this file will be lost upon recompilation of the source schema.
    // Generated on: 2019.02.25 at 12:05:09 AM CET

      File ViewRiksdagenCommitteeDecisions.java has 284 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      //
      // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
      // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
      // Any modifications to this file will be lost upon recompilation of the source schema.
      // Generated on: 2019.02.25 at 12:05:09 AM CET

        File ApplicationSession.java has 280 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        //
        // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
        // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
        // Any modifications to this file will be lost upon recompilation of the source schema.
        // Generated on: 2019.02.25 at 12:05:09 AM CET

          ViewRiksdagenCommittee has 24 methods (exceeds 20 allowed). Consider refactoring.
          Open

          @XmlAccessorType(XmlAccessType.FIELD)
          @XmlType(name = "ViewRiksdagenCommittee", propOrder = {
              "embeddedId",
              "totalAssignments",
              "firstAssignmentDate",

            ViewRiksdagenMinistry has 24 methods (exceeds 20 allowed). Consider refactoring.
            Open

            @XmlAccessorType(XmlAccessType.FIELD)
            @XmlType(name = "ViewRiksdagenMinistry", propOrder = {
                "nameId",
                "totalAssignments",
                "firstAssignmentDate",

              Method processService has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
              Open

                  @Override
                  @Secured({ "ROLE_USER", "ROLE_ADMIN"})
                  public DeleteAccountResponse processService(
                          final DeleteAccountRequest serviceRequest) {
              
              

              Cognitive Complexity

              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

              A method's cognitive complexity is based on a few simple rules:

              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
              • Code is considered more complex for each "break in the linear flow of the code"
              • Code is considered more complex when "flow breaking structures are nested"

              Further reading

              DocumentActivityData has 23 methods (exceeds 20 allowed). Consider refactoring.
              Open

              @XmlAccessorType(XmlAccessType.FIELD)
              @XmlType(name = "DocumentActivityData", propOrder = {
                  "createdDate",
                  "code",
                  "activityName",

                IndicatorElement has 23 methods (exceeds 20 allowed). Consider refactoring.
                Open

                @XmlAccessorType(XmlAccessType.FIELD)
                @XmlType(name = "IndicatorElement", propOrder = {
                    "indicatorName",
                    "source",
                    "sourceNote",

                  Portal has 23 methods (exceeds 20 allowed). Consider refactoring.
                  Open

                  @XmlAccessorType(XmlAccessType.FIELD)
                  @XmlType(name = "Portal", propOrder = {
                      "modelObjectId",
                      "modelObjectVersion",
                      "portalName",

                    RuleViolation has 23 methods (exceeds 20 allowed). Consider refactoring.
                    Open

                    @Entity(name = "RuleViolation")
                    @Table(name = "RULE_VIOLATION")
                    public class RuleViolation implements Serializable {
                    
                        /** The Constant serialVersionUID. */

                      ChartOptionsImpl has 22 methods (exceeds 20 allowed). Consider refactoring.
                      Open

                      @Component
                      public final class ChartOptionsImpl implements ChartOptions {
                      
                          /** The Constant BACKGROUND_COLOR. */
                          private static final String BACKGROUND_COLOR = "#13303f";

                        ViewRiksdagenParty has 21 methods (exceeds 20 allowed). Consider refactoring.
                        Open

                        @XmlAccessorType(XmlAccessType.FIELD)
                        @XmlType(name = "ViewRiksdagenParty", propOrder = {
                            "partyId",
                            "partyNumber",
                            "partyName",

                          CreateApplicationEventRequest has 21 methods (exceeds 20 allowed). Consider refactoring.
                          Open

                          public final class CreateApplicationEventRequest extends AbstractRequest {
                          
                              /** The Constant serialVersionUID. */
                              private static final long serialVersionUID = 1L;
                          
                          

                            File AbstractGenericDAOImpl.java has 255 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            /*
                             * Copyright 2010-2024 James Pether Sörling
                             *
                             * Licensed under the Apache License, Version 2.0 (the "License");
                             * you may not use this file except in compliance with the License.

                              File ApplicationActionEvent.java has 253 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              //
                              // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
                              // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
                              // Any modifications to this file will be lost upon recompilation of the source schema.
                              // Generated on: 2019.02.25 at 12:05:09 AM CET

                                Method createContent has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    @Secured({ "ROLE_ADMIN" })
                                    @Override
                                    public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
                                        final VerticalLayout content = createPanelContent();
                                
                                

                                  Method createBasicLayoutWithPanelAndFooter has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      protected final void createBasicLayoutWithPanelAndFooter(final String panelName) {
                                          final VerticalLayout layout = createFullSizeVerticalLayout();
                                          final VerticalLayout pageModeContent = createFullSizeVerticalLayout(false,false);
                                          layout.addComponent(pageModeContent);
                                  
                                  

                                    File CommitteeProposalData.java has 251 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    /*
                                     * Copyright 2010 James Pether Sörling
                                     *
                                     * Licensed under the Apache License, Version 2.0 (the "License");
                                     * you may not use this file except in compliance with the License.

                                      Method processService has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
                                      Open

                                          @Override
                                          @Secured({ "ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN" })
                                          public LoginResponse processService(final LoginRequest serviceRequest) {
                                              final LoginResponse inputValidation = inputValidation(serviceRequest);
                                              if (inputValidation != null) {

                                      Cognitive Complexity

                                      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                      A method's cognitive complexity is based on a few simple rules:

                                      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                      • Code is considered more complex for each "break in the linear flow of the code"
                                      • Code is considered more complex when "flow breaking structures are nested"

                                      Further reading

                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language