Skip to content

Commit

Permalink
fix: suppressed replace lambda with method reference warning in Micro…
Browse files Browse the repository at this point in the history
…nautGenerator

Signed-off-by: Marc Nuri <marc@marcnuri.com>
  • Loading branch information
manusa committed Dec 27, 2024
1 parent 63c60db commit 4724ca0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ public boolean isApplicable(List<ImageConfiguration> configs) {

@Override
protected Map<String, String> getEnv(boolean prePackagePhase) {
return nestedGenerator.getEnv(super::getEnv, prePackagePhase);
//TODO: Java8 compatibility, remove warning. Remove annotation once baseline is set to Java11+
//noinspection Convert2MethodRef
return nestedGenerator.getEnv(ppp -> super.getEnv(ppp), prePackagePhase);
}

@Override
Expand Down

0 comments on commit 4724ca0

Please sign in to comment.