CPD Results

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

Duplications

File Line
org/woehlke/computer/kurzweil/conwaysgameoflive/config/ComputerKurzweilProperties.java 195
org/woehlke/computer/kurzweil/conwaysgameoflive/config/ComputerKurzweilProperties.java 386
public static class SimulatedEvolution {

        @Valid
        public View view = new View();

        @Valid
        public Control control = new Control();

        @Valid
        public CellConf cellConf = new CellConf();

        @Valid
        public Population population = new Population();

        @Valid
        public Food food = new Food();

        @Valid
        public GardenOfEden gardenOfEden = new GardenOfEden();

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

            @NotBlank
            private String title;

            @NotBlank
            private String subtitle;

            @NotBlank
            private String copyright;

            @NotNull
            private Integer width;

            @NotNull
            private Integer height;

            @NotNull
            private Integer scale;
        }

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

            @NotNull
            private Integer threadSleepTime;

            @NotNull
            private Integer exitStatus;

            @NotNull
            private Integer queueMaxLength;
        }

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

            @NotNull
            private Integer fatMax;

            @NotNull
            private Integer fatHungerMax;

            @NotNull
            private Integer fatMinimumForSex;

            @NotNull
            private Integer fatAtBirth;

            @NotNull
            private Integer fatPerFood;

            @NotNull
            private Integer ageOfAdulthood;

            @NotNull
            private Integer ageOld;

            @NotNull
            private Integer ageMax;
        }

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

            @NotNull
            private Integer initialPopulation;

            @NotBlank
            private String panelPopulationStatistics;

            @NotBlank
            private String youngCellsLabel;

            @NotBlank
            private String youngAndFatCellsLabel;

            @NotBlank
            private String fullAgeCellsLabel;

            @NotBlank
            private String hungryCellsLabel;

            @NotBlank
            private String oldCellsLabel;

            @NotBlank
            private String populationLabel;

            @NotBlank
            private String generationOldestLabel;

            @NotBlank
            private String generationYoungestLabel;
        }

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

            @NotNull
            private Integer foodPerDay;

            @NotNull
            private Integer foodPerDayFieldColumns;

            @NotBlank
            private String foodPerDayLabel;

            @NotBlank
            private String foodPerDayBorderLabel;

            @NotBlank
            private String buttonFoodPerDayIncrease;

            @NotBlank
            private String buttonFoodPerDayDecrease;

            @NotBlank
            private String panelFood;
        }

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

            @NotBlank
            private String panelGardenOfEden;

            @NotNull
            private Boolean gardenOfEdenEnabled;

            @NotBlank
            private String gardenOfEdenEnabledString;

            @NotBlank
            private String gardenOfEdenEnabledToggleButton;

            @NotNull
            private Integer foodPerDay;

            @NotNull
            private Integer gardenOfEdenLatticeDivisor;

            @NotNull
            private Integer gardenOfEdenLatticeDivisorPadding;
        }
    }


    ////@Validated
    @ToString
    @Getter
    @Setter
    public static class Conwaysgameoflife {
File Line
org/woehlke/computer/kurzweil/conwaysgameoflive/view/canvas/population/PopulationStatisticsElementsPanelCounted.java 98
org/woehlke/computer/kurzweil/conwaysgameoflive/view/tabs/SubTabImpl.java 74
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/conwaysgameoflive/config/ComputerKurzweilProperties.java 709
org/woehlke/computer/kurzweil/conwaysgameoflive/config/ComputerKurzweilProperties.java 769
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/conwaysgameoflive/config/ComputerKurzweilProperties.java 890
org/woehlke/computer/kurzweil/conwaysgameoflive/config/ComputerKurzweilProperties.java 1009
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/conwaysgameoflive/view/canvas/population/PopulationStatisticsElementsPanelCounted.java 98
org/woehlke/computer/kurzweil/conwaysgameoflive/view/canvas/population/PopulationStatisticsElementsPanelLifeCycle.java 115
org/woehlke/computer/kurzweil/conwaysgameoflive/view/tabs/SubTabImpl.java 74
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/conwaysgameoflive/config/ComputerKurzweilProperties.java 890
org/woehlke/computer/kurzweil/conwaysgameoflive/config/ComputerKurzweilProperties.java 1009
org/woehlke/computer/kurzweil/conwaysgameoflive/config/ComputerKurzweilProperties.java 1068
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/conwaysgameoflive/config/ComputerKurzweilProperties.java 577
org/woehlke/computer/kurzweil/conwaysgameoflive/config/ComputerKurzweilProperties.java 709
org/woehlke/computer/kurzweil/conwaysgameoflive/config/ComputerKurzweilProperties.java 769
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;