CPD Results
The following document contains the results of PMD's CPD 5.3.5.
Duplications
File |
Line |
fr/paris/lutece/plugins/googleapi/modules/youtube/service/YouTubeHandler.java |
48 |
fr/paris/lutece/plugins/googleapi/service/FeedHandler.java |
85 |
public void startElement( String uri, String localName, String qName, Attributes attributes )
throws SAXException
{
if ( qName.equals( "title" ) && xmlTags.peek( ).equals( "entry" ) )
{
_bInsideEntryTitle = true;
_item = new Item( );
_listItems.add( _item );
}
else if ( qName.equals( "content" ) && xmlTags.peek( ).equals( "entry" ) )
{
_bInsideEntryContent = true;
}
else if ( qName.equals( "link" ) && xmlTags.peek( ).equals( "entry" ) )
{
if ( attributes.getValue( "rel" ).equals( "alternate" ) )
{
_item.setLink( attributes.getValue( "href" ) );
}
} |
File |
Line |
fr/paris/lutece/plugins/googleapi/web/GoogleApiApp.java |
92 |
fr/paris/lutece/plugins/googleapi/web/GoogleApiLinkServiceJspBean.java |
139 |
String strProvider = request.getParameter( PARAMETER_PROVIDER );
FeedProvider fp = FeedsService.getInstance( ).getProvider( strProvider );
List<Item> listItems = new ArrayList<Item>( );
if ( strQuery != null )
{
try
{
FeedsService.getInstance( ).getItems( strQuery, listItems, fp );
}
catch ( ParserConfigurationException e )
{
AppLogService.error( "Error retrieving items : " + e.getMessage( ), e );
}
catch ( SAXException e )
{
AppLogService.error( "Error retrieving items : " + e.getMessage( ), e );
}
catch ( IOException e )
{
AppLogService.error( "Error retrieving items : " + e.getMessage( ), e );
}
} |