fix: Reduce High severity issues reported by SonarCloud #2865 (#3103)

* fix: add UnsupportedOperationException in KingsHand and GameLoopTest

* refactor: update DatabaseService to use constant for BINARY_DATA and remove obsolete test files

* refactor: update timePasses method in KingsHand

* refactor CandyGame.java

* refactor: simplify boundary checks in CandyGame

* feat: add getters for type and points in Candy class and initialize logger in CandyGame

* remove class and logger initialization in CandyGame

* Modify CandyGame.java

* fix Checkstyle violations

* Remove generic wildcard type in ThreatAwareSystem
This commit is contained in:
Salma
2024-12-07 20:31:59 +02:00
committed by GitHub
parent b375919db5
commit 297e429e5a
9 changed files with 29 additions and 21 deletions
@@ -24,10 +24,9 @@
*/
package com.iluwatar.gameloop;
import static org.junit.jupiter.api.Assertions.assertFalse;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Assertions;
import static org.junit.jupiter.api.Assertions.assertFalse;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
@@ -46,6 +45,7 @@ class GameLoopTest {
gameLoop = new GameLoop() {
@Override
protected void processGameLoop() {
throw new UnsupportedOperationException("Not supported yet.");
}
};
}