code cleanup
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6904 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -469,16 +469,16 @@ public class BaseVisitor {
|
|||||||
attributeNames.add(IMarker.PRIORITY);
|
attributeNames.add(IMarker.PRIORITY);
|
||||||
values.add(Integer.valueOf(IMarker.PRIORITY_HIGH));
|
values.add(Integer.valueOf(IMarker.PRIORITY_HIGH));
|
||||||
attributeNames.add(IMarker.SEVERITY);
|
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;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
attributeNames.add(IMarker.SEVERITY);
|
attributeNames.add(IMarker.SEVERITY);
|
||||||
if (projectProperties.violationsAsErrors()) {
|
if (projectProperties.violationsAsErrors()) {
|
||||||
values.add(new Integer(IMarker.SEVERITY_ERROR));
|
values.add(Integer.valueOf(IMarker.SEVERITY_ERROR));
|
||||||
} else {
|
} else {
|
||||||
values.add(new Integer(IMarker.SEVERITY_WARNING));
|
values.add(Integer.valueOf(IMarker.SEVERITY_WARNING));
|
||||||
attributeNames.add(IMarker.PRIORITY);
|
attributeNames.add(IMarker.PRIORITY);
|
||||||
values.add(new Integer(IMarker.PRIORITY_HIGH));
|
values.add(Integer.valueOf(IMarker.PRIORITY_HIGH));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user