CPD Results

The following document contains the results of PMD's CPD 6.46.0.

Duplications

File Line
org/woehlke/computer/kurzweil/simulated/evolution/view/canvas/population/PopulationStatisticsElementsPanelCounted.java 53
org/woehlke/computer/kurzweil/simulated/evolution/view/canvas/population/PopulationStatisticsElementsPanelLifeCycle.java 56
public PopulationStatisticsElementsPanelCounted(
        SimulatedEvolutionContext tabCtx
    ) {
        super(tabCtx.getCtx().getProperties().getSimulatedevolution().getPopulation().getPanelPopulationStatistics(),tabCtx.getCtx().getProperties());
        this.tabCtx = tabCtx;
        layoutSubPanel = new FlowLayout();
        this.setLayout(layoutSubPanel);
        borderLabel = this.tabCtx.getCtx().getProperties().getSimulatedevolution().getPopulation().getPanelPopulationStatistics();
        layout = new FlowLayoutCenter();
        border = tabCtx.getCtx().getBottomButtonsPanelBorder(borderLabel);
        this.setLayout(layout);
        this.setBorder(border);
        ComputerKurzweilProperties.SimulatedEvolution.Population cfg = this.tabCtx.getCtx().getProperties().getSimulatedevolution().getPopulation();
        initialPopulation = cfg.getInitialPopulation();
File Line
org/woehlke/computer/kurzweil/simulated/evolution/config/ComputerKurzweilContext.java 67
org/woehlke/computer/kurzweil/simulated/evolution/view/widgets/SubTabImpl.java 66
);
    }

    private CompoundBorder getDoubleBorder(){
        int left = this.getProperties().getAllinone().getView().getBorderPaddingX();
        int right = this.getProperties().getAllinone().getView().getBorderPaddingX();
        int top = this.getProperties().getAllinone().getView().getBorderPaddingY();
        int bottom = this.getProperties().getAllinone().getView().getBorderPaddingY();
        return BorderFactory.createCompoundBorder(
            BorderFactory.createEmptyBorder(left,right,top,bottom),
            BorderFactory.createEmptyBorder(left,right,top,bottom)
        );
    }
File Line
org/woehlke/computer/kurzweil/simulated/evolution/config/ComputerKurzweilProperties.java 503
org/woehlke/computer/kurzweil/simulated/evolution/config/ComputerKurzweilProperties.java 563
public static class Kochsnowflake {

        @Valid
        public View view = new View();

        @Valid
        public Control control = new Control();

        //@Validated
        @ToString
        @Getter
        @Setter
        public static class View {

            @NotBlank
            private String title;

            @NotBlank
            private String subtitle;

            @Valid
            public Neighborhood neighborhood = new Neighborhood();

            //@Validated
            @ToString
            @Getter
            @Setter
            public static class Neighborhood {

                @NotBlank
                private String title;

                @NotBlank
                private String typeVonNeumann;

                @NotBlank
                private String typeMoore;

                @NotBlank
                private String typeWoehlke;
            }
        }

        //@Validated
        @ToString
        @Getter
        @Setter
        public static class Control {

            @NotNull
            private Integer threadSleepTime;

            @NotNull
            private Integer numberOfParticles;
        }
    }

    @ToString
    @Getter
    @Setter
    public static class Samegame {
File Line
org/woehlke/computer/kurzweil/simulated/evolution/config/ComputerKurzweilProperties.java 684
org/woehlke/computer/kurzweil/simulated/evolution/config/ComputerKurzweilProperties.java 803
public static class Tetris {

        @Valid
        public View view = new View();

        @Valid
        public Control control = new Control();

        //@Validated
        @Getter
        @Setter
        @ToString
        public static class View {

            @NotBlank
            private String title;

            @NotBlank
            private String subtitle;

            @Valid
            public Neighborhood neighborhood = new Neighborhood();

            //@Validated
            @Getter
            @Setter
            @ToString
            public static class Neighborhood {
                @NotBlank
                private String title;

                @NotBlank
                private String typeVonNeumann;

                @NotBlank
                private String typeMoore;

                @NotBlank
                private String typeWoehlke;
            }
        }

        //@Validated
        @Getter
        @Setter
        @ToString
        public static class Control {

            @NotNull
            private Integer threadSleepTime;

            @NotNull
            private Integer numberOfParticles;
        }
    }

    @Getter
    @Setter
    @ToString
    public static class Turmite {
File Line
org/woehlke/computer/kurzweil/simulated/evolution/config/ComputerKurzweilContext.java 70
org/woehlke/computer/kurzweil/simulated/evolution/config/ComputerKurzweilContext.java 81
org/woehlke/computer/kurzweil/simulated/evolution/view/widgets/SubTabImpl.java 69
private CompoundBorder getDoubleBorder(){
        int left = this.getProperties().getAllinone().getView().getBorderPaddingX();
        int right = this.getProperties().getAllinone().getView().getBorderPaddingX();
        int top = this.getProperties().getAllinone().getView().getBorderPaddingY();
        int bottom = this.getProperties().getAllinone().getView().getBorderPaddingY();
        return BorderFactory.createCompoundBorder(
            BorderFactory.createEmptyBorder(left,right,top,bottom),
            BorderFactory.createEmptyBorder(left,right,top,bottom)
        );
    }
File Line
org/woehlke/computer/kurzweil/simulated/evolution/config/ComputerKurzweilProperties.java 684
org/woehlke/computer/kurzweil/simulated/evolution/config/ComputerKurzweilProperties.java 803
org/woehlke/computer/kurzweil/simulated/evolution/config/ComputerKurzweilProperties.java 862
public static class Tetris {

        @Valid
        public View view = new View();

        @Valid
        public Control control = new Control();

        //@Validated
        @Getter
        @Setter
        @ToString
        public static class View {

            @NotBlank
            private String title;

            @NotBlank
            private String subtitle;

            @Valid
            public Neighborhood neighborhood = new Neighborhood();

            //@Validated
            @Getter
            @Setter
            @ToString
            public static class Neighborhood {
                @NotBlank
                private String title;

                @NotBlank
                private String typeVonNeumann;

                @NotBlank
                private String typeMoore;

                @NotBlank
                private String typeWoehlke;
            }
        }

        //@Validated
        @Getter
        @Setter
        @ToString
        public static class Control {

            @NotNull
            private Integer threadSleepTime;

            @NotNull
            private Integer numberOfParticles;
        }
    }
File Line
org/woehlke/computer/kurzweil/simulated/evolution/config/ComputerKurzweilProperties.java 371
org/woehlke/computer/kurzweil/simulated/evolution/config/ComputerKurzweilProperties.java 503
org/woehlke/computer/kurzweil/simulated/evolution/config/ComputerKurzweilProperties.java 563
public static class Cca {

        @Valid
        public View view = new View();

        @Valid
        public Control control = new Control();

        //@Validated
        @ToString
        @Getter
        @Setter
        public static class View {

            @NotBlank
            private String title;

            @NotBlank
            private String subtitle;

            @Valid
            public Neighborhood neighborhood = new Neighborhood();

            //@Validated
            @ToString
            @Getter
            @Setter
            public static class Neighborhood {

                @NotBlank
                private String title;

                @NotBlank
                private String typeVonNeumann;

                @NotBlank
                private String typeMoore;

                @NotBlank
                private String typeWoehlke;
            }
        }

        ////@Validated
        @ToString
        @Getter
        @Setter
        public static class Control {

            @NotNull
            private Integer threadSleepTime;