CPD Results

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

Duplications

File Line
com/codecool/bytebattlers/mapper/CategoryMapperImpl.java 89
com/codecool/bytebattlers/mapper/PublisherMapperImpl.java 87
protected BoardGame boardGameDto1ToBoardGame(CategoryDto.BoardGameDto1 boardGameDto1) {
        if ( boardGameDto1 == null ) {
            return null;
        }

        BoardGame boardGame = new BoardGame();

        boardGame.setPublicID( boardGameDto1.publicID() );
        boardGame.setGameName( boardGameDto1.gameName() );
        boardGame.setMinPlayer( boardGameDto1.minPlayer() );
        boardGame.setMaxPlayer( boardGameDto1.maxPlayer() );
        boardGame.setPlayTimeInMinutes( boardGameDto1.playTimeInMinutes() );
        boardGame.setRecommendedAge( boardGameDto1.recommendedAge() );
        boardGame.setDescription( boardGameDto1.description() );

        return boardGame;
    }

    protected Set<BoardGame> boardGameDto1SetToBoardGameSet(Set<CategoryDto.BoardGameDto1> set) {