You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ro...@apache.org on 2015/01/23 18:39:37 UTC

[2/7] qpid-jms git commit: simplify read/writeExternal to avoid reading/writingof redundant fixed values defined while instantiating the classes

simplify read/writeExternal to avoid reading/writingof redundant fixed values defined while instantiating the classes


Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/675ceb72
Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/675ceb72
Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/675ceb72

Branch: refs/heads/master
Commit: 675ceb72e1e6ad2eeb55fb14a8a4290667f21958
Parents: 253168d
Author: Robert Gemmell <ro...@apache.org>
Authored: Fri Jan 23 16:52:08 2015 +0000
Committer: Robert Gemmell <ro...@apache.org>
Committed: Fri Jan 23 17:39:01 2015 +0000

----------------------------------------------------------------------
 .../src/main/java/org/apache/qpid/jms/JmsDestination.java        | 4 ----
 1 file changed, 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/675ceb72/qpid-jms-client/src/main/java/org/apache/qpid/jms/JmsDestination.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/main/java/org/apache/qpid/jms/JmsDestination.java b/qpid-jms-client/src/main/java/org/apache/qpid/jms/JmsDestination.java
index 09216d5..d15fffb 100644
--- a/qpid-jms-client/src/main/java/org/apache/qpid/jms/JmsDestination.java
+++ b/qpid-jms-client/src/main/java/org/apache/qpid/jms/JmsDestination.java
@@ -159,14 +159,10 @@ public abstract class JmsDestination extends JNDIStorable implements Externaliza
     @Override
     public void writeExternal(ObjectOutput out) throws IOException {
         out.writeUTF(getName());
-        out.writeBoolean(isTopic());
-        out.writeBoolean(isTemporary());
     }
 
     @Override
     public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
         setName(in.readUTF());
-        this.topic = in.readBoolean();
-        this.temporary = in.readBoolean();
     }
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org