Polishing

This commit is contained in:
Juergen Hoeller 2016-03-25 23:46:18 +01:00
parent 94cb7786c8
commit c6ff0951fc
4 changed files with 10 additions and 10 deletions

View File

@ -406,13 +406,11 @@ public abstract class CacheAspectSupport extends AbstractCacheInvoker
}
}
catch (VariableNotAvailableException e) {
// Ignoring failure due to missing result, consider the cache put has
// to proceed
// Ignoring failure due to missing result, consider the cache put has to proceed
}
}
// check if all puts have been excluded by condition
return cachePutContexts.size() != excluded.size();
// Check if all puts have been excluded by condition
return (cachePutContexts.size() != excluded.size());
}
private void processCacheEvicts(Collection<CacheOperationContext> contexts, boolean beforeInvocation, Object result) {

View File

@ -293,8 +293,8 @@ public abstract class AbstractAdaptableMessageListener
/**
* Pre-process the given result before it is converted to a {@link Message}.
* @param result the result of the invocation
* @return the payload response to handle, either the {@code result} argument or any other
* object (for instance wrapping the result).
* @return the payload response to handle, either the {@code result} argument
* or any other object (for instance wrapping the result).
* @since 4.3
*/
protected Object preProcessResponse(Object result) {

View File

@ -212,6 +212,7 @@ public class MappingJackson2MessageConverter implements SmartMessageConverter, B
*/
public Message toMessage(Object object, Session session, Class<?> jsonView)
throws JMSException, MessageConversionException {
if (jsonView != null) {
return toMessage(object, session, this.objectMapper.writerWithView(jsonView));
}

View File

@ -128,15 +128,16 @@ public class MessagingMessageConverter implements MessageConverter, Initializing
}
/**
* Create a JMS message for the specified payload and conversionHint. The conversion
* hint is an extra object passed to the {@link MessageConverter}, e.g. the associated
* {@code MethodParameter} (may be {@code null}}.
* Create a JMS message for the specified payload and conversionHint.
* The conversion hint is an extra object passed to the {@link MessageConverter},
* e.g. the associated {@code MethodParameter} (may be {@code null}}.
* @see MessageConverter#toMessage(Object, Session)
* @since 4.3
*/
@SuppressWarnings("deprecation")
protected javax.jms.Message createMessageForPayload(Object payload, Session session, Object conversionHint)
throws JMSException {
return createMessageForPayload(payload, session);
}