The following document contains the results of PMD's CPD 6.13.0.
File | Line |
---|---|
fr/paris/lutece/plugins/newsletter/modules/document/business/NewsletterDocumentDAO.java | 243 |
fr/paris/lutece/plugins/newsletter/modules/document/business/NewsletterDocumentDAO.java | 302 |
DAOUtil daoUtil = new DAOUtil( SQL_QUERY_SELECT_NEWSLETTER_CATEGORY_IDS, plugin ); daoUtil.setInt( 1, nTopicId ); daoUtil.executeQuery( ); List<Integer> list = new ArrayList<Integer>( ); while ( daoUtil.next( ) ) { int nResultId = daoUtil.getInt( 1 ); list.add( Integer.valueOf( nResultId ) ); } int[] nIdsArray = new int[list.size( )]; for ( int i = 0; i < list.size( ); i++ ) { Integer nId = list.get( i ); nIdsArray[i] = nId.intValue( ); } daoUtil.free( ); return nIdsArray; } /** * {@inheritDoc} */ @Override public void associateNewsLetterDocumentPortlet( int nTopicId, int nPortletId, Plugin plugin ) |