diff options
author | Tom Tromey <tromey@redhat.com> | 2004-11-06 22:56:38 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2004-11-06 22:56:38 +0000 |
commit | 7771b8da335a758fac6296f34f164c82470cf6d3 (patch) | |
tree | 47b60a6cb099cd5731ce370bfa9c713a2935729c /libjava/java/io | |
parent | 58368ea7081b381230e8deeb357f1ca5054c31bf (diff) | |
download | gcc-7771b8da335a758fac6296f34f164c82470cf6d3.tar.gz |
ObjectOutputStream.java (currentObjectStreamClass): Now package-private.
* java/io/ObjectOutputStream.java (currentObjectStreamClass): Now
package-private.
(setBlockDataMode): Likewise.
From-SVN: r90198
Diffstat (limited to 'libjava/java/io')
-rw-r--r-- | libjava/java/io/ObjectOutputStream.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libjava/java/io/ObjectOutputStream.java b/libjava/java/io/ObjectOutputStream.java index cef8a274266..6a5eed7a24c 100644 --- a/libjava/java/io/ObjectOutputStream.java +++ b/libjava/java/io/ObjectOutputStream.java @@ -1239,7 +1239,8 @@ public class ObjectOutputStream extends OutputStream // Toggles writing primitive data to block-data buffer. - private boolean setBlockDataMode(boolean on) throws IOException + // Package-private to avoid a trampoline constructor. + boolean setBlockDataMode(boolean on) throws IOException { if (on == writeDataAsBlocks) return on; @@ -1563,7 +1564,8 @@ public class ObjectOutputStream extends OutputStream private byte[] blockData; private int blockDataCount; private Object currentObject; - private ObjectStreamClass currentObjectStreamClass; + // Package-private to avoid a trampoline. + ObjectStreamClass currentObjectStreamClass; private PutField currentPutField; private boolean fieldsAlreadyWritten; private boolean replacementEnabled; |