Skip to content
This repository has been archived by the owner on May 13, 2023. It is now read-only.

Commit

Permalink
Fully integrate new brachy changes for Slbrachyura API
Browse files Browse the repository at this point in the history
  • Loading branch information
Geolykt committed Sep 30, 2022
1 parent 1802eaf commit c7de1e0
Show file tree
Hide file tree
Showing 7 changed files with 97 additions and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ public void checkAccess(Path path, AccessMode... modes) throws IOException {

}

@SuppressWarnings("unchecked") // Slbrachyura: Make javac shut up about the JBR patch
@SuppressWarnings("all") // Slbrachyura: Make javac shut up about the JBR patch
@Override
public <V extends FileAttributeView> V getFileAttributeView(Path path, Class<V> type, LinkOption... options) {
if (type != BasicFileAttributeView.class) return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ protected MemoryUrlConnection(URL url) {
super(url);
}

@SuppressWarnings("resource")
@Override
public void connect() throws IOException {
if (!connected) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
import io.github.coolcrabs.brachyura.util.Lazy;

public abstract class SimpleJavaModule extends BuildModule {
public abstract Path[] getSrcDirs();
public abstract Path[] getResourceDirs();
public abstract @NotNull Path @NotNull[] getSrcDirs();
public abstract @NotNull Path @NotNull[] getResourceDirs();

public final Lazy<@NotNull List<JavaJarDependency>> dependencies = new Lazy<>(this::createDependencies);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ public int getJavaVersion() {

@NotNull
@Override
public Path[] getSrcDirs() {
public Path @NotNull[] getSrcDirs() {
return new @NotNull Path[]{getModuleRoot().resolve("src").resolve("main").resolve("java")};
}

@NotNull
@Override
public Path[] getResourceDirs() {
public Path @NotNull[] getResourceDirs() {
return new @NotNull Path[]{getProjectDir().resolve("src").resolve("main").resolve("resources")};
}

Expand Down
Loading

0 comments on commit c7de1e0

Please sign in to comment.