code cleanup

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6904 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Xavier Le Vourch
2009-03-28 23:15:12 +00:00
parent 139871ffb5
commit 5a4ee14831

View File

@ -469,16 +469,16 @@ public class BaseVisitor {
attributeNames.add(IMarker.PRIORITY);
values.add(Integer.valueOf(IMarker.PRIORITY_HIGH));
attributeNames.add(IMarker.SEVERITY);
values.add(new Integer(projectProperties.violationsAsErrors()?IMarker.SEVERITY_ERROR:IMarker.SEVERITY_WARNING));
values.add(Integer.valueOf(projectProperties.violationsAsErrors()?IMarker.SEVERITY_ERROR:IMarker.SEVERITY_WARNING));
break;
case 2:
attributeNames.add(IMarker.SEVERITY);
if (projectProperties.violationsAsErrors()) {
values.add(new Integer(IMarker.SEVERITY_ERROR));
values.add(Integer.valueOf(IMarker.SEVERITY_ERROR));
} else {
values.add(new Integer(IMarker.SEVERITY_WARNING));
values.add(Integer.valueOf(IMarker.SEVERITY_WARNING));
attributeNames.add(IMarker.PRIORITY);
values.add(new Integer(IMarker.PRIORITY_HIGH));
values.add(Integer.valueOf(IMarker.PRIORITY_HIGH));
}
break;