We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3ab299 commit 129afd9Copy full SHA for 129afd9
impl/maven-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelCache.java
@@ -184,7 +184,7 @@ public int hashCode() {
184
}
185
186
static class CachingSupplier<T> implements Supplier<T> {
187
- final Supplier<T> supplier;
+ Supplier<T> supplier;
188
volatile Object value;
189
190
CachingSupplier(Supplier<T> supplier) {
@@ -200,6 +200,7 @@ public T get() {
200
if ((v = value) == null) {
201
try {
202
v = value = supplier.get();
203
+ supplier = null;
204
} catch (Exception e) {
205
v = value = new AltRes(e);
206
0 commit comments