Skip to content

Commit 61d0290

Browse files
committed
1.56
1 parent b1bb5ff commit 61d0290

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package dev.felnull.fnjl;
22

33
public class FNJLBuildIn {
4-
protected static final String VERSION = "1.55";
4+
protected static final String VERSION = "1.56";
55
}

common/src/main/java/dev/felnull/fnjl/util/FNDataUtil.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,9 @@ public static <T, M> Function<T, M> memoize(final Function<T, M> function) {
408408

409409
@Override
410410
public M apply(T t) {
411-
return cache.computeIfAbsent(t, function);
411+
synchronized (cache) {
412+
return cache.computeIfAbsent(t, function);
413+
}
412414
}
413415
};
414416
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
fnjl_group=dev.felnull
22
fnjl_name=felnull-java-library
3-
fnjl_version=1.55
3+
fnjl_version=1.56
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package dev.felnull.fnjln;
22

33
public class FNJLNBuildIn {
4-
protected static final String VERSION = "1.55";
4+
protected static final String VERSION = "1.56";
55

66
protected static final int NATIVE_LIBRARY_VERSION = 1;
77
}

0 commit comments

Comments
 (0)