Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Revert "[JENKINS-14509] Added debugging of exception to module name o…
…f bug."

This reverts commit bc7267d.
  • Loading branch information
uhafner committed Jul 24, 2012
1 parent bc7267d commit c2d0b6d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/hudson/plugins/pmd/parser/PmdParser.java
Expand Up @@ -9,7 +9,6 @@
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

import org.apache.commons.digester.Digester;
import org.apache.commons.lang.StringUtils;
Expand Down Expand Up @@ -93,7 +92,7 @@ public Collection<FileAnnotation> parse(final InputStream file, final String mod
* @return a maven module of the annotations API
*/
private Collection<FileAnnotation> convert(final Pmd collection, final String moduleName) {
List<FileAnnotation> annotations = new ArrayList<FileAnnotation>();
ArrayList<FileAnnotation> annotations = new ArrayList<FileAnnotation>();

for (hudson.plugins.pmd.parser.File file : collection.getFiles()) {
for (Violation warning : file.getViolations()) {
Expand All @@ -118,7 +117,7 @@ else if (warning.getPriority() > PMD_PRIORITY_MAPPED_TO_LOW_PRIORITY) {
bug.setContextHashCode(createContextHashCode(file.getName(), warning.getBeginline()));
}
catch (IOException exception) {
bug.setModuleName(exception.getLocalizedMessage());
// ignore and continue
}

annotations.add(bug);
Expand Down

0 comments on commit c2d0b6d

Please sign in to comment.