Skip to content

Commit f7ee446

Browse files
committed
Style.
1 parent d3c3234 commit f7ee446

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/MarshalModuleBuiltins.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ Object doit(PByteArray bytes,
167167
private final static char TYPE_FLOAT = 'f';
168168
// private final static char TYPE_BINARY_FLOAT = 'g';
169169
private final static char TYPE_COMPLEX = 'x';
170-
private final static char TYPE_BINARY_COMPLEX = 'y';
170+
// private final static char TYPE_BINARY_COMPLEX = 'y';
171171
private final static char TYPE_LONG = 'l';
172172
private final static char TYPE_PINT = 'L';
173173
private final static char TYPE_STRING = 's';
@@ -186,7 +186,7 @@ Object doit(PByteArray bytes,
186186
private final static int CURRENT_VERSION = 1;
187187

188188
public static abstract class MarshallerNode extends PNodeWithContext {
189-
189+
190190
public abstract void execute(Object x, int version, DataOutputStream buffer);
191191

192192
@Child private MarshallerNode recursiveNode;
@@ -229,10 +229,10 @@ private void writeBytes(byte[] bytes, int version, DataOutputStream buffer) {
229229
}
230230
}
231231

232-
private void writeShort(short x, int version, DataOutputStream buffer) {
233-
writeByte((char) (x & 0xff), version, buffer);
234-
writeByte((char) ((x >> 8) & 0xff), version, buffer);
235-
}
232+
// private void writeShort(short x, int version, DataOutputStream buffer) {
233+
// writeByte((char) (x & 0xff), version, buffer);
234+
// writeByte((char) ((x >> 8) & 0xff), version, buffer);
235+
// }
236236

237237
private void writeInt(int v, @SuppressWarnings("unused") int version, DataOutputStream buffer) {
238238
try {
@@ -339,7 +339,7 @@ public void handleMemoryView(PMemoryView v, int version, DataOutputStream buffer
339339
}
340340

341341
@Specialization
342-
public void handlePArray(PArray v, @SuppressWarnings("unused")int version, @SuppressWarnings("unused")DataOutputStream buffer) {
342+
public void handlePArray(@SuppressWarnings("unused") PArray v, @SuppressWarnings("unused") int version, @SuppressWarnings("unused") DataOutputStream buffer) {
343343
throw raise(NotImplementedError, "marshal.dumps(array)");
344344
}
345345

@@ -456,7 +456,7 @@ public static MarshallerNode create() {
456456
}
457457

458458
public static abstract class UnmarshallerNode extends PNodeWithContext {
459-
public abstract Object execute(byte[] data, int version);
459+
public abstract Object execute(byte[] dataBytes, int version);
460460

461461
@Child private HashingStorageNodes.SetItemNode setItemNode;
462462

@@ -666,9 +666,9 @@ private Object readObject(int depth) {
666666
}
667667

668668
@Specialization
669-
public Object readObject(byte[] data, int version) {
669+
public Object readObject(byte[] dataBytes, @SuppressWarnings("unused") int version) {
670670
reset();
671-
this.data = data;
671+
this.data = dataBytes;
672672
return readObject(0);
673673
}
674674

0 commit comments

Comments
 (0)