Skip to content

Commit 6531f34

Browse files
release: version 1.13.0 (#56)
* Update Gradle to v9.2.0 (#49) * Add a package-info file (#50) * Add a package-info file * Update not null annotation handling * Update dependency net.onelitefeather:mycelium-bom to v1.5.2 (#51) * Update Gradle to v9.2.1 (#52) * Update actions/checkout action to v6 * Update dependency net.onelitefeather:mycelium-bom to v1.5.3 (#54) * Bump patch version * Merge pull request #55 from OneLiteFeatherNET/renovate/bom * Update dependency net.onelitefeather:mycelium-bom to v1.6.0 * chore(version): update version to 1.13.0 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: theEvilReaper <theEvilReaper@users.noreply.github.com>
1 parent ded7ceb commit 6531f34

41 files changed

Lines changed: 137 additions & 144 deletions

Some content is hidden

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

.github/workflows/build-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
os: [ubuntu-latest, windows-latest, macos-latest]
1414
steps:
1515
- name: Checkout repository
16-
uses: actions/checkout@v5
16+
uses: actions/checkout@v6
1717
- name: Setup Java
1818
uses: actions/setup-java@v5
1919
with:

.github/workflows/main-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
os: [ubuntu-latest, windows-latest, macos-latest]
1919
steps:
2020
- name: Checkout Repository
21-
uses: actions/checkout@v5
21+
uses: actions/checkout@v6
2222
- name: Validate Gradle Wrapper
2323
uses: gradle/actions/wrapper-validation@v5
2424
- name: Setup Java

.github/workflows/publishing.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
ONELITEFEATHER_MAVEN_PASSWORD: ${{ secrets.ONELITEFEATHER_MAVEN_PASSWORD }}
1313
steps:
1414
- name: Checkout repository
15-
uses: actions/checkout@v5
15+
uses: actions/checkout@v6
1616

1717
- name: Set up JDK 25
1818
uses: actions/setup-java@v5

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
}
66

77
group = "net.theevilreaper"
8-
version = "1.12.0"
8+
version = "1.13.0"
99
description = "Aves"
1010

1111
java {

gradle/wrapper/gradle-wrapper.jar

176 Bytes
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-all.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ dependencyResolutionManagement {
2121
}
2222
versionCatalogs {
2323
create("libs") {
24-
version("bom", "1.5.0")
24+
version("bom", "1.6.0")
2525
library("mycelium.bom", "net.onelitefeather", "mycelium-bom").versionRef("bom")
2626
library("minestom","net.minestom", "minestom").withoutVersion()
2727
library("adventure", "net.kyori", "adventure-text-minimessage").withoutVersion()

src/main/java/net/theevilreaper/aves/file/FileHandler.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package net.theevilreaper.aves.file;
22

3-
import org.jetbrains.annotations.NotNull;
43
import org.slf4j.Logger;
54
import org.slf4j.LoggerFactory;
65

@@ -37,7 +36,7 @@ public interface FileHandler {
3736
* @param object The object to save
3837
* @param <T> A generic type for the object value
3938
*/
40-
<T> void save(@NotNull Path path, @NotNull T object);
39+
<T> void save(Path path, T object);
4140

4241
/**
4342
* Load a given file and parse to the give class.
@@ -47,5 +46,5 @@ public interface FileHandler {
4746
* @param <T> is generic type for the object value
4847
* @return a {@link Optional} with the object instance
4948
*/
50-
<T> Optional<T> load(@NotNull Path path, @NotNull Class<T> clazz);
49+
<T> Optional<T> load(Path path, Class<T> clazz);
5150
}

src/main/java/net/theevilreaper/aves/file/GsonFileHandler.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import com.google.gson.Gson;
44
import com.google.gson.reflect.TypeToken;
55
import net.minestom.server.utils.validate.Check;
6-
import org.jetbrains.annotations.NotNull;
76

87
import java.io.IOException;
98
import java.nio.file.Files;
@@ -33,7 +32,7 @@ public GsonFileHandler() {
3332
* Creates a new instance from the file handler.
3433
* @param gson the gson instance to deserialize or serialize data
3534
*/
36-
public GsonFileHandler(@NotNull Gson gson) {
35+
public GsonFileHandler(Gson gson) {
3736
this.gson = gson;
3837
}
3938

@@ -44,7 +43,7 @@ public GsonFileHandler(@NotNull Gson gson) {
4443
* @param <T> A generic type for the object value
4544
*/
4645
@Override
47-
public <T> void save(@NotNull Path path, @NotNull T object) {
46+
public <T> void save(Path path, T object) {
4847
Check.argCondition(Files.isDirectory(path), "Unable to save a directory. Please check the used path");
4948
try (var outputStream = Files.newBufferedWriter(path, UTF_8)) {
5049
if (!Files.exists(path)) {
@@ -65,7 +64,7 @@ public <T> void save(@NotNull Path path, @NotNull T object) {
6564
* @return a {@link Optional} with the object instance
6665
*/
6766
@Override
68-
public <T> Optional<T> load(@NotNull Path path, @NotNull Class<T> clazz) {
67+
public <T> Optional<T> load(Path path, Class<T> clazz) {
6968
Check.argCondition(Files.isDirectory(path), "Unable to load a directory. Please check the used path");
7069
if (!Files.exists(path)) {
7170
return Optional.empty();
Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package net.theevilreaper.aves.file;
22

33
import com.google.gson.reflect.TypeToken;
4-
import org.jetbrains.annotations.NotNull;
54
import org.slf4j.Logger;
65
import org.slf4j.LoggerFactory;
76

@@ -11,7 +10,8 @@
1110
import java.util.Optional;
1211

1312
/**
14-
* The class represents the base logic to load or save json files.
13+
* The class represents the base logic to load or save JSON files.
14+
*
1515
* @author theEvilReaper
1616
* @version 1.0.0
1717
* @since 1.9.0
@@ -24,19 +24,21 @@ public interface ModernFileHandler {
2424

2525
/**
2626
* Saves a given object into a file.
27-
* @param path The path where the file is located
28-
* @param object The object to save
27+
*
28+
* @param path The path where the file is located
29+
* @param object The object to save
2930
* @param typeToken the type token to serialize the object
30-
* @param <T> A generic type for the object value
31+
* @param <T> A generic type for the object value
3132
*/
32-
<T> void save(@NotNull Path path, @NotNull T object, @NotNull TypeToken<T> typeToken);
33+
<T> void save(Path path, T object, TypeToken<T> typeToken);
3334

3435
/**
3536
* Load a given file and parse to the give class.
36-
* @param path is the where the file is located
37+
*
38+
* @param path is the where the file is located
3739
* @param typeToken the type token to deserialize the object
38-
* @param <T> is generic type for the object value
40+
* @param <T> is generic type for the object value
3941
* @return a {@link Optional} with the object instance
4042
*/
41-
<T> Optional<T> load(@NotNull Path path, @NotNull TypeToken<T> typeToken);
43+
<T> Optional<T> load(Path path, TypeToken<T> typeToken);
4244
}

0 commit comments

Comments
 (0)