Skip to content

Commit f2d85f0

Browse files
authored
Add missing JSpecify @nullable (#179)
1 parent b664fa5 commit f2d85f0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

avaje-config/src/main/java/io/avaje/config/InitialLoadContext.java

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package io.avaje.config;
22

33
import io.avaje.config.CoreEntry.CoreMap;
4+
import org.jspecify.annotations.Nullable;
45

56
import java.io.*;
67
import java.lang.System.Logger.Level;
@@ -81,6 +82,7 @@ static String podService(String podName) {
8182
/**
8283
* Return the input stream (maybe null) for the given source.
8384
*/
85+
@Nullable
8486
InputStream resource(String resourcePath, InitialLoader.Source source) {
8587
InputStream is = null;
8688
if (source == InitialLoader.Source.RESOURCE) {

avaje-config/src/main/java/io/avaje/config/InitialLoader.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,7 @@ private void loadViaIndirection() {
197197
}
198198
}
199199

200-
@Nullable
201-
private String[] profiles() {
200+
private String@Nullable[] profiles() {
202201
final String paths = loadContext.profiles();
203202
return paths == null ? null : splitPaths(paths);
204203
}
@@ -321,6 +320,7 @@ boolean loadProperties(String resourcePath, Source source) {
321320
return false;
322321
}
323322

323+
@Nullable
324324
private InputStream resource(String resourcePath, Source source) {
325325
return loadContext.resource(resourcePath, source);
326326
}

0 commit comments

Comments
 (0)