Fixed test, fixed some code warnings

This commit is contained in:
Oleg Agafonov 2023-02-25 15:21:48 +04:00
parent 5c30467c48
commit e8ffe90d41
10 changed files with 21 additions and 20 deletions

View file

@ -103,7 +103,7 @@ public abstract class TargetImpl implements Target {
StringBuilder sb = new StringBuilder();
int min = getMinNumberOfTargets();
int max = getMaxNumberOfTargets();
if (min != 1 || max != 1) {
if (!getTargetName().startsWith("X") && (min != 1 || max != 1)) {
if (min < max && max != Integer.MAX_VALUE) {
if (min == 1 && max == 2) {
sb.append("one or ");