Le document suivant contient les résultats de l'inspection CPD CPD 5.3.5.
Fichier | Ligne |
---|---|
fr/paris/lutece/plugins/sponsoredlinks/web/SponsoredLinksJspBean.java | 331 |
fr/paris/lutece/plugins/sponsoredlinks/web/SponsoredLinksJspBean.java | 459 |
int nGroupId = Integer.parseInt( strGroupId ); SponsoredLinkSet set = new SponsoredLinkSet( ); List<SponsoredLink> linkList = new ArrayList<SponsoredLink>( ); SponsoredLink currentLink; for ( int i = strArrayLinks.length - 1; i >= 0; --i ) { if ( !strArrayLinks[i].trim( ).equals( "\u00A0" ) ) { currentLink = new SponsoredLink( ); currentLink.setOrder( i + 1 ); currentLink.setLink( strArrayLinks[i] ); if ( currentLink.isValidLink( ) ) { linkList.add( currentLink ); } else { AppLogService.error( new InvalidParameterException( "In SponsoredLinkSet \"" + strTitle + "\" : " + " SponsoredLink[" + currentLink.getOrder( ) + "] - " + currentLink.getLink( ) + "> : is not a valid html link" ) ); } } } set.setTitle( strTitle ); |