CPD Results
The following document contains the results of PMD's CPD 6.13.0.
Duplications
File |
Line |
fr/paris/lutece/plugins/wiki/business/TopicVersionDAO.java |
269 |
fr/paris/lutece/plugins/wiki/business/TopicVersionDAO.java |
291 |
try( DAOUtil daoUtil = new DAOUtil( SQL_QUERY_INSERT_MODIFICATION, plugin ) )
{
topicVersion.setIdTopicVersion( newPrimaryKey( plugin ) );
daoUtil.setInt( 1, topicVersion.getIdTopicVersion( ) );
daoUtil.setString( 2, topicVersion.getEditComment( ) );
daoUtil.setInt( 3, topicVersion.getIdTopic( ) );
daoUtil.setString( 4, topicVersion.getUserName( ) );
daoUtil.setTimestamp( 5, new java.sql.Timestamp( new java.util.Date( ).getTime( ) ) );
daoUtil.setInt( 6, topicVersion.getIdTopicVersionPrevious( ) );
daoUtil.setBoolean(7, topicVersion.getIsPublished());
daoUtil.executeUpdate( );
}
storeContent( topicVersion );
} |
File |
Line |
fr/paris/lutece/plugins/wiki/business/ImageDAO.java |
216 |
fr/paris/lutece/plugins/wiki/business/ImageDAO.java |
250 |
daoUtil.executeQuery( );
int nPos;
while ( daoUtil.next( ) )
{
nPos = 0;
image = new Image( );
image.setId( daoUtil.getInt( ++nPos ) );
image.setName( daoUtil.getString( ++nPos ) );
image.setMimeType( daoUtil.getString( ++nPos ) );
image.setTopicId( daoUtil.getInt( ++nPos ) );
image.setWidth( daoUtil.getInt( ++nPos ) );
image.setHeight( daoUtil.getInt( ++nPos ) );
listImage.add( image );
}
}
return listImage;
} |