From 5fd6d66ef5ff4681037406ebcce183994c9c768d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20K=C4=99dziora?= <77227023+Jakubk15@users.noreply.github.com> Date: Fri, 10 Jan 2025 21:47:11 +0100 Subject: [PATCH] Do not wrap Supplier in another Supplier Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- .../eternalcode/core/injector/bean/LazyFieldBeanCandidate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eternalcore-core/src/main/java/com/eternalcode/core/injector/bean/LazyFieldBeanCandidate.java b/eternalcore-core/src/main/java/com/eternalcode/core/injector/bean/LazyFieldBeanCandidate.java index 810087ee7..988c8eeed 100644 --- a/eternalcore-core/src/main/java/com/eternalcode/core/injector/bean/LazyFieldBeanCandidate.java +++ b/eternalcore-core/src/main/java/com/eternalcode/core/injector/bean/LazyFieldBeanCandidate.java @@ -23,7 +23,7 @@ public LazyFieldBeanCandidate(Supplier instance, Field field, Bean bean) } }); this.field = field; - this.instance = () -> instance; + this.instance = instance; this.instanceType = field.getType(); }