Removed fixme

This commit is contained in:
Nick Goupinets 2021-03-09 10:59:28 -05:00
parent 340341b3a4
commit 6b387fa0a9
1 changed files with 4 additions and 9 deletions

View File

@ -2,26 +2,21 @@ package ca.uhn.fhir.rest.server.interceptor;
import ca.uhn.fhir.util.ClasspathUtil; import ca.uhn.fhir.util.ClasspathUtil;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.commons.io.IOUtils;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.util.ResourceUtils;
import java.io.File;
import java.io.FileReader;
import java.io.IOException; import java.io.IOException;
import java.io.StringReader; import java.io.StringReader;
import java.net.URL;
import java.util.Properties; import java.util.Properties;
public class ConfigLoader { public class ConfigLoader {
private static final Logger ourLog = LoggerFactory.getLogger(ConfigLoader.class); private static final Logger ourLog = LoggerFactory.getLogger(ConfigLoader.class);
public static final String CLASSPATH_PREFIX = "classpath:"; public static final String CLASSPATH = "classpath:";
public static String loadResourceContent(String theResourcePath) { public static String loadResourceContent(String theResourcePath) {
if(theResourcePath.startsWith(CLASSPATH_PREFIX)) { if(theResourcePath.startsWith(CLASSPATH)) {
theResourcePath = theResourcePath.substring(CLASSPATH_PREFIX.length()); theResourcePath = theResourcePath.substring(CLASSPATH.length());
} }
return ClasspathUtil.loadResource(theResourcePath); return ClasspathUtil.loadResource(theResourcePath);