ing
This commit is contained in:
parent
09deab40db
commit
e5e76f7e7a
2
pom.xml
2
pom.xml
|
@ -50,7 +50,7 @@
|
|||
<dependency>
|
||||
<groupId>com.loafle.overflow</groupId>
|
||||
<artifactId>commons-java</artifactId>
|
||||
<version>1.0.114-SNAPSHOT</version>
|
||||
<version>1.0.116-SNAPSHOT</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
|
|
|
@ -111,7 +111,7 @@ public class RedisMessagePublisher implements MessagePublisher {
|
|||
|
||||
protected void publish(final String channel, PublishMessage message, final String method, Object... params) {
|
||||
ChannelTopic topic = this.topics.get(channel);
|
||||
message.setMessage(new PublishMessage.PublishMessageBody(method, this.getMessageBody(params)));
|
||||
message.setMessage(new PublishMessage.PublishMessageBody(method, this.getMessageBodyParam(params)));
|
||||
|
||||
try {
|
||||
String json = this.objectMapper.writeValueAsString(message);
|
||||
|
@ -121,7 +121,7 @@ public class RedisMessagePublisher implements MessagePublisher {
|
|||
}
|
||||
}
|
||||
|
||||
protected List<String> getMessageBody(final Object... params) {
|
||||
protected List<String> getMessageBodyParam(final Object... params) {
|
||||
List<String> results = new ArrayList<>(params.length);
|
||||
for (Object param : params) {
|
||||
if (param.getClass().equals(String.class)) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user