no message

This commit is contained in:
Bernaldo Mihasi 2023-03-27 15:25:19 +03:00
parent 18ccb3ca0c
commit 18a200f099
1 changed files with 0 additions and 29 deletions

View File

@ -37,7 +37,6 @@ public class DefaultConfigLoader implements ConfigLoader {
private static final ObjectMapper mapper = new ObjectMapper(); private static final ObjectMapper mapper = new ObjectMapper();
private ExternalUrls externalUrls; private ExternalUrls externalUrls;
private List<String> rdaProperties;
private List<Schematic> schematics; private List<Schematic> schematics;
private XWPFDocument document; private XWPFDocument document;
private XWPFDocument datasetDocument; private XWPFDocument datasetDocument;
@ -67,26 +66,6 @@ public class DefaultConfigLoader implements ConfigLoader {
} }
} }
private void setRdaProperties() {
String filePath = environment.getProperty("configuration.rda");
logger.info("Loaded also config file: " + filePath);
BufferedReader reader;
List<String> rdaList = new LinkedList<>();
try {
reader = new BufferedReader(new InputStreamReader(getStreamFromPath(filePath)));
String line = reader.readLine();
while (line != null) {
rdaList.add(line);
line = reader.readLine();
}
reader.close();
} catch (IOException | NullPointerException e) {
logger.error(e.getMessage(), e);
}
rdaProperties = rdaList;
}
private void setSchematics() { private void setSchematics() {
String filePath = environment.getProperty("configuration.schematics"); String filePath = environment.getProperty("configuration.schematics");
logger.info("Loaded also config file: " + filePath); logger.info("Loaded also config file: " + filePath);
@ -187,14 +166,6 @@ public class DefaultConfigLoader implements ConfigLoader {
return externalUrls; return externalUrls;
} }
public List<String> getRdaProperties() {
if (rdaProperties == null) {
rdaProperties = new ArrayList<>();
this.setRdaProperties();
}
return rdaProperties;
}
public List<Schematic> getSchematics() { public List<Schematic> getSchematics() {
if (schematics == null) { if (schematics == null) {
schematics = new ArrayList<>(); schematics = new ArrayList<>();