Decrease priority counts when removing issues.
@@ -65,6 +65,8 @@ public class Issues implements Iterable<Issue> {
public Issue remove(final UUID id) {
for (int i = 0; i < elements.size(); i++) {
if (elements.get(i).getId().equals(id)) {
+ Issue issue = elements.get(i);
+ sizeOfPriority[issue.getPriority().ordinal()]--;
return elements.remove(i);
}
}
