qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rob...@apache.org
Subject qpid-proton git commit: PROTON-947: deprecate stale methods, to be removed after the imminent release
Date Tue, 14 Jul 2015 10:50:49 GMT
Repository: qpid-proton
Updated Branches:
  refs/heads/master b67a2a943 -> 3459aa239


PROTON-947: deprecate stale methods, to be removed after the imminent release


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/3459aa23
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/3459aa23
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/3459aa23

Branch: refs/heads/master
Commit: 3459aa239252412d77a125d34d7dc51b65ed0201
Parents: b67a2a9
Author: Robert Gemmell <robbie@apache.org>
Authored: Tue Jul 14 11:23:03 2015 +0100
Committer: Robert Gemmell <robbie@apache.org>
Committed: Tue Jul 14 11:44:15 2015 +0100

----------------------------------------------------------------------
 .../org/apache/qpid/proton/message/Message.java   | 18 ++++++++++++++----
 .../apache/qpid/proton/message/MessageFormat.java |  4 +++-
 .../proton/message/MessageFormatException.java    |  3 +++
 .../proton/message/impl/AMQPMessageFormat.java    |  4 +++-
 .../qpid/proton/message/impl/MessageImpl.java     | 18 ++++++++++++++++++
 5 files changed, 41 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/3459aa23/proton-j/src/main/java/org/apache/qpid/proton/message/Message.java
----------------------------------------------------------------------
diff --git a/proton-j/src/main/java/org/apache/qpid/proton/message/Message.java b/proton-j/src/main/java/org/apache/qpid/proton/message/Message.java
index aede34b..ffd5dc4 100644
--- a/proton-j/src/main/java/org/apache/qpid/proton/message/Message.java
+++ b/proton-j/src/main/java/org/apache/qpid/proton/message/Message.java
@@ -182,8 +182,7 @@ public interface Message
     /**
      * Loads message body from the {@code data}.
      *
-     * TODO describe how the object is interpreted according to the MessageFormat.
-     *
+     * @deprecated This method will be removed in a future release.
      * @see #setMessageFormat(MessageFormat)
      */
     void load(Object data);
@@ -191,17 +190,28 @@ public interface Message
     /**
      * Return the message body in a format determined by {@link #getMessageFormat()}.
      *
-     * TODO describe the formatting process
-     *
+     * @deprecated This method will be removed in a future release.
      */
     Object save();
 
+    /**
+     * @deprecated This method will be removed in a future release.
+     */
     String toAMQPFormat(Object value);
 
+    /**
+     * @deprecated This method will be removed in a future release.
+     */
     Object parseAMQPFormat(String value);
 
+    /**
+     * @deprecated This method will be removed in a future release.
+     */
     void setMessageFormat(MessageFormat format);
 
+    /**
+     * @deprecated This method will be removed in a future release.
+     */
     MessageFormat getMessageFormat();
 
     void clear();

http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/3459aa23/proton-j/src/main/java/org/apache/qpid/proton/message/MessageFormat.java
----------------------------------------------------------------------
diff --git a/proton-j/src/main/java/org/apache/qpid/proton/message/MessageFormat.java b/proton-j/src/main/java/org/apache/qpid/proton/message/MessageFormat.java
index ee369c7..6a3401c 100644
--- a/proton-j/src/main/java/org/apache/qpid/proton/message/MessageFormat.java
+++ b/proton-j/src/main/java/org/apache/qpid/proton/message/MessageFormat.java
@@ -20,7 +20,9 @@ package org.apache.qpid.proton.message;
  *
 */
 
-
+/**
+ * @deprecated This enum will be removed in a future release.
+ */
 public enum MessageFormat
 {
     DATA,

http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/3459aa23/proton-j/src/main/java/org/apache/qpid/proton/message/MessageFormatException.java
----------------------------------------------------------------------
diff --git a/proton-j/src/main/java/org/apache/qpid/proton/message/MessageFormatException.java
b/proton-j/src/main/java/org/apache/qpid/proton/message/MessageFormatException.java
index 230a3c6..59a9d00 100644
--- a/proton-j/src/main/java/org/apache/qpid/proton/message/MessageFormatException.java
+++ b/proton-j/src/main/java/org/apache/qpid/proton/message/MessageFormatException.java
@@ -21,6 +21,9 @@
 
 package org.apache.qpid.proton.message;
 
+/**
+ * @deprecated This class will be removed in a future release.
+ */
 public class MessageFormatException extends RuntimeException
 {
     public MessageFormatException(String message, CharSequence value)

http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/3459aa23/proton-j/src/main/java/org/apache/qpid/proton/message/impl/AMQPMessageFormat.java
----------------------------------------------------------------------
diff --git a/proton-j/src/main/java/org/apache/qpid/proton/message/impl/AMQPMessageFormat.java
b/proton-j/src/main/java/org/apache/qpid/proton/message/impl/AMQPMessageFormat.java
index 90b7d93..18e9b6c 100644
--- a/proton-j/src/main/java/org/apache/qpid/proton/message/impl/AMQPMessageFormat.java
+++ b/proton-j/src/main/java/org/apache/qpid/proton/message/impl/AMQPMessageFormat.java
@@ -30,7 +30,9 @@ import org.apache.qpid.proton.amqp.Symbol;
 import org.apache.qpid.proton.amqp.transport.Flow;
 import org.apache.qpid.proton.message.*;
 
-
+/**
+ * @deprecated This class will be removed in a future release.
+ */
 class AMQPMessageFormat
 {
 

http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/3459aa23/proton-j/src/main/java/org/apache/qpid/proton/message/impl/MessageImpl.java
----------------------------------------------------------------------
diff --git a/proton-j/src/main/java/org/apache/qpid/proton/message/impl/MessageImpl.java b/proton-j/src/main/java/org/apache/qpid/proton/message/impl/MessageImpl.java
index 9ea09a2..38feb38 100644
--- a/proton-j/src/main/java/org/apache/qpid/proton/message/impl/MessageImpl.java
+++ b/proton-j/src/main/java/org/apache/qpid/proton/message/impl/MessageImpl.java
@@ -748,6 +748,9 @@ public class MessageImpl implements ProtonJMessage
         return length - buffer.remaining();
     }
 
+    /**
+     * @deprecated This method will be removed in a future release.
+     */
     @Override
     public void load(Object data)
     {
@@ -789,6 +792,9 @@ public class MessageImpl implements ProtonJMessage
 
     }
 
+    /**
+     * @deprecated This method will be removed in a future release.
+     */
     @Override
     public Object save()
     {
@@ -821,12 +827,18 @@ public class MessageImpl implements ProtonJMessage
         }
     }
 
+    /**
+     * @deprecated This method will be removed in a future release.
+     */
     @Override
     public String toAMQPFormat(Object value)
     {
         return _parser.encode(value);
     }
 
+    /**
+     * @deprecated This method will be removed in a future release.
+     */
     @Override
     public Object parseAMQPFormat(String value)
     {
@@ -835,12 +847,18 @@ public class MessageImpl implements ProtonJMessage
         return obj;
     }
 
+    /**
+     * @deprecated This method will be removed in a future release.
+     */
     @Override
     public void setMessageFormat(MessageFormat format)
     {
         _format = format;
     }
 
+    /**
+     * @deprecated This method will be removed in a future release.
+     */
     @Override
     public MessageFormat getMessageFormat()
     {


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


Mime
View raw message