diff options
| author | Paul Buetow <paul@buetow.org> | 2009-02-15 12:59:17 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2009-02-15 12:59:17 +0000 |
| commit | 2a93a612375aa6c8fd35280778624d486a81d2d2 (patch) | |
| tree | 5f0b88be2b6bb5b0eb8a33f5a3e996e2352655c5 /shared/remotecall/RemoteCall.java | |
| parent | 3f06de0d35403234601f3bc8325ec8d37071d4a3 (diff) | |
run astyle
Diffstat (limited to 'shared/remotecall/RemoteCall.java')
| -rw-r--r-- | shared/remotecall/RemoteCall.java | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/shared/remotecall/RemoteCall.java b/shared/remotecall/RemoteCall.java index 5accf28..8703f00 100644 --- a/shared/remotecall/RemoteCall.java +++ b/shared/remotecall/RemoteCall.java @@ -4,26 +4,26 @@ import java.io.*; /** * This is the abstract base class of all other classes of the shared.remotecall package. - * Its defining some common methods. + * Its defining some common methods. * @author buetow * */ public abstract class RemoteCall { - /** - * This is a help method for writeObject of the child classes, needed for ojbect serialization (sending part). - * It checks if object is defined. If yes, it will be written to the given object output stream with a leading - * flag with the value true. Otherwise only the false flag will be written to the object output stream. - * @param objectOutputStream Specifies the output stream. - * @throws IOException - */ - protected final void writeObjectIfDefined(ObjectOutputStream objectOutputStream, Object object) - throws IOException { - if (object == null) { - objectOutputStream.writeBoolean(false); - - } else { - objectOutputStream.writeBoolean(true); - objectOutputStream.writeObject(object); - } - } + /** + * This is a help method for writeObject of the child classes, needed for ojbect serialization (sending part). + * It checks if object is defined. If yes, it will be written to the given object output stream with a leading + * flag with the value true. Otherwise only the false flag will be written to the object output stream. + * @param objectOutputStream Specifies the output stream. + * @throws IOException + */ + protected final void writeObjectIfDefined(ObjectOutputStream objectOutputStream, Object object) + throws IOException { + if (object == null) { + objectOutputStream.writeBoolean(false); + + } else { + objectOutputStream.writeBoolean(true); + objectOutputStream.writeObject(object); + } + } } |
