Skip to content

Commit 971037f

Browse files
author
zihluwang
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
*

0 commit comments

Comments
 (0)