CPD Results

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

Duplications

File Line
org/woehlke/computer/kurzweil/application/ComputerKurzweilProperties.java 560
org/woehlke/computer/kurzweil/application/ComputerKurzweilProperties.java 625
org/woehlke/computer/kurzweil/application/ComputerKurzweilProperties.java 690
org/woehlke/computer/kurzweil/application/ComputerKurzweilProperties.java 755
org/woehlke/computer/kurzweil/application/ComputerKurzweilProperties.java 820
org/woehlke/computer/kurzweil/application/ComputerKurzweilProperties.java 885
public static class Kochsnowflake {

        @Valid
        @Getter
        @Setter
        public View view = new View();
        @Valid
        @Getter
        @Setter
        public Control control = new Control();

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

            @Valid
            @Getter
            @Setter
            public Neighborhood neighborhood = new Neighborhood();

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

        //@Validated
        @ToString
        public static class Control {
            @NotNull
            @Getter
            @Setter
            private Integer threadSleepTime;
            @NotNull
            @Getter
            @Setter
            private Integer numberOfParticles;
        }
    }

    @ToString
    public static class Samegame {
File Line
org/woehlke/computer/kurzweil/tabs/simulatedevolution/canvas/population/PopulationStatisticsElementsPanelCounted.java 49
org/woehlke/computer/kurzweil/tabs/simulatedevolution/canvas/population/PopulationStatisticsElementsPanelLifeCycle.java 52
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/application/ComputerKurzweilProperties.java 421
org/woehlke/computer/kurzweil/application/ComputerKurzweilProperties.java 560
org/woehlke/computer/kurzweil/application/ComputerKurzweilProperties.java 625
org/woehlke/computer/kurzweil/application/ComputerKurzweilProperties.java 690
org/woehlke/computer/kurzweil/application/ComputerKurzweilProperties.java 755
org/woehlke/computer/kurzweil/application/ComputerKurzweilProperties.java 820
org/woehlke/computer/kurzweil/application/ComputerKurzweilProperties.java 885
public static class Cca {

        @Valid
        @Getter
        @Setter
        public View view = new View();
        @Valid
        @Getter
        @Setter
        public Control control = new Control();

        //@Validated
        @ToString
        public static class View {

            @NotBlank
            @Getter
            @Setter
            private String title;
            @NotBlank
            @Getter
            @Setter
            private String subtitle;

            @Valid
            @Getter
            @Setter
            public Neighborhood neighborhood = new Neighborhood();

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

        ////@Validated
        @ToString
        public static class Control {
            @NotNull
            @Getter
            @Setter
            private Integer threadSleepTime;
File Line
org/woehlke/computer/kurzweil/application/ComputerKurzweilContext.java 63
org/woehlke/computer/kurzweil/commons/widgets/SubTabImpl.java 51
);
    }

    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/application/ComputerKurzweilContext.java 66
org/woehlke/computer/kurzweil/application/ComputerKurzweilContext.java 77
org/woehlke/computer/kurzweil/commons/widgets/SubTabImpl.java 54
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)
        );
    }