提交 3ab7930a 编写于 作者: N Nikita Koksharov

refactoring

上级 adf89903
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册