Skip to content

Commit 971037f

Browse files
committed
chore: removed lombok and upgraded copyright
1 parent f771b1a commit 971037f

File tree

48 files changed

+220
-507
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+220
-507
lines changed

build.gradle.kts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,12 @@ subprojects {
4343

4444
dependencies {
4545
compileOnly("org.slf4j:slf4j-api:$slf4jVersion")
46-
compileOnly("org.projectlombok:lombok:$lombokVersion")
4746
implementation("ch.qos.logback:logback-classic:$logbackVersion")
4847
annotationProcessor("org.slf4j:slf4j-api:$slf4jVersion")
49-
annotationProcessor("org.projectlombok:lombok:$lombokVersion")
5048

5149
testCompileOnly("org.slf4j:slf4j-api:$slf4jVersion")
52-
testCompileOnly("org.projectlombok:lombok:$lombokVersion")
5350
testImplementation("org.junit.jupiter:junit-jupiter:$junitVersion")
5451
testAnnotationProcessor("org.slf4j:slf4j-api:$slf4jVersion")
55-
testAnnotationProcessor("org.projectlombok:lombok:$lombokVersion")
5652
}
5753

5854
tasks.withType<JavaCompile> {

devkit-core/src/main/java/com/onixbyte/devkit/core/exceptions/package-info.java

Lines changed: 0 additions & 23 deletions
This file was deleted.

devkit-core/src/main/java/com/onixbyte/devkit/core/package-info.java

Lines changed: 0 additions & 29 deletions
This file was deleted.

devkit-core/src/main/java/com/onixbyte/devkit/package-info.java

Lines changed: 0 additions & 27 deletions
This file was deleted.

devkit-utils/src/main/java/com/onixbyte/devkit/utils/AesUtil.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717

1818
package com.onixbyte.devkit.utils;
1919

20-
import lombok.extern.slf4j.Slf4j;
20+
import org.slf4j.Logger;
21+
import org.slf4j.LoggerFactory;
2122

2223
import javax.crypto.BadPaddingException;
2324
import javax.crypto.Cipher;
@@ -68,9 +69,10 @@
6869
* @version 1.1.0
6970
* @since 1.1.0
7071
*/
71-
@Slf4j
7272
public final class AesUtil {
7373

74+
private final static Logger log = LoggerFactory.getLogger(AesUtil.class);
75+
7476
/**
7577
* Encrypts the data using the AES algorithm with the given secret.
7678
*

devkit-utils/src/main/java/com/onixbyte/devkit/utils/Base64Util.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717

1818
package com.onixbyte.devkit.utils;
1919

20+
import org.slf4j.Logger;
21+
import org.slf4j.LoggerFactory;
22+
2023
import java.nio.charset.Charset;
2124
import java.nio.charset.StandardCharsets;
2225
import java.util.Base64;
@@ -55,6 +58,8 @@
5558
*/
5659
public final class Base64Util {
5760

61+
private final static Logger log = LoggerFactory.getLogger(Base64Util.class);
62+
5863
/**
5964
* Ensure that there is only one Base64 Encoder.
6065
*

devkit-utils/src/main/java/com/onixbyte/devkit/utils/BoolUtil.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717

1818
package com.onixbyte.devkit.utils;
1919

20+
import org.slf4j.Logger;
21+
import org.slf4j.LoggerFactory;
22+
2023
import java.util.Arrays;
2124
import java.util.Objects;
2225
import java.util.function.BooleanSupplier;
@@ -44,6 +47,8 @@
4447
*/
4548
public final class BoolUtil {
4649

50+
private final static Logger log = LoggerFactory.getLogger(BoolUtil.class);
51+
4752
/**
4853
* Logical and calculation.
4954
*

devkit-utils/src/main/java/com/onixbyte/devkit/utils/BranchUtil.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717

1818
package com.onixbyte.devkit.utils;
1919

20+
import org.slf4j.Logger;
21+
import org.slf4j.LoggerFactory;
22+
2023
import java.util.Objects;
2124
import java.util.function.BooleanSupplier;
2225
import java.util.function.Supplier;
@@ -73,6 +76,8 @@
7376
*/
7477
public final class BranchUtil<T> {
7578

79+
private final static Logger log = LoggerFactory.getLogger(BranchUtil.class);
80+
7681
/**
7782
* Create a {@code BranchUtil} instance.
7883
*

devkit-utils/src/main/java/com/onixbyte/devkit/utils/HashUtil.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717

1818
package com.onixbyte.devkit.utils;
1919

20+
import org.slf4j.Logger;
21+
import org.slf4j.LoggerFactory;
22+
2023
import java.nio.charset.Charset;
2124
import java.nio.charset.StandardCharsets;
2225
import java.security.MessageDigest;
@@ -67,6 +70,8 @@
6770
*/
6871
public final class HashUtil {
6972

73+
private final static Logger log = LoggerFactory.getLogger(HashUtil.class);
74+
7075
/**
7176
* Calculates the MD2 hash value of the specified string using the given charset.
7277
*

devkit-utils/src/main/java/com/onixbyte/devkit/utils/MapUtil.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,17 @@
1717

1818
package com.onixbyte.devkit.utils;
1919

20-
import lombok.extern.slf4j.Slf4j;
20+
import org.slf4j.Logger;
21+
import org.slf4j.LoggerFactory;
2122

22-
import java.util.HashMap;
2323
import java.util.Map;
24-
import java.util.Optional;
2524

2625
/**
2726
* The {@link MapUtil} class provides utility methods for converting between objects and maps.
2827
* This class leverages the {@link ObjectMapAdapter} interface to perform the conversions.
2928
* <p>
30-
* The utility methods in this class are useful for scenarios where objects need to be represented as maps for
31-
* serialization, deserialization, or other purposes.
29+
* The utility methods in this class are useful for scenarios where objects need to be represented
30+
* as maps for serialization, deserialization, or other purposes.
3231
* </p>
3332
*
3433
* <p><b>Example usage:</b></p>
@@ -84,9 +83,10 @@
8483
* @version 1.7.0
8584
* @since 1.0.0
8685
*/
87-
@Slf4j
8886
public final class MapUtil {
8987

88+
private final static Logger log = LoggerFactory.getLogger(MapUtil.class);
89+
9090
/**
9191
* Converts an object to a map by mapping the field names to their corresponding values.
9292
*

devkit-utils/src/main/java/com/onixbyte/devkit/utils/ObjectMapAdapter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
* This interface is useful for scenarios where objects need to be represented as maps for
2525
* serialization, deserialization, or other purposes.
2626
*
27-
* <p>Implementations of this interface should provide the logic to convert an object of type {@code T}
28-
* to a {@link Map} and vice versa.</p>
27+
* <p>Implementations of this interface should provide the logic to convert an object of type
28+
* {@code T} to a {@link Map} and vice versa.</p>
2929
*
3030
* <p><b>Example usage:</b></p>
3131
* <pre>

devkit-utils/src/main/java/com/onixbyte/devkit/utils/RangeUtil.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717

1818
package com.onixbyte.devkit.utils;
1919

20+
import org.slf4j.Logger;
21+
import org.slf4j.LoggerFactory;
22+
2023
import java.util.stream.IntStream;
2124

2225
/**
@@ -31,6 +34,8 @@
3134
*/
3235
public final class RangeUtil {
3336

37+
private final static Logger log = LoggerFactory.getLogger(RangeUtil.class);
38+
3439
/**
3540
* Private constructor prevent class being instantiated.
3641
*/

devkit-utils/src/main/java/com/onixbyte/devkit/utils/package-info.java

Lines changed: 0 additions & 27 deletions
This file was deleted.

guid/src/main/java/com/onixbyte/guid/GuidCreator.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@
2525
* </p>
2626
*
2727
* <p><b>Example usage:</b></p>
28-
* <pre>
29-
* {@code
28+
* <pre>{@code
3029
* public class StringGuidCreator implements GuidCreator<String> {
3130
* private final AtomicLong counter = new AtomicLong();
3231
*
@@ -43,8 +42,7 @@
4342
* System.out.println("Generated GUID: " + guid);
4443
* }
4544
* }
46-
* }
47-
* </pre>
45+
* }</pre>
4846
*
4947
* @param <IdType> this represents the type of the Global Unique Identifier
5048
* @author Zihlu Wang

guid/src/main/java/com/onixbyte/guid/exceptions/package-info.java

Lines changed: 0 additions & 39 deletions
This file was deleted.

guid/src/main/java/com/onixbyte/guid/impl/SnowflakeGuidCreator.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
import com.onixbyte.guid.GuidCreator;
2121
import com.onixbyte.guid.exceptions.TimingException;
22+
import org.slf4j.Logger;
23+
import org.slf4j.LoggerFactory;
2224

2325
import java.time.LocalDateTime;
2426
import java.time.ZoneId;
@@ -47,6 +49,8 @@
4749
*/
4850
public final class SnowflakeGuidCreator implements GuidCreator<Long> {
4951

52+
private final static Logger log = LoggerFactory.getLogger(SnowflakeGuidCreator.class);
53+
5054
/**
5155
* Constructs a SnowflakeGuidGenerator with the default start epoch and custom worker ID, data
5256
* centre ID.

0 commit comments

Comments
 (0)