diff options
Diffstat (limited to 'java/src/IceInternal/Outgoing.java')
-rw-r--r-- | java/src/IceInternal/Outgoing.java | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/java/src/IceInternal/Outgoing.java b/java/src/IceInternal/Outgoing.java index 914944dc420..1371fc76e5b 100644 --- a/java/src/IceInternal/Outgoing.java +++ b/java/src/IceInternal/Outgoing.java @@ -27,7 +27,7 @@ public final class Outgoing } // - // This function allows this object to be reused, rather than + // These functions allow this object to be reused, rather than // reallocated. // public void @@ -37,15 +37,16 @@ public final class Outgoing _state = StateUnsent; _exception = null; - assert(_is != null); - _is.reset(); - - assert(_os != null); - _os.reset(); - writeHeader(operation, mode, context); } + public void + reclaim() + { + _is.reset(); + _os.reset(); + } + // Returns true if ok, false if user exception. public boolean invoke() |