From 2da514f0a55627241689ae5a67c5c10d765c2436 Mon Sep 17 00:00:00 2001 From: Andrei Arlou Date: Tue, 24 Dec 2024 16:57:52 +0200 Subject: [PATCH] 4.x: Remove unused method ConfigMapperManager.mapper --- .../java/io/helidon/config/ConfigMapperManager.java | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/config/config/src/main/java/io/helidon/config/ConfigMapperManager.java b/config/config/src/main/java/io/helidon/config/ConfigMapperManager.java index 9098f01a578..035e98bcfb7 100644 --- a/config/config/src/main/java/io/helidon/config/ConfigMapperManager.java +++ b/config/config/src/main/java/io/helidon/config/ConfigMapperManager.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, 2023 Oracle and/or its affiliates. + * Copyright (c) 2017, 2025 Oracle and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -96,16 +96,6 @@ public T map(String value, GenericType type, String key) throws MissingVa return map(simpleConfig(key, value), type); } - @SuppressWarnings("unchecked") - Optional> mapper(GenericType type) { - Mapper mapper = (Mapper) mappers.get(type); - if (null == mapper) { - return mapperProviders.findMapper(type, Config.Key.create("")); - } else { - return Optional.of(mapper); - } - } - private Mapper findMapper(GenericType type, Config.Key key) { return mapperProviders.findMapper(type, key) .orElseGet(() -> noMapper(type));