Fork me on GitHub

CPD Results

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

Duplications

File Line
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 );