From ee9f0336b54030124a6937d828755a609dff9314 Mon Sep 17 00:00:00 2001 From: Kiran Date: Wed, 5 Oct 2016 00:14:21 -0400 Subject: [PATCH] Updated indentation --- .../spring/jms/SampleMessageConverter.java | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/spring-jms/src/com/baeldung/spring/jms/SampleMessageConverter.java b/spring-jms/src/com/baeldung/spring/jms/SampleMessageConverter.java index ff8767c78d..856e0e9e49 100644 --- a/spring-jms/src/com/baeldung/spring/jms/SampleMessageConverter.java +++ b/spring-jms/src/com/baeldung/spring/jms/SampleMessageConverter.java @@ -8,22 +8,20 @@ import javax.jms.Session; import org.springframework.jms.support.converter.MessageConversionException; import org.springframework.jms.support.converter.MessageConverter; -public class SampleMessageConverter implements MessageConverter{ +public class SampleMessageConverter implements MessageConverter { - public Message toMessage(Object object, Session session) - throws JMSException, MessageConversionException { - Employee person = (Employee) object; - MapMessage message = session.createMapMessage(); - message.setString("name", person.getName()); - message.setInt("age", person.getAge()); - return message; - } + public Message toMessage(Object object, Session session) throws JMSException, MessageConversionException { + Employee person = (Employee) object; + MapMessage message = session.createMapMessage(); + message.setString("name", person.getName()); + message.setInt("age", person.getAge()); + return message; + } - public Object fromMessage(Message message) throws JMSException, - MessageConversionException { - MapMessage mapMessage = (MapMessage) message; - Employee person = new Employee(mapMessage.getString("name"), mapMessage.getInt("age")); - return person; - } + public Object fromMessage(Message message) throws JMSException, MessageConversionException { + MapMessage mapMessage = (MapMessage) message; + Employee person = new Employee(mapMessage.getString("name"), mapMessage.getInt("age")); + return person; + } }