Skip to content

Commit 4cb0517

Browse files
committed
update dumptoclient
1 parent 5885044 commit 4cb0517

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/test/java/DumpToClient.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,12 @@ public static void main(String[] args) throws IOException {
9090
StringWriter sw = new StringWriter();
9191
try (PrintWriter out = new PrintWriter(sw)) {
9292
out.println("package bwapi;");
93-
out.println("import java.nio.ByteBuffer;");
93+
out.println("");
9494
out.println("final class ClientData {");
9595
out.println(" final WrappedBuffer buffer;");
96-
out.println(" ClientData(final ByteBuffer buffer) {");
97-
out.println(" this.buffer = new WrappedBuffer(buffer);");
96+
out.println("");
97+
out.println(" ClientData(final WrappedBuffer buffer) {");
98+
out.println(" this.buffer = buffer;");
9899
out.println(" }");
99100
structs.values().forEach(s -> {
100101
out.printf(" class %s {\n", s.name);

0 commit comments

Comments
 (0)