From b5b8b27676f64c55492c682422277eb03fbcb790 Mon Sep 17 00:00:00 2001 From: "Florian (Feuermagier)" Date: Thu, 14 Nov 2024 09:32:38 +0100 Subject: [PATCH] fix --- .../sdq/artemis4j/grading/penalty/StackingPenaltyRule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/edu/kit/kastel/sdq/artemis4j/grading/penalty/StackingPenaltyRule.java b/src/main/java/edu/kit/kastel/sdq/artemis4j/grading/penalty/StackingPenaltyRule.java index 86d1160..51a2399 100644 --- a/src/main/java/edu/kit/kastel/sdq/artemis4j/grading/penalty/StackingPenaltyRule.java +++ b/src/main/java/edu/kit/kastel/sdq/artemis4j/grading/penalty/StackingPenaltyRule.java @@ -23,6 +23,6 @@ public StackingPenaltyRule( public Points calculatePoints(List annotations) { int multiplier = this.maxUses == null ? annotations.size() : Math.min(annotations.size(), this.maxUses); double penaltyPoints = multiplier * -this.penalty; - return new Points(penaltyPoints, this.maxUses != null && annotations.size() >= this.maxUses); + return new Points(penaltyPoints, this.maxUses != null && annotations.size() > this.maxUses); } }