From 3ab7930af3cb09678bb71315f63db0999fe129b4 Mon Sep 17 00:00:00 2001 From: Nikita Koksharov Date: Mon, 12 Oct 2020 09:37:34 +0300 Subject: [PATCH] refactoring --- .../src/main/java/org/redisson/config/Config.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/redisson/src/main/java/org/redisson/config/Config.java b/redisson/src/main/java/org/redisson/config/Config.java index a117c785a..a759c811a 100644 --- a/redisson/src/main/java/org/redisson/config/Config.java +++ b/redisson/src/main/java/org/redisson/config/Config.java @@ -573,48 +573,48 @@ public class Config { @Deprecated public static Config fromJSON(String content) throws IOException { - log.error("Spring XML configuration is deprecated and will be removed in future!"); + log.error("JSON configuration is deprecated and will be removed in future!"); ConfigSupport support = new ConfigSupport(); return support.fromJSON(content, Config.class); } @Deprecated public static Config fromJSON(InputStream inputStream) throws IOException { - log.error("Spring XML configuration is deprecated and will be removed in future!"); + log.error("JSON configuration is deprecated and will be removed in future!"); ConfigSupport support = new ConfigSupport(); return support.fromJSON(inputStream, Config.class); } @Deprecated public static Config fromJSON(File file, ClassLoader classLoader) throws IOException { - log.error("Spring XML configuration is deprecated and will be removed in future!"); + log.error("JSON configuration is deprecated and will be removed in future!"); ConfigSupport support = new ConfigSupport(); return support.fromJSON(file, Config.class, classLoader); } @Deprecated public static Config fromJSON(File file) throws IOException { - log.error("Spring XML configuration is deprecated and will be removed in future!"); + log.error("JSON configuration is deprecated and will be removed in future!"); return fromJSON(file, null); } @Deprecated public static Config fromJSON(URL url) throws IOException { - log.error("Spring XML configuration is deprecated and will be removed in future!"); + log.error("JSON configuration is deprecated and will be removed in future!"); ConfigSupport support = new ConfigSupport(); return support.fromJSON(url, Config.class); } @Deprecated public static Config fromJSON(Reader reader) throws IOException { - log.error("Spring XML configuration is deprecated and will be removed in future!"); + log.error("JSON configuration is deprecated and will be removed in future!"); ConfigSupport support = new ConfigSupport(); return support.fromJSON(reader, Config.class); } @Deprecated public String toJSON() throws IOException { - log.error("Spring XML configuration is deprecated and will be removed in future!"); + log.error("JSON configuration is deprecated and will be removed in future!"); ConfigSupport support = new ConfigSupport(); return support.toJSON(this); } -- GitLab