Remove dependency on newer commons-compress field to allow android to

work
This commit is contained in:
James Agnew 2019-09-22 15:53:29 -04:00
parent 283b48fdde
commit 28f9c55463
2 changed files with 10 additions and 3 deletions

View File

@ -34,7 +34,7 @@ import java.util.List;
import java.util.Map;
import java.util.Set;
import org.apache.commons.codec.Charsets;
import ca.uhn.fhir.rest.api.Constants;
import org.hl7.fhir.dstu3.formats.IParser.OutputStyle;
import org.hl7.fhir.dstu3.formats.JsonParser;
import org.hl7.fhir.dstu3.model.BooleanType;
@ -349,7 +349,7 @@ public abstract class BaseWorkerContext implements IWorkerContext {
ByteArrayOutputStream b = new ByteArrayOutputStream();
parser.compose(b, vsid);
b.close();
String s = new String(b.toByteArray(), Charsets.UTF_8);
String s = new String(b.toByteArray(), Constants.CHARSET_UTF8);
// any code systems we can find, we add these too.
for (ConceptSetComponent inc : vs.getCompose().getInclude()) {
CodeSystem cs = fetchCodeSystem(inc.getSystem());
@ -378,7 +378,7 @@ public abstract class BaseWorkerContext implements IWorkerContext {
ByteArrayOutputStream b = new ByteArrayOutputStream();
parser.compose(b, csid);
b.close();
return new String(b.toByteArray(), Charsets.UTF_8);
return new String(b.toByteArray(), Constants.CHARSET_UTF8);
}

View File

@ -272,6 +272,13 @@
<maxmem>4000m</maxmem>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<configuration>
<skipUpdateLicense>true</skipUpdateLicense>
</configuration>
</plugin>
</plugins>
</build>