language
stringclasses
1 value
owner
stringlengths
2
15
repo
stringlengths
2
21
sha
stringlengths
45
45
message
stringlengths
7
36.3k
path
stringlengths
1
199
patch
stringlengths
15
102k
is_multipart
bool
2 classes
Other
spring-projects
spring-framework
ae942ffdb89ae103b6f9e076ec9548594317e2f9.json
Make use of enhanced MessageHeaderAccessor support Mutate rather than re-create headers when decoding STOMP messages before a message is sent on a message channel. Use MessageBuilder.createMessage to ensure the fully prepared MessageHeaders is used directly MessageHeaderAccessor instance. Issue: SPR-11468
spring-messaging/src/main/java/org/springframework/messaging/core/AbstractMessageSendingTemplate.java
@@ -26,6 +26,7 @@ import org.springframework.messaging.converter.MessageConversionException; import org.springframework.messaging.converter.MessageConverter; import org.springframework.messaging.converter.SimpleMessageConverter; +import org.springframework.messaging.support.MessageHeaderAccessor; import org.springf...
true
Other
spring-projects
spring-framework
ae942ffdb89ae103b6f9e076ec9548594317e2f9.json
Make use of enhanced MessageHeaderAccessor support Mutate rather than re-create headers when decoding STOMP messages before a message is sent on a message channel. Use MessageBuilder.createMessage to ensure the fully prepared MessageHeaders is used directly MessageHeaderAccessor instance. Issue: SPR-11468
spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/support/HeadersMethodArgumentResolver.java
@@ -26,7 +26,7 @@ import org.springframework.messaging.handler.annotation.Headers; import org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolver; import org.springframework.messaging.support.MessageHeaderAccessor; -import org.springframework.util.ClassUtils; +import org.springframework.util.A...
true
Other
spring-projects
spring-framework
ae942ffdb89ae103b6f9e076ec9548594317e2f9.json
Make use of enhanced MessageHeaderAccessor support Mutate rather than re-create headers when decoding STOMP messages before a message is sent on a message channel. Use MessageBuilder.createMessage to ensure the fully prepared MessageHeaders is used directly MessageHeaderAccessor instance. Issue: SPR-11468
spring-messaging/src/main/java/org/springframework/messaging/handler/invocation/AbstractMethodMessageHandler.java
@@ -42,6 +42,7 @@ import org.springframework.messaging.handler.HandlerMethod; import org.springframework.messaging.handler.HandlerMethodSelector; import org.springframework.messaging.support.MessageBuilder; +import org.springframework.messaging.support.MessageHeaderAccessor; import org.springframework.util.Assert; ...
true
Other
spring-projects
spring-framework
ae942ffdb89ae103b6f9e076ec9548594317e2f9.json
Make use of enhanced MessageHeaderAccessor support Mutate rather than re-create headers when decoding STOMP messages before a message is sent on a message channel. Use MessageBuilder.createMessage to ensure the fully prepared MessageHeaders is used directly MessageHeaderAccessor instance. Issue: SPR-11468
spring-messaging/src/main/java/org/springframework/messaging/simp/SimpMessageTypeMessageCondition.java
@@ -73,7 +73,7 @@ public SimpMessageTypeMessageCondition combine(SimpMessageTypeMessageCondition o @Override public SimpMessageTypeMessageCondition getMatchingCondition(Message<?> message) { - Object actualMessageType = message.getHeaders().get(SimpMessageHeaderAccessor.MESSAGE_TYPE_HEADER); + Object actualMess...
true
Other
spring-projects
spring-framework
ae942ffdb89ae103b6f9e076ec9548594317e2f9.json
Make use of enhanced MessageHeaderAccessor support Mutate rather than re-create headers when decoding STOMP messages before a message is sent on a message channel. Use MessageBuilder.createMessage to ensure the fully prepared MessageHeaders is used directly MessageHeaderAccessor instance. Issue: SPR-11468
spring-messaging/src/main/java/org/springframework/messaging/simp/SimpMessagingTemplate.java
@@ -108,8 +108,7 @@ public long getSendTimeout() { @Override public void send(Message<?> message) { - SimpMessageHeaderAccessor headers = SimpMessageHeaderAccessor.wrap(message); - String destination = headers.getDestination(); + String destination = SimpMessageHeaderAccessor.getDestination(message.getHeaders(...
true
Other
spring-projects
spring-framework
ae942ffdb89ae103b6f9e076ec9548594317e2f9.json
Make use of enhanced MessageHeaderAccessor support Mutate rather than re-create headers when decoding STOMP messages before a message is sent on a message channel. Use MessageBuilder.createMessage to ensure the fully prepared MessageHeaders is used directly MessageHeaderAccessor instance. Issue: SPR-11468
spring-messaging/src/main/java/org/springframework/messaging/simp/annotation/support/PrincipalMethodArgumentResolver.java
@@ -37,8 +37,7 @@ public boolean supportsParameter(MethodParameter parameter) { @Override public Object resolveArgument(MethodParameter parameter, Message<?> message) throws Exception { - SimpMessageHeaderAccessor headers = SimpMessageHeaderAccessor.wrap(message); - Principal user = headers.getUser(); + Princi...
true
Other
spring-projects
spring-framework
ae942ffdb89ae103b6f9e076ec9548594317e2f9.json
Make use of enhanced MessageHeaderAccessor support Mutate rather than re-create headers when decoding STOMP messages before a message is sent on a message channel. Use MessageBuilder.createMessage to ensure the fully prepared MessageHeaders is used directly MessageHeaderAccessor instance. Issue: SPR-11468
spring-messaging/src/main/java/org/springframework/messaging/simp/annotation/support/SendToMethodReturnValueHandler.java
@@ -23,6 +23,7 @@ import org.springframework.core.annotation.AnnotationUtils; import org.springframework.messaging.Message; import org.springframework.messaging.MessageChannel; +import org.springframework.messaging.MessageHeaders; import org.springframework.messaging.core.MessagePostProcessor; import org.springfra...
true
Other
spring-projects
spring-framework
ae942ffdb89ae103b6f9e076ec9548594317e2f9.json
Make use of enhanced MessageHeaderAccessor support Mutate rather than re-create headers when decoding STOMP messages before a message is sent on a message channel. Use MessageBuilder.createMessage to ensure the fully prepared MessageHeaders is used directly MessageHeaderAccessor instance. Issue: SPR-11468
spring-messaging/src/main/java/org/springframework/messaging/simp/annotation/support/SimpAnnotationMethodMessageHandler.java
@@ -63,6 +63,7 @@ import org.springframework.util.AntPathMatcher; import org.springframework.util.Assert; import org.springframework.util.ClassUtils; +import org.springframework.util.CollectionUtils; import org.springframework.util.PathMatcher; import org.springframework.validation.Errors; import org.springframew...
true
Other
spring-projects
spring-framework
ae942ffdb89ae103b6f9e076ec9548594317e2f9.json
Make use of enhanced MessageHeaderAccessor support Mutate rather than re-create headers when decoding STOMP messages before a message is sent on a message channel. Use MessageBuilder.createMessage to ensure the fully prepared MessageHeaders is used directly MessageHeaderAccessor instance. Issue: SPR-11468
spring-messaging/src/main/java/org/springframework/messaging/simp/annotation/support/SubscriptionMethodReturnValueHandler.java
@@ -18,6 +18,7 @@ import org.springframework.core.MethodParameter; import org.springframework.messaging.Message; +import org.springframework.messaging.MessageHeaders; import org.springframework.messaging.core.MessagePostProcessor; import org.springframework.messaging.core.MessageSendingOperations; import org.spr...
true
Other
spring-projects
spring-framework
ae942ffdb89ae103b6f9e076ec9548594317e2f9.json
Make use of enhanced MessageHeaderAccessor support Mutate rather than re-create headers when decoding STOMP messages before a message is sent on a message channel. Use MessageBuilder.createMessage to ensure the fully prepared MessageHeaders is used directly MessageHeaderAccessor instance. Issue: SPR-11468
spring-messaging/src/main/java/org/springframework/messaging/simp/broker/AbstractSubscriptionRegistry.java
@@ -19,8 +19,10 @@ import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.messaging.Message; +import org.springframework.messaging.MessageHeaders; import org.springframework.messaging.simp.SimpMessageHeaderAccessor; import org.springframework.messaging.simp....
true
Other
spring-projects
spring-framework
ae942ffdb89ae103b6f9e076ec9548594317e2f9.json
Make use of enhanced MessageHeaderAccessor support Mutate rather than re-create headers when decoding STOMP messages before a message is sent on a message channel. Use MessageBuilder.createMessage to ensure the fully prepared MessageHeaders is used directly MessageHeaderAccessor instance. Issue: SPR-11468
spring-messaging/src/main/java/org/springframework/messaging/simp/broker/SimpleBrokerMessageHandler.java
@@ -20,6 +20,7 @@ import org.springframework.messaging.Message; import org.springframework.messaging.MessageChannel; +import org.springframework.messaging.MessageHeaders; import org.springframework.messaging.SubscribableChannel; import org.springframework.messaging.simp.SimpMessageHeaderAccessor; import org.spri...
true
Other
spring-projects
spring-framework
ae942ffdb89ae103b6f9e076ec9548594317e2f9.json
Make use of enhanced MessageHeaderAccessor support Mutate rather than re-create headers when decoding STOMP messages before a message is sent on a message channel. Use MessageBuilder.createMessage to ensure the fully prepared MessageHeaders is used directly MessageHeaderAccessor instance. Issue: SPR-11468
spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandler.java
@@ -20,7 +20,6 @@ import java.util.Map; import java.util.concurrent.Callable; import java.util.concurrent.ConcurrentHashMap; -import java.util.concurrent.atomic.AtomicBoolean; import org.springframework.messaging.Message; import org.springframework.messaging.MessageChannel; @@ -30,6 +29,7 @@ import org.springfr...
true
Other
spring-projects
spring-framework
ae942ffdb89ae103b6f9e076ec9548594317e2f9.json
Make use of enhanced MessageHeaderAccessor support Mutate rather than re-create headers when decoding STOMP messages before a message is sent on a message channel. Use MessageBuilder.createMessage to ensure the fully prepared MessageHeaders is used directly MessageHeaderAccessor instance. Issue: SPR-11468
spring-messaging/src/main/java/org/springframework/messaging/simp/user/DefaultUserDestinationResolver.java
@@ -19,6 +19,7 @@ import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.messaging.Message; +import org.springframework.messaging.MessageHeaders; import org.springframework.messaging.simp.SimpMessageHeaderAccessor; import org.springframework.messaging.simp.S...
true
Other
spring-projects
spring-framework
ae942ffdb89ae103b6f9e076ec9548594317e2f9.json
Make use of enhanced MessageHeaderAccessor support Mutate rather than re-create headers when decoding STOMP messages before a message is sent on a message channel. Use MessageBuilder.createMessage to ensure the fully prepared MessageHeaders is used directly MessageHeaderAccessor instance. Issue: SPR-11468
spring-messaging/src/main/java/org/springframework/messaging/simp/user/UserDestinationMessageHandler.java
@@ -152,16 +152,16 @@ public void handleMessage(Message<?> message) throws MessagingException { if (destinations.isEmpty()) { return; } - SimpMessageHeaderAccessor headerAccessor = SimpMessageHeaderAccessor.wrap(message); - if (SimpMessageType.MESSAGE.equals(headerAccessor.getMessageType())) { + if (SimpMe...
true
Other
spring-projects
spring-framework
ae942ffdb89ae103b6f9e076ec9548594317e2f9.json
Make use of enhanced MessageHeaderAccessor support Mutate rather than re-create headers when decoding STOMP messages before a message is sent on a message channel. Use MessageBuilder.createMessage to ensure the fully prepared MessageHeaders is used directly MessageHeaderAccessor instance. Issue: SPR-11468
spring-messaging/src/test/java/org/springframework/messaging/converter/MessageConverterTests.java
@@ -112,10 +112,12 @@ public void setStrictContentTypeMatchWithNoSupportedMimeTypes() { public void toMessageHeadersCopied() { Map<String, Object> map = new HashMap<String, Object>(); map.put("foo", "bar"); - MessageHeaders headers = new MessageHeaders(map ); + MessageHeaders headers = new MessageHeaders(map)...
true
Other
spring-projects
spring-framework
ae942ffdb89ae103b6f9e076ec9548594317e2f9.json
Make use of enhanced MessageHeaderAccessor support Mutate rather than re-create headers when decoding STOMP messages before a message is sent on a message channel. Use MessageBuilder.createMessage to ensure the fully prepared MessageHeaders is used directly MessageHeaderAccessor instance. Issue: SPR-11468
spring-messaging/src/test/java/org/springframework/messaging/simp/config/MessageBrokerConfigurationTests.java
@@ -31,7 +31,6 @@ import org.springframework.context.annotation.Configuration; import org.springframework.context.support.StaticApplicationContext; import org.springframework.messaging.Message; -import org.springframework.messaging.MessageChannel; import org.springframework.messaging.MessageHandler; import org.spr...
true
Other
spring-projects
spring-framework
ae942ffdb89ae103b6f9e076ec9548594317e2f9.json
Make use of enhanced MessageHeaderAccessor support Mutate rather than re-create headers when decoding STOMP messages before a message is sent on a message channel. Use MessageBuilder.createMessage to ensure the fully prepared MessageHeaders is used directly MessageHeaderAccessor instance. Issue: SPR-11468
spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandlerIntegrationTests.java
@@ -38,6 +38,7 @@ import org.springframework.messaging.MessageHandler; import org.springframework.messaging.MessagingException; import org.springframework.messaging.StubMessageChannel; +import org.springframework.messaging.simp.SimpMessageHeaderAccessor; import org.springframework.messaging.simp.broker.BrokerAvaila...
true
Other
spring-projects
spring-framework
ae942ffdb89ae103b6f9e076ec9548594317e2f9.json
Make use of enhanced MessageHeaderAccessor support Mutate rather than re-create headers when decoding STOMP messages before a message is sent on a message channel. Use MessageBuilder.createMessage to ensure the fully prepared MessageHeaders is used directly MessageHeaderAccessor instance. Issue: SPR-11468
spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandlerTests.java
@@ -27,6 +27,7 @@ import org.springframework.messaging.simp.SimpMessageHeaderAccessor; import org.springframework.messaging.simp.SimpMessageType; import org.springframework.messaging.support.MessageBuilder; +import org.springframework.messaging.support.MessageHeaderAccessor; import org.springframework.messaging.tcp...
true
Other
spring-projects
spring-framework
ae942ffdb89ae103b6f9e076ec9548594317e2f9.json
Make use of enhanced MessageHeaderAccessor support Mutate rather than re-create headers when decoding STOMP messages before a message is sent on a message channel. Use MessageBuilder.createMessage to ensure the fully prepared MessageHeaders is used directly MessageHeaderAccessor instance. Issue: SPR-11468
spring-messaging/src/test/java/org/springframework/messaging/simp/user/UserDestinationMessageHandlerTests.java
@@ -66,8 +66,7 @@ public void handleSubscribe() { ArgumentCaptor<Message> captor = ArgumentCaptor.forClass(Message.class); Mockito.verify(this.brokerChannel).send(captor.capture()); - assertEquals("/queue/foo-user123", - captor.getValue().getHeaders().get(SimpMessageHeaderAccessor.DESTINATION_HEADER)); + a...
true
Other
spring-projects
spring-framework
ae942ffdb89ae103b6f9e076ec9548594317e2f9.json
Make use of enhanced MessageHeaderAccessor support Mutate rather than re-create headers when decoding STOMP messages before a message is sent on a message channel. Use MessageBuilder.createMessage to ensure the fully prepared MessageHeaders is used directly MessageHeaderAccessor instance. Issue: SPR-11468
spring-websocket/src/main/java/org/springframework/web/socket/messaging/StompSubProtocolHandler.java
@@ -41,9 +41,9 @@ import org.springframework.messaging.simp.stomp.StompEncoder; import org.springframework.messaging.simp.stomp.StompHeaderAccessor; import org.springframework.messaging.simp.user.DestinationUserNameProvider; -import org.springframework.messaging.simp.user.UserDestinationMessageHandler; import org.s...
true
Other
spring-projects
spring-framework
ae942ffdb89ae103b6f9e076ec9548594317e2f9.json
Make use of enhanced MessageHeaderAccessor support Mutate rather than re-create headers when decoding STOMP messages before a message is sent on a message channel. Use MessageBuilder.createMessage to ensure the fully prepared MessageHeaders is used directly MessageHeaderAccessor instance. Issue: SPR-11468
spring-websocket/src/test/java/org/springframework/web/socket/messaging/StompSubProtocolHandlerTests.java
@@ -16,7 +16,6 @@ package org.springframework.web.socket.messaging; -import java.io.IOException; import java.nio.ByteBuffer; import java.util.ArrayList; import java.util.Arrays; @@ -41,7 +40,6 @@ import org.springframework.messaging.simp.stomp.StompHeaderAccessor; import org.springframework.messaging.simp.use...
true
Other
spring-projects
spring-framework
ae942ffdb89ae103b6f9e076ec9548594317e2f9.json
Make use of enhanced MessageHeaderAccessor support Mutate rather than re-create headers when decoding STOMP messages before a message is sent on a message channel. Use MessageBuilder.createMessage to ensure the fully prepared MessageHeaders is used directly MessageHeaderAccessor instance. Issue: SPR-11468
spring-websocket/src/test/java/org/springframework/web/socket/messaging/StompWebSocketIntegrationTests.java
@@ -128,7 +128,7 @@ public void sendMessageToBrokerAndReceiveReplyViaTopic() throws Exception { assertTrue(clientHandler.latch.await(2, TimeUnit.SECONDS)); String payload = clientHandler.actual.get(0).getPayload(); - assertTrue("Expected STOMP Command=MESSAGE, got " + payload, payload.startsWith("MESSAGE\n"...
true
Other
spring-projects
spring-framework
4867546aec48a49a8bbfd63d86dd32a8ed5eaf83.json
Enhance MessageHeaderAccessor support Refine semantics of ID and TIMESTAMP headers provided to protected MessageHeaders constructor. Refactor internal implementation of MessageHeaderAccessor. Support mutating headers from a single thread while a message is being built (e.g. StompDecoder creating message + then addin...
spring-messaging/src/main/java/org/springframework/messaging/MessageHeaders.java
@@ -24,7 +24,6 @@ import java.util.Collection; import java.util.Collections; import java.util.HashMap; -import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Set; @@ -34,7 +33,6 @@ import org.apache.commons.logging.LogFactory; import org.springframework.util.Alternative...
true
Other
spring-projects
spring-framework
4867546aec48a49a8bbfd63d86dd32a8ed5eaf83.json
Enhance MessageHeaderAccessor support Refine semantics of ID and TIMESTAMP headers provided to protected MessageHeaders constructor. Refactor internal implementation of MessageHeaderAccessor. Support mutating headers from a single thread while a message is being built (e.g. StompDecoder creating message + then addin...
spring-messaging/src/main/java/org/springframework/messaging/simp/DefaultSimpMessageHeaderAccessorFactory.java
@@ -0,0 +1,70 @@ +/* + * Copyright 2002-2014 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + *...
true
Other
spring-projects
spring-framework
4867546aec48a49a8bbfd63d86dd32a8ed5eaf83.json
Enhance MessageHeaderAccessor support Refine semantics of ID and TIMESTAMP headers provided to protected MessageHeaders constructor. Refactor internal implementation of MessageHeaderAccessor. Support mutating headers from a single thread while a message is being built (e.g. StompDecoder creating message + then addin...
spring-messaging/src/main/java/org/springframework/messaging/simp/SimpMessageHeaderAccessor.java
@@ -21,6 +21,8 @@ import java.util.Map; import org.springframework.messaging.Message; +import org.springframework.messaging.MessageHeaders; +import org.springframework.messaging.support.MessageHeaderAccessor; import org.springframework.messaging.support.NativeMessageHeaderAccessor; import org.springframework.util...
true
Other
spring-projects
spring-framework
4867546aec48a49a8bbfd63d86dd32a8ed5eaf83.json
Enhance MessageHeaderAccessor support Refine semantics of ID and TIMESTAMP headers provided to protected MessageHeaders constructor. Refactor internal implementation of MessageHeaderAccessor. Support mutating headers from a single thread while a message is being built (e.g. StompDecoder creating message + then addin...
spring-messaging/src/main/java/org/springframework/messaging/simp/SimpMessageHeaderAccessorFactory.java
@@ -0,0 +1,48 @@ +/* + * Copyright 2002-2014 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + *...
true
Other
spring-projects
spring-framework
4867546aec48a49a8bbfd63d86dd32a8ed5eaf83.json
Enhance MessageHeaderAccessor support Refine semantics of ID and TIMESTAMP headers provided to protected MessageHeaders constructor. Refactor internal implementation of MessageHeaderAccessor. Support mutating headers from a single thread while a message is being built (e.g. StompDecoder creating message + then addin...
spring-messaging/src/main/java/org/springframework/messaging/simp/broker/AbstractBrokerMessageHandler.java
@@ -164,7 +164,7 @@ public final void stop(Runnable callback) { public final void handleMessage(Message<?> message) { if (!this.running) { if (logger.isTraceEnabled()) { - logger.trace("Message broker is not running. Ignoring message id=" + message.getHeaders().getId()); + logger.trace("Message broker is...
true
Other
spring-projects
spring-framework
4867546aec48a49a8bbfd63d86dd32a8ed5eaf83.json
Enhance MessageHeaderAccessor support Refine semantics of ID and TIMESTAMP headers provided to protected MessageHeaders constructor. Refactor internal implementation of MessageHeaderAccessor. Support mutating headers from a single thread while a message is being built (e.g. StompDecoder creating message + then addin...
spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/BufferingStompDecoder.java
@@ -123,7 +123,7 @@ public List<Message<byte[]>> decode(ByteBuffer newBuffer) { if (bufferToDecode.hasRemaining()) { this.chunks.add(bufferToDecode); - this.expectedContentLength = getContentLength(headers); + this.expectedContentLength = StompHeaderAccessor.getContentLength(headers); } return mess...
true
Other
spring-projects
spring-framework
4867546aec48a49a8bbfd63d86dd32a8ed5eaf83.json
Enhance MessageHeaderAccessor support Refine semantics of ID and TIMESTAMP headers provided to protected MessageHeaders constructor. Refactor internal implementation of MessageHeaderAccessor. Support mutating headers from a single thread while a message is being built (e.g. StompDecoder creating message + then addin...
spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/DefaultStompHeaderAccessorFactory.java
@@ -0,0 +1,78 @@ +/* + * Copyright 2002-2014 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + *...
true
Other
spring-projects
spring-framework
4867546aec48a49a8bbfd63d86dd32a8ed5eaf83.json
Enhance MessageHeaderAccessor support Refine semantics of ID and TIMESTAMP headers provided to protected MessageHeaders constructor. Refactor internal implementation of MessageHeaderAccessor. Support mutating headers from a single thread while a message is being built (e.g. StompDecoder creating message + then addin...
spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompDecoder.java
@@ -26,10 +26,9 @@ import org.apache.commons.logging.LogFactory; import org.springframework.messaging.Message; -import org.springframework.messaging.simp.SimpMessageType; import org.springframework.messaging.support.MessageBuilder; -import org.springframework.util.Assert; -import org.springframework.util.LinkedMul...
true
Other
spring-projects
spring-framework
4867546aec48a49a8bbfd63d86dd32a8ed5eaf83.json
Enhance MessageHeaderAccessor support Refine semantics of ID and TIMESTAMP headers provided to protected MessageHeaders constructor. Refactor internal implementation of MessageHeaderAccessor. Support mutating headers from a single thread while a message is being built (e.g. StompDecoder creating message + then addin...
spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompEncoder.java
@@ -19,7 +19,7 @@ import java.io.ByteArrayOutputStream; import java.io.DataOutputStream; import java.io.IOException; -import java.nio.charset.Charset; +import java.util.Arrays; import java.util.List; import java.util.Map; import java.util.Map.Entry; @@ -28,7 +28,10 @@ import org.apache.commons.logging.LogFactory...
true
Other
spring-projects
spring-framework
4867546aec48a49a8bbfd63d86dd32a8ed5eaf83.json
Enhance MessageHeaderAccessor support Refine semantics of ID and TIMESTAMP headers provided to protected MessageHeaders constructor. Refactor internal implementation of MessageHeaderAccessor. Support mutating headers from a single thread while a message is being built (e.g. StompDecoder creating message + then addin...
spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompHeaderAccessor.java
@@ -26,27 +26,45 @@ import org.springframework.messaging.Message; import org.springframework.messaging.simp.SimpMessageHeaderAccessor; import org.springframework.messaging.simp.SimpMessageType; +import org.springframework.messaging.support.MessageHeaderAccessor; import org.springframework.util.Assert; -import org.s...
true
Other
spring-projects
spring-framework
4867546aec48a49a8bbfd63d86dd32a8ed5eaf83.json
Enhance MessageHeaderAccessor support Refine semantics of ID and TIMESTAMP headers provided to protected MessageHeaders constructor. Refactor internal implementation of MessageHeaderAccessor. Support mutating headers from a single thread while a message is being built (e.g. StompDecoder creating message + then addin...
spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompHeaderAccessorFactory.java
@@ -0,0 +1,55 @@ +/* + * Copyright 2002-2014 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + *...
true
Other
spring-projects
spring-framework
4867546aec48a49a8bbfd63d86dd32a8ed5eaf83.json
Enhance MessageHeaderAccessor support Refine semantics of ID and TIMESTAMP headers provided to protected MessageHeaders constructor. Refactor internal implementation of MessageHeaderAccessor. Support mutating headers from a single thread while a message is being built (e.g. StompDecoder creating message + then addin...
spring-messaging/src/main/java/org/springframework/messaging/support/AbstractMessageChannel.java
@@ -104,7 +104,7 @@ public final boolean send(Message<?> message, long timeout) { Assert.notNull(message, "Message must not be null"); if (logger.isTraceEnabled()) { - logger.trace("[" + this.beanName + "] sending message id=" + message.getHeaders().getId()); + logger.trace("[" + this.beanName + "] sending ...
true
Other
spring-projects
spring-framework
4867546aec48a49a8bbfd63d86dd32a8ed5eaf83.json
Enhance MessageHeaderAccessor support Refine semantics of ID and TIMESTAMP headers provided to protected MessageHeaders constructor. Refactor internal implementation of MessageHeaderAccessor. Support mutating headers from a single thread while a message is being built (e.g. StompDecoder creating message + then addin...
spring-messaging/src/main/java/org/springframework/messaging/support/ChannelInterceptorChain.java
@@ -57,7 +57,7 @@ public List<ChannelInterceptor> getInterceptors() { public Message<?> preSend(Message<?> message, MessageChannel channel) { - UUID originalId = message.getHeaders().getId(); + Message<?> originalMessage = message; for (ChannelInterceptor interceptor : this.interceptors) { message = inte...
true
Other
spring-projects
spring-framework
4867546aec48a49a8bbfd63d86dd32a8ed5eaf83.json
Enhance MessageHeaderAccessor support Refine semantics of ID and TIMESTAMP headers provided to protected MessageHeaders constructor. Refactor internal implementation of MessageHeaderAccessor. Support mutating headers from a single thread while a message is being built (e.g. StompDecoder creating message + then addin...
spring-messaging/src/main/java/org/springframework/messaging/support/ErrorMessage.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2013 the original author or authors. + * Copyright 2002-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,8 @@ package org.springframewor...
true
Other
spring-projects
spring-framework
4867546aec48a49a8bbfd63d86dd32a8ed5eaf83.json
Enhance MessageHeaderAccessor support Refine semantics of ID and TIMESTAMP headers provided to protected MessageHeaders constructor. Refactor internal implementation of MessageHeaderAccessor. Support mutating headers from a single thread while a message is being built (e.g. StompDecoder creating message + then addin...
spring-messaging/src/main/java/org/springframework/messaging/support/GenericMessage.java
@@ -49,18 +49,33 @@ * @param payload the message payload, never {@code null} */ public GenericMessage(T payload) { - this(payload, null); + this(payload, new MessageHeaders(null)); } /** * Create a new message with the given payload and headers. + * The content of the given header map is copied. ...
true
Other
spring-projects
spring-framework
4867546aec48a49a8bbfd63d86dd32a8ed5eaf83.json
Enhance MessageHeaderAccessor support Refine semantics of ID and TIMESTAMP headers provided to protected MessageHeaders constructor. Refactor internal implementation of MessageHeaderAccessor. Support mutating headers from a single thread while a message is being built (e.g. StompDecoder creating message + then addin...
spring-messaging/src/main/java/org/springframework/messaging/support/MessageBuilder.java
@@ -20,6 +20,7 @@ import org.springframework.messaging.Message; import org.springframework.messaging.MessageChannel; +import org.springframework.messaging.MessageHeaders; import org.springframework.util.Assert; /** @@ -36,23 +37,27 @@ */ public final class MessageBuilder<T> { + private final Message<T> ori...
true
Other
spring-projects
spring-framework
4867546aec48a49a8bbfd63d86dd32a8ed5eaf83.json
Enhance MessageHeaderAccessor support Refine semantics of ID and TIMESTAMP headers provided to protected MessageHeaders constructor. Refactor internal implementation of MessageHeaderAccessor. Support mutating headers from a single thread while a message is being built (e.g. StompDecoder creating message + then addin...
spring-messaging/src/main/java/org/springframework/messaging/support/MessageHeaderAccessor.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2013 the original author or authors. + * Copyright 2002-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -29,19 +29,74 @@ import org.springframework...
true
Other
spring-projects
spring-framework
4867546aec48a49a8bbfd63d86dd32a8ed5eaf83.json
Enhance MessageHeaderAccessor support Refine semantics of ID and TIMESTAMP headers provided to protected MessageHeaders constructor. Refactor internal implementation of MessageHeaderAccessor. Support mutating headers from a single thread while a message is being built (e.g. StompDecoder creating message + then addin...
spring-messaging/src/main/java/org/springframework/messaging/support/MessageHeaderAccessorFactorySupport.java
@@ -0,0 +1,67 @@ +/* + * Copyright 2002-2014 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + *...
true
Other
spring-projects
spring-framework
4867546aec48a49a8bbfd63d86dd32a8ed5eaf83.json
Enhance MessageHeaderAccessor support Refine semantics of ID and TIMESTAMP headers provided to protected MessageHeaders constructor. Refactor internal implementation of MessageHeaderAccessor. Support mutating headers from a single thread while a message is being built (e.g. StompDecoder creating message + then addin...
spring-messaging/src/main/java/org/springframework/messaging/support/NativeMessageHeaderAccessor.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2013 the original author or authors. + * Copyright 2002-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,25 +16,26 @@ package org.springframew...
true
Other
spring-projects
spring-framework
4867546aec48a49a8bbfd63d86dd32a8ed5eaf83.json
Enhance MessageHeaderAccessor support Refine semantics of ID and TIMESTAMP headers provided to protected MessageHeaders constructor. Refactor internal implementation of MessageHeaderAccessor. Support mutating headers from a single thread while a message is being built (e.g. StompDecoder creating message + then addin...
spring-messaging/src/test/java/org/springframework/messaging/MessageHeadersTests.java
@@ -20,6 +20,7 @@ import java.io.ByteArrayOutputStream; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; +import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Set; @@ -53,6 +54,25 @@ public void testTimestampOverwritten() throws Exception { assertNo...
true
Other
spring-projects
spring-framework
4867546aec48a49a8bbfd63d86dd32a8ed5eaf83.json
Enhance MessageHeaderAccessor support Refine semantics of ID and TIMESTAMP headers provided to protected MessageHeaders constructor. Refactor internal implementation of MessageHeaderAccessor. Support mutating headers from a single thread while a message is being built (e.g. StompDecoder creating message + then addin...
spring-messaging/src/test/java/org/springframework/messaging/handler/annotation/support/HeaderMethodArgumentResolverTests.java
@@ -17,6 +17,8 @@ package org.springframework.messaging.handler.annotation.support; import java.lang.reflect.Method; +import java.util.List; +import java.util.Map; import org.junit.Before; import org.junit.Test; @@ -149,7 +151,7 @@ private void handleMessage( public static class TestMessageHeaderAccessor exte...
true
Other
spring-projects
spring-framework
4867546aec48a49a8bbfd63d86dd32a8ed5eaf83.json
Enhance MessageHeaderAccessor support Refine semantics of ID and TIMESTAMP headers provided to protected MessageHeaders constructor. Refactor internal implementation of MessageHeaderAccessor. Support mutating headers from a single thread while a message is being built (e.g. StompDecoder creating message + then addin...
spring-messaging/src/test/java/org/springframework/messaging/simp/SimpMessagingTemplateTests.java
@@ -21,6 +21,7 @@ import org.springframework.messaging.Message; import org.springframework.messaging.StubMessageChannel; import org.springframework.messaging.support.NativeMessageHeaderAccessor; +import org.springframework.util.LinkedMultiValueMap; import java.util.*; @@ -87,9 +88,9 @@ public void convertAndSen...
true
Other
spring-projects
spring-framework
4867546aec48a49a8bbfd63d86dd32a8ed5eaf83.json
Enhance MessageHeaderAccessor support Refine semantics of ID and TIMESTAMP headers provided to protected MessageHeaders constructor. Refactor internal implementation of MessageHeaderAccessor. Support mutating headers from a single thread while a message is being built (e.g. StompDecoder creating message + then addin...
spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/BufferingStompDecoderTests.java
@@ -19,6 +19,7 @@ import org.junit.Test; import org.springframework.messaging.Message; import org.springframework.messaging.converter.MessageConversionException; +import org.springframework.util.LinkedMultiValueMap; import java.nio.ByteBuffer; import java.nio.charset.Charset; @@ -175,6 +176,17 @@ public void buf...
true
Other
spring-projects
spring-framework
4867546aec48a49a8bbfd63d86dd32a8ed5eaf83.json
Enhance MessageHeaderAccessor support Refine semantics of ID and TIMESTAMP headers provided to protected MessageHeaders constructor. Refactor internal implementation of MessageHeaderAccessor. Support mutating headers from a single thread while a message is being built (e.g. StompDecoder creating message + then addin...
spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/StompCodecTests.java
@@ -25,6 +25,7 @@ import org.springframework.messaging.simp.SimpMessageType; import org.springframework.messaging.support.MessageBuilder; +import org.springframework.util.InvalidMimeTypeException; import reactor.function.Consumer; import reactor.function.Function; import reactor.io.Buffer; @@ -48,7 +49,7 @@ publ...
true
Other
spring-projects
spring-framework
4867546aec48a49a8bbfd63d86dd32a8ed5eaf83.json
Enhance MessageHeaderAccessor support Refine semantics of ID and TIMESTAMP headers provided to protected MessageHeaders constructor. Refactor internal implementation of MessageHeaderAccessor. Support mutating headers from a single thread while a message is being built (e.g. StompDecoder creating message + then addin...
spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/StompHeaderAccessorTests.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2013 the original author or authors. + * Copyright 2002-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,22 +16,28 @@ package org.springframew...
true
Other
spring-projects
spring-framework
4867546aec48a49a8bbfd63d86dd32a8ed5eaf83.json
Enhance MessageHeaderAccessor support Refine semantics of ID and TIMESTAMP headers provided to protected MessageHeaders constructor. Refactor internal implementation of MessageHeaderAccessor. Support mutating headers from a single thread while a message is being built (e.g. StompDecoder creating message + then addin...
spring-messaging/src/test/java/org/springframework/messaging/support/MessageBuilderTests.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2013 the original author or authors. + * Copyright 2002-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,17 +21,25 @@ import java.util.Map; imp...
true
Other
spring-projects
spring-framework
4867546aec48a49a8bbfd63d86dd32a8ed5eaf83.json
Enhance MessageHeaderAccessor support Refine semantics of ID and TIMESTAMP headers provided to protected MessageHeaders constructor. Refactor internal implementation of MessageHeaderAccessor. Support mutating headers from a single thread while a message is being built (e.g. StompDecoder creating message + then addin...
spring-messaging/src/test/java/org/springframework/messaging/support/MessageHeaderAccessorTests.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2013 the original author or authors. + * Copyright 2002-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,14 +16,21 @@ package org.springframew...
true
Other
spring-projects
spring-framework
4867546aec48a49a8bbfd63d86dd32a8ed5eaf83.json
Enhance MessageHeaderAccessor support Refine semantics of ID and TIMESTAMP headers provided to protected MessageHeaders constructor. Refactor internal implementation of MessageHeaderAccessor. Support mutating headers from a single thread while a message is being built (e.g. StompDecoder creating message + then addin...
spring-messaging/src/test/java/org/springframework/messaging/support/NativeMessageHeaderAccessorTests.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2013 the original author or authors. + * Copyright 2002-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,16 +19,19 @@ import java.util.Arrays; ...
true
Other
spring-projects
spring-framework
4867546aec48a49a8bbfd63d86dd32a8ed5eaf83.json
Enhance MessageHeaderAccessor support Refine semantics of ID and TIMESTAMP headers provided to protected MessageHeaders constructor. Refactor internal implementation of MessageHeaderAccessor. Support mutating headers from a single thread while a message is being built (e.g. StompDecoder creating message + then addin...
spring-websocket/src/test/java/org/springframework/web/socket/messaging/StompSubProtocolHandlerTests.java
@@ -268,7 +268,7 @@ public void handleMessageFromClient() { assertNotNull(headers.getSessionAttributes()); assertEquals("joe", headers.getUser().getName()); assertEquals("guest", headers.getLogin()); - assertEquals("PROTECTED", headers.getPasscode()); + assertEquals("guest", headers.getPasscode()); assert...
true
Other
spring-projects
spring-framework
b4995f7e4f707da33434ecdafa6889a252ef7930.json
Add script after setting scripts in RsrcDbPopultr Prior to this commit it was impossible to add additional scripts to a ResourceDatabasePopulator after setScripts() had been invoked. This commit fixes this by ensuring that the internal scripts list continues to be modifiable when setScripts() is invoked. Issue: SPR-...
spring-jdbc/src/main/java/org/springframework/jdbc/datasource/init/ResourceDatabasePopulator.java
@@ -133,7 +133,8 @@ public void addScripts(Resource... scripts) { */ public void setScripts(Resource... scripts) { assertContentsOfScriptArray(scripts); - this.scripts = Arrays.asList(scripts); + // Ensure that the list is modifiable + this.scripts = new ArrayList<Resource>(Arrays.asList(scripts)); } /...
true
Other
spring-projects
spring-framework
b4995f7e4f707da33434ecdafa6889a252ef7930.json
Add script after setting scripts in RsrcDbPopultr Prior to this commit it was impossible to add additional scripts to a ResourceDatabasePopulator after setScripts() had been invoked. This commit fixes this by ensuring that the internal scripts list continues to be modifiable when setScripts() is invoked. Issue: SPR-...
spring-jdbc/src/test/java/org/springframework/jdbc/datasource/init/ResourceDatabasePopulatorTests.java
@@ -33,6 +33,7 @@ public class ResourceDatabasePopulatorTests { private static final Resource script1 = resource("script1"); private static final Resource script2 = resource("script2"); + private static final Resource script3 = resource("script3"); @Test(expected = IllegalArgumentException.class) @@ -57,6 +...
true
Other
spring-projects
spring-framework
84f678a06bb787641f492633552fa0de5e506d17.json
Assert preconditions in ResourceDatabasePopulator Prior to this commit ResourceDatabasePopulator did not assert any preconditions for constructor and method arguments. Consequently, errors would not be encountered until the populator was executed. This commit addresses this issue by ensuring that preconditions for co...
spring-jdbc/src/main/java/org/springframework/jdbc/datasource/init/DatabasePopulator.java
@@ -40,7 +40,7 @@ public interface DatabasePopulator { * {@link ResourceDatabasePopulator} and {@link DatabasePopulatorUtils} wrap * all {@code SQLExceptions} in {@code ScriptExceptions}. * @param connection the JDBC connection to use to populate the db; already - * configured and ready to use + * configured...
true
Other
spring-projects
spring-framework
84f678a06bb787641f492633552fa0de5e506d17.json
Assert preconditions in ResourceDatabasePopulator Prior to this commit ResourceDatabasePopulator did not assert any preconditions for constructor and method arguments. Consequently, errors would not be encountered until the populator was executed. This commit addresses this issue by ensuring that preconditions for co...
spring-jdbc/src/main/java/org/springframework/jdbc/datasource/init/ResourceDatabasePopulator.java
@@ -16,7 +16,6 @@ package org.springframework.jdbc.datasource.init; - import java.sql.Connection; import java.util.ArrayList; import java.util.Arrays; @@ -26,6 +25,7 @@ import org.springframework.core.io.Resource; import org.springframework.core.io.support.EncodedResource; +import org.springframework.util.A...
true
Other
spring-projects
spring-framework
84f678a06bb787641f492633552fa0de5e506d17.json
Assert preconditions in ResourceDatabasePopulator Prior to this commit ResourceDatabasePopulator did not assert any preconditions for constructor and method arguments. Consequently, errors would not be encountered until the populator was executed. This commit addresses this issue by ensuring that preconditions for co...
spring-jdbc/src/test/java/org/springframework/jdbc/datasource/init/ResourceDatabasePopulatorTests.java
@@ -0,0 +1,88 @@ +/* + * Copyright 2002-2014 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + *...
true
Other
spring-projects
spring-framework
8fecee8c8a251209743ca109ac30559cec7dfbf0.json
Improve Javadoc in SQL script support classes
spring-jdbc/src/main/java/org/springframework/jdbc/datasource/init/ResourceDatabasePopulator.java
@@ -48,6 +48,7 @@ * @author Chris Baldwin * @since 3.0 * @see DatabasePopulatorUtils + * @see ScriptUtils */ public class ResourceDatabasePopulator implements DatabasePopulator { @@ -195,10 +196,10 @@ public void setContinueOnError(boolean continueOnError) { /** * Flag to indicate that a failed SQL {@...
true
Other
spring-projects
spring-framework
8fecee8c8a251209743ca109ac30559cec7dfbf0.json
Improve Javadoc in SQL script support classes
spring-jdbc/src/main/java/org/springframework/jdbc/datasource/init/ScriptUtils.java
@@ -50,19 +50,19 @@ public abstract class ScriptUtils { private static final Log logger = LogFactory.getLog(ScriptUtils.class); /** - * Default statement separator within SQL scripts. + * Default statement separator within SQL scripts: {@code ";"}. */ public static final String DEFAULT_STATEMENT_SEPARATOR ...
true
Other
spring-projects
spring-framework
26309838ba3727a7358c331325df4f3b325c4674.json
Set custom handshakeHandler for XML sockjs config Prior to this commit, configuring a custom handshakeHandler when setting up a stomp-endpoint with SockJS would not be taken into account: <websocket:stomp-endpoint path="/foo"> <websocket:handshake-handler ref="customHandler"/> <websocket:sockjs/> </websoc...
spring-websocket/src/main/java/org/springframework/web/socket/config/MessageBrokerBeanDefinitionParser.java
@@ -249,9 +249,6 @@ private RuntimeBeanReference registerHttpRequestHandler(Element stompEndpointEle RootBeanDefinition httpRequestHandlerDef; - RuntimeBeanReference handshakeHandler = - WebSocketNamespaceUtils.registerHandshakeHandler(stompEndpointElement, parserCxt, source); - RuntimeBeanReference sockJ...
true
Other
spring-projects
spring-framework
26309838ba3727a7358c331325df4f3b325c4674.json
Set custom handshakeHandler for XML sockjs config Prior to this commit, configuring a custom handshakeHandler when setting up a stomp-endpoint with SockJS would not be taken into account: <websocket:stomp-endpoint path="/foo"> <websocket:handshake-handler ref="customHandler"/> <websocket:sockjs/> </websoc...
spring-websocket/src/main/java/org/springframework/web/socket/config/WebSocketNamespaceUtils.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2013 the original author or authors. + * Copyright 2002-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -29,6 +29,7 @@ import org.springframework.w...
true
Other
spring-projects
spring-framework
26309838ba3727a7358c331325df4f3b325c4674.json
Set custom handshakeHandler for XML sockjs config Prior to this commit, configuring a custom handshakeHandler when setting up a stomp-endpoint with SockJS would not be taken into account: <websocket:stomp-endpoint path="/foo"> <websocket:handshake-handler ref="customHandler"/> <websocket:sockjs/> </websoc...
spring-websocket/src/test/java/org/springframework/web/socket/config/MessageBrokerBeanDefinitionParserTests.java
@@ -18,13 +18,13 @@ import java.util.ArrayList; import java.util.Arrays; -import java.util.Collections; import java.util.List; import org.hamcrest.Matchers; import org.junit.Before; import org.junit.Test; +import org.springframework.beans.DirectFieldAccessor; import org.springframework.beans.factory.NoSuch...
true
Other
spring-projects
spring-framework
26309838ba3727a7358c331325df4f3b325c4674.json
Set custom handshakeHandler for XML sockjs config Prior to this commit, configuring a custom handshakeHandler when setting up a stomp-endpoint with SockJS would not be taken into account: <websocket:stomp-endpoint path="/foo"> <websocket:handshake-handler ref="customHandler"/> <websocket:sockjs/> </websoc...
spring-websocket/src/test/resources/org/springframework/web/socket/config/websocket-config-broker-relay.xml
@@ -6,7 +6,6 @@ <websocket:message-broker order="2"> <websocket:stomp-endpoint path="/foo"> - <websocket:handshake-handler ref="myHandler"/> <websocket:sockjs/> </websocket:stomp-endpoint> <websocket:stomp-broker-relay prefix="/topic,/queue" relay-host="relayhos...
true
Other
spring-projects
spring-framework
ac968e94ed1b9a1863a0345a030af506b25d9e0d.json
Add getter for the length of a WebSocket message
spring-websocket/src/main/java/org/springframework/web/socket/AbstractWebSocketMessage.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2013 the original author or authors. + * Copyright 2002-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -89,11 +89,9 @@ public boolean equals(Object...
true
Other
spring-projects
spring-framework
ac968e94ed1b9a1863a0345a030af506b25d9e0d.json
Add getter for the length of a WebSocket message
spring-websocket/src/main/java/org/springframework/web/socket/BinaryMessage.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2013 the original author or authors. + * Copyright 2002-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -83,7 +83,7 @@ public BinaryMessage(byte[] p...
true
Other
spring-projects
spring-framework
ac968e94ed1b9a1863a0345a030af506b25d9e0d.json
Add getter for the length of a WebSocket message
spring-websocket/src/main/java/org/springframework/web/socket/PingMessage.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2013 the original author or authors. + * Copyright 2002-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -44,13 +44,13 @@ public PingMessage(ByteBuff...
true
Other
spring-projects
spring-framework
ac968e94ed1b9a1863a0345a030af506b25d9e0d.json
Add getter for the length of a WebSocket message
spring-websocket/src/main/java/org/springframework/web/socket/PongMessage.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2013 the original author or authors. + * Copyright 2002-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -44,7 +44,7 @@ public PongMessage(ByteBuffer...
true
Other
spring-projects
spring-framework
ac968e94ed1b9a1863a0345a030af506b25d9e0d.json
Add getter for the length of a WebSocket message
spring-websocket/src/main/java/org/springframework/web/socket/TextMessage.java
@@ -16,6 +16,8 @@ package org.springframework.web.socket; +import java.nio.charset.Charset; + /** * A text WebSocket message. * @@ -24,13 +26,29 @@ */ public final class TextMessage extends AbstractWebSocketMessage<String> { + private static final Charset UTF_8 = Charset.forName("UTF-8"); + + private fin...
true
Other
spring-projects
spring-framework
ac968e94ed1b9a1863a0345a030af506b25d9e0d.json
Add getter for the length of a WebSocket message
spring-websocket/src/main/java/org/springframework/web/socket/WebSocketMessage.java
@@ -29,6 +29,12 @@ */ T getPayload(); + + /** + * Return the number of bytes contained in the message. + */ + int getPayloadLength(); + /** * When partial message support is available and requested via * {@link org.springframework.web.socket.WebSocketHandler#supportsPartialMessages()},
true
Other
spring-projects
spring-framework
ac968e94ed1b9a1863a0345a030af506b25d9e0d.json
Add getter for the length of a WebSocket message
spring-websocket/src/main/java/org/springframework/web/socket/messaging/StompSubProtocolHandler.java
@@ -18,7 +18,6 @@ import java.io.IOException; import java.nio.ByteBuffer; -import java.nio.charset.Charset; import java.security.Principal; import java.util.Arrays; import java.util.List; @@ -56,13 +55,11 @@ public class StompSubProtocolHandler implements SubProtocolHandler { /** - * The name of the header...
true
Other
spring-projects
spring-framework
52c3f713bf0f467a43fa55c9be425447d371531b.json
Fix handling of required payload. A payload that is required will now throw an appropriate exception regardless of if a conversion is required or not. isEmptyPayload now takes the payload instead of the message so that both the original payload and the converted payload, if necessary, share the same logic. JSR-303 v...
spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/support/MethodArgumentNotValidException.java
@@ -23,31 +23,39 @@ import org.springframework.validation.ObjectError; /** - * Exception to be thrown when validation on an method parameter annotated with {@code @Valid} fails. + * Exception to be thrown when a method argument is not valid. For instance, this + * can be issued if a validation on a method parameter...
true
Other
spring-projects
spring-framework
52c3f713bf0f467a43fa55c9be425447d371531b.json
Fix handling of required payload. A payload that is required will now throw an appropriate exception regardless of if a conversion is required or not. isEmptyPayload now takes the payload instead of the message so that both the original payload and the converted payload, if necessary, share the same logic. JSR-303 v...
spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/support/PayloadArgumentResolver.java
@@ -42,6 +42,7 @@ * * @author Rossen Stoyanchev * @author Brian Clozel + * @author Stephane Nicoll * @since 4.0 */ public class PayloadArgumentResolver implements HandlerMethodArgumentResolver { @@ -65,36 +66,53 @@ public boolean supportsParameter(MethodParameter parameter) { @Override public Object re...
true
Other
spring-projects
spring-framework
52c3f713bf0f467a43fa55c9be425447d371531b.json
Fix handling of required payload. A payload that is required will now throw an appropriate exception regardless of if a conversion is required or not. isEmptyPayload now takes the payload instead of the message so that both the original payload and the converted payload, if necessary, share the same logic. JSR-303 v...
spring-messaging/src/test/java/org/springframework/messaging/handler/annotation/support/PayloadArgumentResolverTests.java
@@ -16,77 +16,105 @@ package org.springframework.messaging.handler.annotation.support; +import static org.junit.Assert.*; + import java.lang.reflect.Method; +import java.util.Locale; import org.junit.Before; +import org.junit.Rule; import org.junit.Test; +import org.junit.rules.ExpectedException; + import or...
true
Other
spring-projects
spring-framework
52c3f713bf0f467a43fa55c9be425447d371531b.json
Fix handling of required payload. A payload that is required will now throw an appropriate exception regardless of if a conversion is required or not. isEmptyPayload now takes the payload instead of the message so that both the original payload and the converted payload, if necessary, share the same logic. JSR-303 v...
spring-messaging/src/test/java/org/springframework/messaging/simp/annotation/support/SimpAnnotationMethodMessageHandlerTests.java
@@ -35,7 +35,6 @@ import org.springframework.messaging.simp.annotation.SubscribeMapping; import org.springframework.messaging.support.MessageBuilder; import org.springframework.stereotype.Controller; -import org.springframework.util.StringUtils; import org.springframework.validation.Errors; import org.springframew...
true
Other
spring-projects
spring-framework
4cd818b9e45298237950e2e108e4629539cbcc4a.json
Harmonize log configuration Prior to this commit, the codebase was using a mix of log4j.xml and log4j.properties for test-related logging configuration. This can be an issue as log4j takes the xml variant first when looking for a default bootstrap configuration. In practice, some modules declaring the properties vari...
spring-aop/src/test/resources/log4j.properties
@@ -0,0 +1,10 @@ +log4j.appender.console=org.apache.log4j.ConsoleAppender +log4j.appender.console.layout=org.apache.log4j.PatternLayout +log4j.appender.console.layout.ConversionPattern=%d{HH:mm:ss,SSS} [%c] - %m%n + +log4j.rootCategory=WARN, console +log4j.logger.org.springframework.beans=WARN +log4j.logger.org.springf...
true
Other
spring-projects
spring-framework
4cd818b9e45298237950e2e108e4629539cbcc4a.json
Harmonize log configuration Prior to this commit, the codebase was using a mix of log4j.xml and log4j.properties for test-related logging configuration. This can be an issue as log4j takes the xml variant first when looking for a default bootstrap configuration. In practice, some modules declaring the properties vari...
spring-aop/src/test/resources/log4j.xml
@@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> - -<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> - - <!-- Appenders --> - <appender name="console" class="org.apache.log4j.ConsoleAppender"> - <param name="Target" value="System.out" /> - ...
true
Other
spring-projects
spring-framework
4cd818b9e45298237950e2e108e4629539cbcc4a.json
Harmonize log configuration Prior to this commit, the codebase was using a mix of log4j.xml and log4j.properties for test-related logging configuration. This can be an issue as log4j takes the xml variant first when looking for a default bootstrap configuration. In practice, some modules declaring the properties vari...
spring-aspects/src/test/resources/log4j.properties
@@ -0,0 +1,9 @@ +log4j.appender.console=org.apache.log4j.ConsoleAppender +log4j.appender.console.layout=org.apache.log4j.PatternLayout +log4j.appender.console.layout.ConversionPattern=%d{HH:mm:ss,SSS} [%c] - %m%n + +log4j.rootCategory=WARN, console +log4j.logger.org.springframework.beans=WARN +log4j.logger.org.springfr...
true
Other
spring-projects
spring-framework
4cd818b9e45298237950e2e108e4629539cbcc4a.json
Harmonize log configuration Prior to this commit, the codebase was using a mix of log4j.xml and log4j.properties for test-related logging configuration. This can be an issue as log4j takes the xml variant first when looking for a default bootstrap configuration. In practice, some modules declaring the properties vari...
spring-aspects/src/test/resources/log4j.xml
@@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> - -<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> - - <!-- Appenders --> - <appender name="console" class="org.apache.log4j.ConsoleAppender"> - <param name="Target" value="System.out" /> - ...
true
Other
spring-projects
spring-framework
4cd818b9e45298237950e2e108e4629539cbcc4a.json
Harmonize log configuration Prior to this commit, the codebase was using a mix of log4j.xml and log4j.properties for test-related logging configuration. This can be an issue as log4j takes the xml variant first when looking for a default bootstrap configuration. In practice, some modules declaring the properties vari...
spring-beans/src/test/resources/log4j.properties
@@ -0,0 +1,9 @@ +log4j.appender.console=org.apache.log4j.ConsoleAppender +log4j.appender.console.layout=org.apache.log4j.PatternLayout +log4j.appender.console.layout.ConversionPattern=%d{HH:mm:ss,SSS} [%c] - %m%n + +log4j.rootCategory=ERROR, console +log4j.logger.org.springframework.beans.factory.config.DeprecatedBeanW...
true
Other
spring-projects
spring-framework
4cd818b9e45298237950e2e108e4629539cbcc4a.json
Harmonize log configuration Prior to this commit, the codebase was using a mix of log4j.xml and log4j.properties for test-related logging configuration. This can be an issue as log4j takes the xml variant first when looking for a default bootstrap configuration. In practice, some modules declaring the properties vari...
spring-beans/src/test/resources/log4j.xml
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> - -<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> - - <!-- Appenders --> - <appender name="console" class="org.apache.log4j.ConsoleAppender"> - <param name="Target" value="System.out" /> - ...
true
Other
spring-projects
spring-framework
4cd818b9e45298237950e2e108e4629539cbcc4a.json
Harmonize log configuration Prior to this commit, the codebase was using a mix of log4j.xml and log4j.properties for test-related logging configuration. This can be an issue as log4j takes the xml variant first when looking for a default bootstrap configuration. In practice, some modules declaring the properties vari...
spring-context-support/src/test/resources/log4j.properties
@@ -0,0 +1,10 @@ +log4j.appender.console=org.apache.log4j.ConsoleAppender +log4j.appender.console.layout=org.apache.log4j.PatternLayout +log4j.appender.console.layout.ConversionPattern=%d{HH:mm:ss,SSS} [%c] - %m%n + +log4j.rootCategory=WARN, console +log4j.logger.org.springframework.beans=WARN +log4j.logger.org.springf...
true
Other
spring-projects
spring-framework
4cd818b9e45298237950e2e108e4629539cbcc4a.json
Harmonize log configuration Prior to this commit, the codebase was using a mix of log4j.xml and log4j.properties for test-related logging configuration. This can be an issue as log4j takes the xml variant first when looking for a default bootstrap configuration. In practice, some modules declaring the properties vari...
spring-context-support/src/test/resources/log4j.xml
@@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> - -<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> - - <!-- Appenders --> - <appender name="console" class="org.apache.log4j.ConsoleAppender"> - <param name="Target" value="System.out" /> - ...
true
Other
spring-projects
spring-framework
4cd818b9e45298237950e2e108e4629539cbcc4a.json
Harmonize log configuration Prior to this commit, the codebase was using a mix of log4j.xml and log4j.properties for test-related logging configuration. This can be an issue as log4j takes the xml variant first when looking for a default bootstrap configuration. In practice, some modules declaring the properties vari...
spring-context/src/test/resources/log4j.properties
@@ -0,0 +1,9 @@ +log4j.appender.console=org.apache.log4j.ConsoleAppender +log4j.appender.console.layout=org.apache.log4j.PatternLayout +log4j.appender.console.layout.ConversionPattern=%d{HH:mm:ss,SSS} [%c] - %m%n + +log4j.rootCategory=WARN, console +log4j.logger.org.springframework.core=INFO + +#log4j.logger.org.spring...
true
Other
spring-projects
spring-framework
4cd818b9e45298237950e2e108e4629539cbcc4a.json
Harmonize log configuration Prior to this commit, the codebase was using a mix of log4j.xml and log4j.properties for test-related logging configuration. This can be an issue as log4j takes the xml variant first when looking for a default bootstrap configuration. In practice, some modules declaring the properties vari...
spring-context/src/test/resources/log4j.xml
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> - -<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> - - <!-- Appenders --> - <appender name="console" class="org.apache.log4j.ConsoleAppender"> - <param name="Target" value="System.out" /> - ...
true
Other
spring-projects
spring-framework
4cd818b9e45298237950e2e108e4629539cbcc4a.json
Harmonize log configuration Prior to this commit, the codebase was using a mix of log4j.xml and log4j.properties for test-related logging configuration. This can be an issue as log4j takes the xml variant first when looking for a default bootstrap configuration. In practice, some modules declaring the properties vari...
spring-core/src/test/resources/log4j.properties
@@ -0,0 +1,11 @@ +log4j.appender.console=org.apache.log4j.ConsoleAppender +log4j.appender.console.layout=org.apache.log4j.PatternLayout +log4j.appender.console.layout.ConversionPattern=%d{HH:mm:ss,SSS} [%c] - %m%n + +log4j.rootCategory=WARN, console +log4j.logger.org.springframework.core.convert=WARN +log4j.logger.org....
true
Other
spring-projects
spring-framework
4cd818b9e45298237950e2e108e4629539cbcc4a.json
Harmonize log configuration Prior to this commit, the codebase was using a mix of log4j.xml and log4j.properties for test-related logging configuration. This can be an issue as log4j takes the xml variant first when looking for a default bootstrap configuration. In practice, some modules declaring the properties vari...
spring-core/src/test/resources/log4j.xml
@@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> - -<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> - - <!-- Appenders --> - <appender name="console" class="org.apache.log4j.ConsoleAppender"> - <param name="Target" value="System.out" /> - ...
true
Other
spring-projects
spring-framework
4cd818b9e45298237950e2e108e4629539cbcc4a.json
Harmonize log configuration Prior to this commit, the codebase was using a mix of log4j.xml and log4j.properties for test-related logging configuration. This can be an issue as log4j takes the xml variant first when looking for a default bootstrap configuration. In practice, some modules declaring the properties vari...
spring-expression/src/test/resources/log4j.properties
@@ -0,0 +1,10 @@ +log4j.appender.console=org.apache.log4j.ConsoleAppender +log4j.appender.console.layout=org.apache.log4j.PatternLayout +log4j.appender.console.layout.ConversionPattern=%d{HH:mm:ss,SSS} [%c] - %m%n + +log4j.rootCategory=WARN, console +log4j.logger.org.springframework.beans=WARN +log4j.logger.org.springf...
true
Other
spring-projects
spring-framework
4cd818b9e45298237950e2e108e4629539cbcc4a.json
Harmonize log configuration Prior to this commit, the codebase was using a mix of log4j.xml and log4j.properties for test-related logging configuration. This can be an issue as log4j takes the xml variant first when looking for a default bootstrap configuration. In practice, some modules declaring the properties vari...
spring-expression/src/test/resources/log4j.xml
@@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> - -<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> - - <!-- Appenders --> - <appender name="console" class="org.apache.log4j.ConsoleAppender"> - <param name="Target" value="System.out" /> - ...
true
Other
spring-projects
spring-framework
4cd818b9e45298237950e2e108e4629539cbcc4a.json
Harmonize log configuration Prior to this commit, the codebase was using a mix of log4j.xml and log4j.properties for test-related logging configuration. This can be an issue as log4j takes the xml variant first when looking for a default bootstrap configuration. In practice, some modules declaring the properties vari...
spring-instrument-tomcat/src/test/resources/log4j.properties
@@ -0,0 +1,10 @@ +log4j.appender.console=org.apache.log4j.ConsoleAppender +log4j.appender.console.layout=org.apache.log4j.PatternLayout +log4j.appender.console.layout.ConversionPattern=%d{HH:mm:ss,SSS} [%c] - %m%n + +log4j.rootCategory=WARN, console +log4j.logger.org.springframework.beans=WARN +log4j.logger.org.springf...
true
Other
spring-projects
spring-framework
4cd818b9e45298237950e2e108e4629539cbcc4a.json
Harmonize log configuration Prior to this commit, the codebase was using a mix of log4j.xml and log4j.properties for test-related logging configuration. This can be an issue as log4j takes the xml variant first when looking for a default bootstrap configuration. In practice, some modules declaring the properties vari...
spring-instrument-tomcat/src/test/resources/log4j.xml
@@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> - -<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> - - <!-- Appenders --> - <appender name="console" class="org.apache.log4j.ConsoleAppender"> - <param name="Target" value="System.out" /> - ...
true
Other
spring-projects
spring-framework
4cd818b9e45298237950e2e108e4629539cbcc4a.json
Harmonize log configuration Prior to this commit, the codebase was using a mix of log4j.xml and log4j.properties for test-related logging configuration. This can be an issue as log4j takes the xml variant first when looking for a default bootstrap configuration. In practice, some modules declaring the properties vari...
spring-instrument/src/test/resources/log4j.properties
@@ -0,0 +1,10 @@ +log4j.appender.console=org.apache.log4j.ConsoleAppender +log4j.appender.console.layout=org.apache.log4j.PatternLayout +log4j.appender.console.layout.ConversionPattern=%d{HH:mm:ss,SSS} [%c] - %m%n + +log4j.rootCategory=WARN, console +log4j.logger.org.springframework.beans=WARN +log4j.logger.org.springf...
true
Other
spring-projects
spring-framework
4cd818b9e45298237950e2e108e4629539cbcc4a.json
Harmonize log configuration Prior to this commit, the codebase was using a mix of log4j.xml and log4j.properties for test-related logging configuration. This can be an issue as log4j takes the xml variant first when looking for a default bootstrap configuration. In practice, some modules declaring the properties vari...
spring-instrument/src/test/resources/log4j.xml
@@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> - -<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> - - <!-- Appenders --> - <appender name="console" class="org.apache.log4j.ConsoleAppender"> - <param name="Target" value="System.out" /> - ...
true
Other
spring-projects
spring-framework
4cd818b9e45298237950e2e108e4629539cbcc4a.json
Harmonize log configuration Prior to this commit, the codebase was using a mix of log4j.xml and log4j.properties for test-related logging configuration. This can be an issue as log4j takes the xml variant first when looking for a default bootstrap configuration. In practice, some modules declaring the properties vari...
spring-jdbc/src/test/resources/log4j.properties
@@ -0,0 +1,10 @@ +log4j.appender.console=org.apache.log4j.ConsoleAppender +log4j.appender.console.layout=org.apache.log4j.PatternLayout +log4j.appender.console.layout.ConversionPattern=%d{HH:mm:ss,SSS} [%c] - %m%n + +log4j.rootCategory=WARN, console +log4j.logger.org.springframework.beans=WARN +log4j.logger.org.springf...
true
Other
spring-projects
spring-framework
4cd818b9e45298237950e2e108e4629539cbcc4a.json
Harmonize log configuration Prior to this commit, the codebase was using a mix of log4j.xml and log4j.properties for test-related logging configuration. This can be an issue as log4j takes the xml variant first when looking for a default bootstrap configuration. In practice, some modules declaring the properties vari...
spring-jdbc/src/test/resources/log4j.xml
@@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> - -<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> - - <!-- Appenders --> - <appender name="console" class="org.apache.log4j.ConsoleAppender"> - <param name="Target" value="System.out" /> - ...
true
Other
spring-projects
spring-framework
4cd818b9e45298237950e2e108e4629539cbcc4a.json
Harmonize log configuration Prior to this commit, the codebase was using a mix of log4j.xml and log4j.properties for test-related logging configuration. This can be an issue as log4j takes the xml variant first when looking for a default bootstrap configuration. In practice, some modules declaring the properties vari...
spring-jms/src/test/resources/log4j.properties
@@ -0,0 +1,11 @@ +log4j.appender.console=org.apache.log4j.ConsoleAppender +log4j.appender.console.layout=org.apache.log4j.PatternLayout +log4j.appender.console.layout.ConversionPattern=%d{HH:mm:ss,SSS} [%c] - %m%n + +log4j.rootCategory=WARN, console +log4j.logger.org.springframework.beans=WARN +log4j.logger.org.springf...
true
Other
spring-projects
spring-framework
4cd818b9e45298237950e2e108e4629539cbcc4a.json
Harmonize log configuration Prior to this commit, the codebase was using a mix of log4j.xml and log4j.properties for test-related logging configuration. This can be an issue as log4j takes the xml variant first when looking for a default bootstrap configuration. In practice, some modules declaring the properties vari...
spring-jms/src/test/resources/log4j.xml
@@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> - -<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> - - <!-- Appenders --> - <appender name="console" class="org.apache.log4j.ConsoleAppender"> - <param name="Target" value="System.out" /> - ...
true
Other
spring-projects
spring-framework
4cd818b9e45298237950e2e108e4629539cbcc4a.json
Harmonize log configuration Prior to this commit, the codebase was using a mix of log4j.xml and log4j.properties for test-related logging configuration. This can be an issue as log4j takes the xml variant first when looking for a default bootstrap configuration. In practice, some modules declaring the properties vari...
spring-messaging/src/test/resources/log4j.properties
@@ -0,0 +1,13 @@ +log4j.appender.console=org.apache.log4j.ConsoleAppender +log4j.appender.console.layout=org.apache.log4j.PatternLayout +log4j.appender.console.layout.ConversionPattern=%d{HH:mm:ss,SSS} [%c] - %m%n + +log4j.rootCategory=WARN, console +log4j.logger.org.springframework.messaging=DEBUG +log4j.logger.org.sp...
true
Other
spring-projects
spring-framework
4cd818b9e45298237950e2e108e4629539cbcc4a.json
Harmonize log configuration Prior to this commit, the codebase was using a mix of log4j.xml and log4j.properties for test-related logging configuration. This can be an issue as log4j takes the xml variant first when looking for a default bootstrap configuration. In practice, some modules declaring the properties vari...
spring-messaging/src/test/resources/log4j.xml
@@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> - -<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> - - <!-- Appenders --> - <appender name="console" class="org.apache.log4j.ConsoleAppender"> - <param name="Target" value="System.out" /> - ...
true
Other
spring-projects
spring-framework
4cd818b9e45298237950e2e108e4629539cbcc4a.json
Harmonize log configuration Prior to this commit, the codebase was using a mix of log4j.xml and log4j.properties for test-related logging configuration. This can be an issue as log4j takes the xml variant first when looking for a default bootstrap configuration. In practice, some modules declaring the properties vari...
spring-orm-hibernate4/src/test/resources/log4j.properties
@@ -0,0 +1,10 @@ +log4j.appender.console=org.apache.log4j.ConsoleAppender +log4j.appender.console.layout=org.apache.log4j.PatternLayout +log4j.appender.console.layout.ConversionPattern=%d{HH:mm:ss,SSS} [%c] - %m%n + +log4j.rootCategory=WARN, console +log4j.logger.org.springframework.beans=WARN +log4j.logger.org.springf...
true
Other
spring-projects
spring-framework
4cd818b9e45298237950e2e108e4629539cbcc4a.json
Harmonize log configuration Prior to this commit, the codebase was using a mix of log4j.xml and log4j.properties for test-related logging configuration. This can be an issue as log4j takes the xml variant first when looking for a default bootstrap configuration. In practice, some modules declaring the properties vari...
spring-orm/src/test/resources/log4j.properties
@@ -0,0 +1,10 @@ +log4j.appender.console=org.apache.log4j.ConsoleAppender +log4j.appender.console.layout=org.apache.log4j.PatternLayout +log4j.appender.console.layout.ConversionPattern=%d{HH:mm:ss,SSS} [%c] - %m%n + +log4j.rootCategory=INFO, console +log4j.logger.org.springframework.beans=WARN +log4j.logger.org.springf...
true
Other
spring-projects
spring-framework
4cd818b9e45298237950e2e108e4629539cbcc4a.json
Harmonize log configuration Prior to this commit, the codebase was using a mix of log4j.xml and log4j.properties for test-related logging configuration. This can be an issue as log4j takes the xml variant first when looking for a default bootstrap configuration. In practice, some modules declaring the properties vari...
spring-orm/src/test/resources/log4j.xml
@@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> - -<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> - - <!-- Appenders --> - <appender name="console" class="org.apache.log4j.ConsoleAppender"> - <param name="Target" value="System.out" /> - ...
true