Skip to content

Commit

Permalink
update protobuf engine to use buffered reader (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
bischoffz authored Jun 24, 2024
1 parent e38946e commit e48d073
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package gov.hhs.aspr.ms.taskit.protobuf;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileNotFoundException;
import java.io.FileReader;
Expand Down Expand Up @@ -372,7 +373,7 @@ protected <T, U> T readInput(Path path, Class<U> inputClassRef) throws IOExcepti
throw new ContractException(ProtobufCoreTranslationError.INVALID_READ_INPUT_CLASS_REF);
}

return parseJson(new FileReader(path.toFile()), inputClassRef.asSubclass(Message.class));
return parseJson(new BufferedReader(new FileReader(path.toFile())), inputClassRef.asSubclass(Message.class));
}

/**
Expand Down

0 comments on commit e48d073

Please sign in to comment.