Skip to content

Commit d491202

Browse files
authored
Making MessageBody serializable. Also changing version to 1.2.11. (#328)
1 parent 6e44265 commit d491202

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

azure-servicebus/azure-servicebus.pom

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>com.microsoft.azure</groupId>
66
<artifactId>azure-servicebus</artifactId>
7-
<version>1.2.10</version>
7+
<version>1.2.11</version>
88
<licenses>
99
<license>
1010
<name>The MIT License (MIT)</name>

azure-servicebus/src/main/java/com/microsoft/azure/servicebus/MessageBody.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.microsoft.azure.servicebus;
22

3+
import java.io.Serializable;
34
import java.util.List;
45

56
/**
@@ -8,8 +9,11 @@
89
* Client should test for body type before calling corresponding get method.
910
* Get methods not corresponding to the type of the body return null.
1011
*/
11-
public class MessageBody {
12-
private MessageBodyType bodyType;
12+
public class MessageBody implements Serializable{
13+
14+
private static final long serialVersionUID = 7215009530928988502L;
15+
16+
private MessageBodyType bodyType;
1317
private Object valueData;
1418
private List<List<Object>> sequenceData;
1519
private List<byte[]> binaryData;

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<proton-j-version>0.31.0</proton-j-version>
1414
<junit-version>4.12</junit-version>
1515
<slf4j-version>1.7.0</slf4j-version>
16-
<client-current-version>1.2.10</client-current-version>
16+
<client-current-version>1.2.11</client-current-version>
1717
</properties>
1818

1919
<modules>

0 commit comments

Comments
 (0)