Sonar: [squid:S1118] Utility classes should not have public constructors
This commit is contained in:
@@ -1,8 +1,11 @@
|
|||||||
package mc.core.utils;
|
package mc.core.utils;
|
||||||
|
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
@Slf4j
|
@Slf4j
|
||||||
|
@NoArgsConstructor(access = AccessLevel.PRIVATE)
|
||||||
public class CompactedCoords {
|
public class CompactedCoords {
|
||||||
public static int compressXZ(int x, int z) {
|
public static int compressXZ(int x, int z) {
|
||||||
if (x < Short.MIN_VALUE || x > Short.MAX_VALUE ||
|
if (x < Short.MIN_VALUE || x > Short.MAX_VALUE ||
|
||||||
|
|||||||
Reference in New Issue
Block a user