We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 081813c commit 627a703Copy full SHA for 627a703
src/main/java/org/eolang/xax/XtSticky.java
@@ -82,6 +82,13 @@ public Collection<String> asserts() {
82
return this.through("asserts", this.origin::asserts);
83
}
84
85
+ /**
86
+ * Through the cache.
87
+ * @param method The method
88
+ * @param supplier The supplier
89
+ * @return The object calculated
90
+ * @param <T> Type of the object
91
+ */
92
@SuppressWarnings("unchecked")
93
private <T> T through(final String method, final Supplier<T> supplier) {
94
return (T) this.cache.computeIfAbsent(
0 commit comments