Skip to content

Commit

Permalink
removing json factory (uneccessary) and bumping version
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryGeorgist committed Feb 23, 2023
1 parent e5bde35 commit 4c64705
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ publishing {
}

group 'mil.army.usace.hec'
version '0.0.17'
version '0.0.18'
}
6 changes: 1 addition & 5 deletions src/main/java/usace/wat/plugin/CcStoreS3.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
Expand All @@ -18,7 +17,6 @@
import com.amazonaws.auth.AWSCredentials;
import com.amazonaws.auth.AWSStaticCredentialsProvider;
import com.amazonaws.auth.BasicAWSCredentials;
import com.amazonaws.auth.SdkClock.Instance;
import com.amazonaws.client.builder.AwsClientBuilder;
import com.amazonaws.regions.Regions;
import com.amazonaws.services.s3.AmazonS3;
Expand All @@ -28,9 +26,7 @@
import com.amazonaws.services.s3.model.PutObjectRequest;
import com.amazonaws.services.s3.model.PutObjectResult;
import com.amazonaws.services.s3.model.S3Object;
import com.fasterxml.jackson.core.JsonFactory;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory;

public class CcStoreS3 implements CcStore {
String localRootPath;
Expand Down Expand Up @@ -200,7 +196,7 @@ private byte[] DownloadBytesFromS3(String key) throws Exception{
}
}
private Payload ReadJsonModelPayloadFromBytes(byte[] bytes) throws Exception {
final ObjectMapper mapper = new ObjectMapper(new JsonFactory()); // jackson databind
final ObjectMapper mapper = new ObjectMapper(); // jackson databind
try {
return mapper.readValue(bytes, Payload.class);
} catch (Exception e) {
Expand Down

0 comments on commit 4c64705

Please sign in to comment.