Skip to content

Commit df22b8a

Browse files
Bump the maven group with 2 updates (#184)
* Bump the maven group with 2 updates Bumps the maven group with 2 updates: net.revelc.code:revelc and [com.puppycrawl.tools:checkstyle](https://github.com/checkstyle/checkstyle). Updates `net.revelc.code:revelc` from 9 to 10 Updates `com.puppycrawl.tools:checkstyle` from 13.7.0 to 13.8.0 - [Release notes](https://github.com/checkstyle/checkstyle/releases) - [Commits](checkstyle/checkstyle@checkstyle-13.7.0...checkstyle-13.8.0) --- updated-dependencies: - dependency-name: net.revelc.code:revelc dependency-version: '10' dependency-type: direct:production update-type: version-update:semver-major dependency-group: maven - dependency-name: com.puppycrawl.tools:checkstyle dependency-version: 13.8.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: maven ... Signed-off-by: dependabot[bot] <support@github.com> * Fix build warnings --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Christopher Tubbs <ctubbsii@apache.org>
1 parent 9b1b629 commit df22b8a

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<parent>
2020
<groupId>net.revelc.code</groupId>
2121
<artifactId>revelc</artifactId>
22-
<version>9</version>
22+
<version>10</version>
2323
<relativePath />
2424
</parent>
2525
<artifactId>impsort-maven-plugin</artifactId>
@@ -106,7 +106,7 @@
106106
<dependency>
107107
<groupId>com.puppycrawl.tools</groupId>
108108
<artifactId>checkstyle</artifactId>
109-
<version>13.7.0</version>
109+
<version>13.8.0</version>
110110
</dependency>
111111
</dependencies>
112112
</plugin>

src/main/java/net/revelc/code/impsort/Import.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414

1515
package net.revelc.code.impsort;
1616

17-
import java.util.Objects;
17+
import static java.util.Objects.requireNonNull;
1818

19-
public class Import {
19+
public final class Import {
2020

2121
private final boolean isStatic;
2222
private final String imp;
@@ -27,9 +27,9 @@ public class Import {
2727
Import(final boolean isStatic, final String imp, final String prefix, final String suffix,
2828
final String eol) {
2929
this.isStatic = isStatic;
30-
this.imp = Objects.requireNonNull(imp);
31-
this.prefix = Objects.requireNonNull(prefix);
32-
this.suffix = Objects.requireNonNull(suffix);
30+
this.imp = requireNonNull(imp);
31+
this.prefix = requireNonNull(prefix);
32+
this.suffix = requireNonNull(suffix);
3333
this.eol = eol;
3434
}
3535

src/main/java/net/revelc/code/impsort/ex/ImpSortException.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public String toString() {
4040
}
4141

4242
private static final long serialVersionUID = 1L;
43-
private final Path path;
43+
private final String path;
4444
private final Reason reason;
4545

4646
/**
@@ -51,7 +51,7 @@ public String toString() {
5151
*/
5252
public ImpSortException(Path path, Reason reason) {
5353
super("file: " + path + "; reason: " + reason);
54-
this.path = path;
54+
this.path = path.toString();
5555
this.reason = reason;
5656
}
5757

@@ -61,7 +61,7 @@ public ImpSortException(Path path, Reason reason) {
6161
* @return the path
6262
*/
6363
public Path getPath() {
64-
return path;
64+
return Path.of(path);
6565
}
6666

6767
/**

0 commit comments

Comments
 (0)