📍Use lombok, reformat, and optimize the code (#1560)

* Use lombok, reformat, and optimize the code

* Fix merge conflicts and some sonar issues

Co-authored-by: va1m <va1m@email.com>
This commit is contained in:
va1mandva1m authored and GitHub committed 2021-03-13 14:19:21 +02:00
1 parent 0e26a6adb5
commit 5cf2fe009b
681 files changed
+2472 -4966

No files matched your search

@@ -33,17 +33,17 @@ import org.junit.jupiter.api.Test;
/**
* Unit test for HeroStat.
*/
public class HeroStatTest {
class HeroStatTest {
/**
* Tester for equals() and hashCode() methods of a class. Using guava's EqualsTester.
*
* @see <a href="http://static.javadoc.io/com.google.guava/guava-testlib/19.0/com/google/common/testing/EqualsTester.html">
* http://static.javadoc.io/com.google.guava/guava-testlib/19.0/com/google/common/testing/EqualsTester.html
* </a>
* http://static.javadoc.io/com.google.guava/guava-testlib/19.0/com/google/common/testing/EqualsTester.html
* </a>
*/
@Test
public void testEquals() {
void testEquals() {
var heroStatA = HeroStat.valueOf(3, 9, 2);
var heroStatB = HeroStat.valueOf(3, 9, 2);
new EqualsTester().addEqualityGroup(heroStatA, heroStatB).testEquals();
@@ -54,7 +54,7 @@ public class HeroStatTest {
* different.
*/
@Test
public void testToString() {
void testToString() {
var heroStatA = HeroStat.valueOf(3, 9, 2);
var heroStatB = HeroStat.valueOf(3, 9, 2);
var heroStatC = HeroStat.valueOf(3, 9, 8);