Skip to content

Commit

Permalink
errorprone :: ignore warnings in UnixCommandPlace
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-mlb committed Oct 1, 2024
1 parent 5a40726 commit 856f23a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/emissary/place/UnixCommandPlace.java
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ protected void logMessages(String tempDir) {
* Run the file process
*/
@Nullable
@SuppressWarnings("AvoidObjectArrays")
public byte[] fileProcess(String[] cmd, String outputFile) {
logger.debug("fileProcess({})", Arrays.asList(cmd));
StringBuilder errbuf = new StringBuilder();
Expand All @@ -195,6 +196,7 @@ public byte[] fileProcess(String[] cmd, String outputFile) {
* @return bytes of output from command execution
*/
@Nullable
@SuppressWarnings("AvoidObjectArrays")
public byte[] stdOutProcess(String[] cmd, boolean chop) {
logger.debug("stdOutProcess({},{}) with charset {}", Arrays.asList(cmd), chop, charset);
StringBuilder outbuf = new StringBuilder();
Expand Down Expand Up @@ -274,6 +276,7 @@ protected void unSynchronizedProcess(IBaseDataObject theDataObject) throws Resou
* @param data the bytes to run the command on
* @return byte array of output
*/
@SuppressWarnings("CatchingUnchecked")
protected byte[] runCommandOn(byte[] data) throws ResourceException {
String[] names = executrix.makeTempFilenames();
String tempDirName = names[Executrix.DIR];
Expand Down

0 comments on commit 856f23a

Please sign in to comment.