Skip to content

Commit

Permalink
forbidden
Browse files Browse the repository at this point in the history
Signed-off-by: Mikhail Khludnev <mkhl@apache.org>
  • Loading branch information
mkhludnev committed Nov 20, 2024
1 parent 7e1f8b4 commit c429cf0
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.net.InetAddress;
import java.util.ArrayList;
import java.util.Collection;
Expand Down Expand Up @@ -143,11 +144,11 @@ public void testExceedMaxClauses() throws IOException {
}

private static String dumpException(OpenSearchException ose) {
ByteArrayOutputStream out = new ByteArrayOutputStream();
PrintWriter printWriter = new PrintWriter(out);
ose.printStackTrace(printWriter);
printWriter.flush();
return out.toString();
StringWriter stack = new StringWriter();
PrintWriter writer = new PrintWriter(stack);
ose.printStackTrace(writer);
writer.flush();
return stack.toString();
}

public static String getFirstThreeOctets(String ipAddress) {
Expand Down

0 comments on commit c429cf0

Please sign in to comment.