Skip to content

Commit 44b6464

Browse files
committed
Ooops forgot static
1 parent 84bda82 commit 44b6464

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ allprojects {
2121

2222
// Using Jitpack so I need the repo name in the group to match.
2323
group = 'com.stubbornjava.StubbornJava'
24-
version = '0.1.28-SNAPSHOT'
24+
version = '0.1.29-SNAPSHOT'
2525

2626
repositories {
2727
mavenLocal()

stubbornjava-common/src/main/java/com/stubbornjava/common/Configs.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ public static Map<String, Object> asMap(Config config) {
4545
.toMap(e -> e.getKey(), e -> e.getValue().unwrapped());
4646
}
4747

48-
public <T> T getOrDefault(Config config, String path, Function<Config, T> extractor, T defaultValue) {
48+
public static <T> T getOrDefault(Config config, String path, Function<Config, T> extractor, T defaultValue) {
4949
if (config.hasPath(path)) {
5050
return extractor.apply(config);
5151
}
5252
return defaultValue;
5353
}
5454

55-
public <T> T getOrDefault(Config config, String path, Function<Config, T> extractor, Supplier<T> defaultSupplier) {
55+
public static <T> T getOrDefault(Config config, String path, Function<Config, T> extractor, Supplier<T> defaultSupplier) {
5656
if (config.hasPath(path)) {
5757
return extractor.apply(config);
5858
}

0 commit comments

Comments
 (0)