CPD Results

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

Duplications

FileLine
nl/gridshore/samples/raffle/web/wicket/raffle/DeleteRafflePage.java25
nl/gridshore/samples/raffle/web/wicket/raffle/ViewRafflePage.java29
        Raffle raffle = raffleService.giveRaffleById(pageParams.getLong(RaffleConstants.PARAM_RAFFLE_ID));
        add(new Label("title-label", "Raffle title"));
        add(new Label("title", raffle.getTitle()));
        add(new Label("description-label", "Raffle description"));
        add(new Label("description", raffle.getDescription()));
        add(new Label("participant-name-label", "Participant name"));
        add(new ListView("participants", raffle.getParticipants()) {
            protected void populateItem(ListItem item) {
                Participant participant = (Participant) item.getModelObject();
                item.add(new Label("name", participant.getName()));
            }
        });