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 | 2eeb2e92359381328789585233e54c9bbd41e6dc.json | Add a compiler for SpEL
With these changes an optional compiler is added for SpEL
expressions. The compiler is off by default but can be enabled
via the SpEL parser configuration object or system property
(when SpEL is embedded and parser configuration is not possible).
Not all expressions are currently handled but th... | spring-expression/src/main/java/org/springframework/expression/spel/support/ReflectiveMethodExecutor.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2012 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.
@@ -31,12 +31,13 @@
* @author Juergen Hoeller... | true |
Other | spring-projects | spring-framework | 2eeb2e92359381328789585233e54c9bbd41e6dc.json | Add a compiler for SpEL
With these changes an optional compiler is added for SpEL
expressions. The compiler is off by default but can be enabled
via the SpEL parser configuration object or system property
(when SpEL is embedded and parser configuration is not possible).
Not all expressions are currently handled but th... | spring-expression/src/main/java/org/springframework/expression/spel/support/ReflectivePropertyAccessor.java | @@ -29,15 +29,19 @@
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
+import org.springframework.asm.MethodVisitor;
import org.springframework.core.MethodParameter;
import org.springframework.core.convert.Property;
import org.springframework.core.convert.TypeDescriptor;
import org.springfram... | true |
Other | spring-projects | spring-framework | 2eeb2e92359381328789585233e54c9bbd41e6dc.json | Add a compiler for SpEL
With these changes an optional compiler is added for SpEL
expressions. The compiler is off by default but can be enabled
via the SpEL parser configuration object or system property
(when SpEL is embedded and parser configuration is not possible).
Not all expressions are currently handled but th... | spring-expression/src/test/java/org/springframework/expression/spel/SpelCompilationCoverageTests.java | @@ -0,0 +1,2603 @@
+/*
+ * Copyright 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 | 2eeb2e92359381328789585233e54c9bbd41e6dc.json | Add a compiler for SpEL
With these changes an optional compiler is added for SpEL
expressions. The compiler is off by default but can be enabled
via the SpEL parser configuration object or system property
(when SpEL is embedded and parser configuration is not possible).
Not all expressions are currently handled but th... | spring-expression/src/test/java/org/springframework/expression/spel/SpelCompilationPerformanceTests.java | @@ -0,0 +1,471 @@
+/*
+ * Copyright 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 | b78b2e9a03f5a6b7924dda0f8d709a5a9b23e24c.json | Fix priority semantic
Commit 5fe8f52 introduced a support for @Priority as an alternative to
@Primary but it broke the semantic of the priority value. This commit
fixes this inconsistency.
As for @Order, the lowest value means the highest priority so if
several beans are candidates for injection, the one having the l... | spring-beans/src/main/java/org/springframework/beans/factory/support/DefaultListableBeanFactory.java | @@ -1136,7 +1136,9 @@ else if (candidateLocal) {
}
/**
- * Determine the candidate with the highest priority in the given set of beans.
+ * Determine the candidate with the highest priority in the given set of beans. As
+ * defined by the {@link org.springframework.core.Ordered} interface, the lowest
+ * valu... | true |
Other | spring-projects | spring-framework | b78b2e9a03f5a6b7924dda0f8d709a5a9b23e24c.json | Fix priority semantic
Commit 5fe8f52 introduced a support for @Priority as an alternative to
@Primary but it broke the semantic of the priority value. This commit
fixes this inconsistency.
As for @Order, the lowest value means the highest priority so if
several beans are candidates for injection, the one having the l... | spring-beans/src/test/java/org/springframework/beans/factory/DefaultListableBeanFactoryTests.java | @@ -1399,7 +1399,7 @@ public void testGetBeanByTypeWithMultiplePriority() throws Exception {
lbf.registerBeanDefinition("bd2", bd2);
thrown.expect(NoUniqueBeanDefinitionException.class);
thrown.expectMessage(containsString("Multiple beans found with the same priority"));
- thrown.expectMessage(containsString(... | true |
Other | spring-projects | spring-framework | 4e257243f2dd2fdd5625286d01976b346a74f5d7.json | Reduce PlatformTransactionManager lookups
Prior to this commit, cache operations mentioning a qualifier led to
a lookup for the same PlatformTransactionManager over and over again.
The same applied when a transactionManager bean name was specified on
the interceptor.
This commit adds a cache to store the reference of... | spring-tx/src/main/java/org/springframework/transaction/interceptor/TransactionAspectSupport.java | @@ -33,6 +33,7 @@
import java.lang.reflect.Method;
import java.util.Properties;
+import java.util.concurrent.ConcurrentHashMap;
/**
* Base class for transactional aspects, such as the {@link TransactionInterceptor}
@@ -76,6 +77,9 @@ public abstract class TransactionAspectSupport implements BeanFactoryAware, In... | true |
Other | spring-projects | spring-framework | 4e257243f2dd2fdd5625286d01976b346a74f5d7.json | Reduce PlatformTransactionManager lookups
Prior to this commit, cache operations mentioning a qualifier led to
a lookup for the same PlatformTransactionManager over and over again.
The same applied when a transactionManager bean name was specified on
the interceptor.
This commit adds a cache to store the reference of... | spring-tx/src/test/java/org/springframework/transaction/interceptor/AbstractTransactionAspectTests.java | @@ -18,7 +18,7 @@
import java.lang.reflect.Method;
-import junit.framework.TestCase;
+import org.junit.Test;
import org.springframework.dao.OptimisticLockingFailureException;
import org.springframework.tests.sample.beans.ITestBean;
@@ -33,6 +33,7 @@
import org.springframework.transaction.UnexpectedRollbackExc... | true |
Other | spring-projects | spring-framework | 4e257243f2dd2fdd5625286d01976b346a74f5d7.json | Reduce PlatformTransactionManager lookups
Prior to this commit, cache operations mentioning a qualifier led to
a lookup for the same PlatformTransactionManager over and over again.
The same applied when a transactionManager bean name was specified on
the interceptor.
This commit adds a cache to store the reference of... | spring-tx/src/test/java/org/springframework/transaction/interceptor/TransactionInterceptorTests.java | @@ -16,10 +16,20 @@
package org.springframework.transaction.interceptor;
+import static org.junit.Assert.*;
+import static org.mockito.BDDMockito.given;
+import static org.mockito.Mockito.*;
+
import java.io.Serializable;
import java.util.Properties;
+import org.junit.Rule;
+import org.junit.Test;
+import org.... | true |
Other | spring-projects | spring-framework | 58955236ee3640748cdea52360893b7078470e9b.json | Introduce tests for Spring Boot issue 885
This commit introduces unit tests that attempt to reproduce the problem
described in Spring Boot issue 885; however, the tests pass and
therefore do not confirm the reported problem.
See: https://github.com/spring-projects/spring-boot/issues/885 | spring-test/src/test/java/org/springframework/test/context/support/ContextLoaderUtilsMergedConfigTests.java | @@ -16,7 +16,13 @@
package org.springframework.test.context.support;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
import org.junit.Test;
+import org.springframework.test.context.ContextConfigu... | false |
Other | spring-projects | spring-framework | c2da8467320660a98897e5f3a2b7cf1c637146b3.json | Add support for extra MessageProducer method
This commit supports two additional methods of the MessageProducer
interface as from JMS 2.0
An integration test infrastructure is necessary to be able to test
those scenario: this is taken care of in a separated initiative.
Issue: SPR-11950 | spring-jms/src/main/java/org/springframework/jms/connection/CachedMessageProducer.java | @@ -282,6 +282,12 @@ public Object invoke(Object proxy, Method method, Object[] args) throws Throwabl
else if (args.length == 3) {
return sendWithDestinationAndCompletionListenerMethod.invoke(
target, args[0], args[1], deliveryMode, priority, timeToLive, args[2]);
+ } else if (args.length == 5... | false |
Other | spring-projects | spring-framework | f667e43ca2fc3ffdc4f80fa604fb798b22b64dad.json | Introduce programmatic tx mgmt in the TCF
Historically, Spring's JUnit 3.8 TestCase class hierarchy supported
programmatic transaction management of "test-managed transactions" via
the protected endTransaction() and startNewTransaction() methods in
AbstractTransactionalSpringContextTests.
The Spring TestContext Frame... | spring-test/src/main/java/org/springframework/test/context/transaction/TestTransaction.java | @@ -0,0 +1,146 @@
+/*
+ * 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 | f667e43ca2fc3ffdc4f80fa604fb798b22b64dad.json | Introduce programmatic tx mgmt in the TCF
Historically, Spring's JUnit 3.8 TestCase class hierarchy supported
programmatic transaction management of "test-managed transactions" via
the protected endTransaction() and startNewTransaction() methods in
AbstractTransactionalSpringContextTests.
The Spring TestContext Frame... | spring-test/src/main/java/org/springframework/test/context/transaction/TransactionContext.java | @@ -0,0 +1,140 @@
+/*
+ * 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 | f667e43ca2fc3ffdc4f80fa604fb798b22b64dad.json | Introduce programmatic tx mgmt in the TCF
Historically, Spring's JUnit 3.8 TestCase class hierarchy supported
programmatic transaction management of "test-managed transactions" via
the protected endTransaction() and startNewTransaction() methods in
AbstractTransactionalSpringContextTests.
The Spring TestContext Frame... | spring-test/src/main/java/org/springframework/test/context/transaction/TransactionContextHolder.java | @@ -0,0 +1,49 @@
+/*
+ * 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 | f667e43ca2fc3ffdc4f80fa604fb798b22b64dad.json | Introduce programmatic tx mgmt in the TCF
Historically, Spring's JUnit 3.8 TestCase class hierarchy supported
programmatic transaction management of "test-managed transactions" via
the protected endTransaction() and startNewTransaction() methods in
AbstractTransactionalSpringContextTests.
The Spring TestContext Frame... | spring-test/src/main/java/org/springframework/test/context/transaction/TransactionalTestExecutionListener.java | @@ -22,8 +22,6 @@
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
-import java.util.Map;
-import java.util.concurrent.ConcurrentHashMap;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@@ -38,7 +36,6 @@
import org.springframework.test.context... | true |
Other | spring-projects | spring-framework | f667e43ca2fc3ffdc4f80fa604fb798b22b64dad.json | Introduce programmatic tx mgmt in the TCF
Historically, Spring's JUnit 3.8 TestCase class hierarchy supported
programmatic transaction management of "test-managed transactions" via
the protected endTransaction() and startNewTransaction() methods in
AbstractTransactionalSpringContextTests.
The Spring TestContext Frame... | spring-test/src/test/java/org/springframework/test/context/jdbc/EmptyDatabaseConfig.java | @@ -40,7 +40,9 @@ public PlatformTransactionManager transactionManager() {
@Bean
public DataSource dataSource() {
- return new EmbeddedDatabaseBuilder().build();
+ return new EmbeddedDatabaseBuilder()//
+ .setName("empty-sql-scripts-test-db")//
+ .build();
}
} | true |
Other | spring-projects | spring-framework | f667e43ca2fc3ffdc4f80fa604fb798b22b64dad.json | Introduce programmatic tx mgmt in the TCF
Historically, Spring's JUnit 3.8 TestCase class hierarchy supported
programmatic transaction management of "test-managed transactions" via
the protected endTransaction() and startNewTransaction() methods in
AbstractTransactionalSpringContextTests.
The Spring TestContext Frame... | spring-test/src/test/java/org/springframework/test/context/jdbc/PopulatedSchemaDatabaseConfig.java | @@ -42,6 +42,7 @@ public PlatformTransactionManager transactionManager() {
@Bean
public DataSource dataSource() {
return new EmbeddedDatabaseBuilder()//
+ .setName("populated-sql-scripts-test-db")//
.addScript("classpath:/org/springframework/test/context/jdbc/schema.sql") //
.build();
} | true |
Other | spring-projects | spring-framework | f667e43ca2fc3ffdc4f80fa604fb798b22b64dad.json | Introduce programmatic tx mgmt in the TCF
Historically, Spring's JUnit 3.8 TestCase class hierarchy supported
programmatic transaction management of "test-managed transactions" via
the protected endTransaction() and startNewTransaction() methods in
AbstractTransactionalSpringContextTests.
The Spring TestContext Frame... | spring-test/src/test/java/org/springframework/test/context/transaction/TransactionalTestExecutionListenerTests.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,6 +19,7 @@
import java.lang.annotation.... | true |
Other | spring-projects | spring-framework | f667e43ca2fc3ffdc4f80fa604fb798b22b64dad.json | Introduce programmatic tx mgmt in the TCF
Historically, Spring's JUnit 3.8 TestCase class hierarchy supported
programmatic transaction management of "test-managed transactions" via
the protected endTransaction() and startNewTransaction() methods in
AbstractTransactionalSpringContextTests.
The Spring TestContext Frame... | spring-test/src/test/java/org/springframework/test/context/transaction/programmatic/ProgrammaticTxMgmtTests.java | @@ -0,0 +1,284 @@
+/*
+ * 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 | 476864f3e91411b1f75c8777154c7d118341a6e3.json | Expose handled exception as request attribute
This change exposes exceptions handled in the DispatcherServlet with a
HandlerExceptionResolver as a request attribute. This is done only when
the resolver returns an empty ModelAndView indicating the exception was
resolved but not view is required (e.g. status code was se... | spring-webmvc/src/main/java/org/springframework/web/servlet/DispatcherServlet.java | @@ -232,6 +232,13 @@ public class DispatcherServlet extends FrameworkServlet {
*/
public static final String FLASH_MAP_MANAGER_ATTRIBUTE = DispatcherServlet.class.getName() + ".FLASH_MAP_MANAGER";
+ /**
+ * Name of request attribute that exposes an Exception resolved with an
+ * {@link HandlerExceptionResolver... | false |
Other | spring-projects | spring-framework | d52f07aa1b83208dd84b65d2a4ba724b3a0227ff.json | Log STOMP ERROR frames at error level
Issue: SPR-11673 | spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandler.java | @@ -583,20 +583,23 @@ public void handleMessage(Message<byte[]> message) {
StompHeaderAccessor headerAccessor =
MessageHeaderAccessor.getAccessor(message, StompHeaderAccessor.class);
+ headerAccessor.setSessionId(this.sessionId);
+
if (headerAccessor.isHeartbeat()) {
logger.trace("Received broker... | false |
Other | spring-projects | spring-framework | 209bb4ee4b93d8b7f0aed794d784cd830701c8c3.json | Fix Javadoc typo | spring-websocket/src/main/java/org/springframework/web/socket/client/standard/AnnotatedEndpointConnectionManager.java | @@ -19,7 +19,6 @@
import javax.websocket.ContainerProvider;
import javax.websocket.Session;
import javax.websocket.WebSocketContainer;
-import javax.websocket.server.ServerEndpoint;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanFactory;
@@ -31,10 +30,11 @@
import ... | false |
Other | spring-projects | spring-framework | bd85c916eb98a8278ad55a393be4590a20eca4fd.json | Integrate animal sniffer
Animal sniffer provides tools to assist verifying that classes
compiled with a newer JDK are compatible with an older JDK.
This integratesthe latest version of the tool (1.11) that
permits the use of custom annotations. Added @UsesJava7,
@UsesJava8 and @UsesSunHttpServer and annotated the few... | build.gradle | @@ -30,6 +30,7 @@ configure(allprojects) { project ->
ext.tiles3Version = "3.0.3"
ext.tomcatVersion = "8.0.5"
ext.xstreamVersion = "1.4.7"
+ ext.snifferVersion = "1.11"
ext.gradleScriptDir = "${rootProject.projectDir}/gradle"
@@ -38,6 +39,11 @@ configure(allprojects) { project ->... | true |
Other | spring-projects | spring-framework | bd85c916eb98a8278ad55a393be4590a20eca4fd.json | Integrate animal sniffer
Animal sniffer provides tools to assist verifying that classes
compiled with a newer JDK are compatible with an older JDK.
This integratesthe latest version of the tool (1.11) that
permits the use of custom annotations. Added @UsesJava7,
@UsesJava8 and @UsesSunHttpServer and annotated the few... | spring-beans/src/main/java/org/springframework/beans/propertyeditors/ZoneIdEditor.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,6 +19,8 @@
import java.beans.PropertyEd... | true |
Other | spring-projects | spring-framework | bd85c916eb98a8278ad55a393be4590a20eca4fd.json | Integrate animal sniffer
Animal sniffer provides tools to assist verifying that classes
compiled with a newer JDK are compatible with an older JDK.
This integratesthe latest version of the tool (1.11) that
permits the use of custom annotations. Added @UsesJava7,
@UsesJava8 and @UsesSunHttpServer and annotated the few... | spring-context/src/main/java/org/springframework/format/datetime/joda/JodaTimeConverters.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. | true |
Other | spring-projects | spring-framework | bd85c916eb98a8278ad55a393be4590a20eca4fd.json | Integrate animal sniffer
Animal sniffer provides tools to assist verifying that classes
compiled with a newer JDK are compatible with an older JDK.
This integratesthe latest version of the tool (1.11) that
permits the use of custom annotations. Added @UsesJava7,
@UsesJava8 and @UsesSunHttpServer and annotated the few... | spring-context/src/main/java/org/springframework/format/datetime/standard/DateTimeContext.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.
@@ -24,6 +24,7 @@
import org.springframework.c... | true |
Other | spring-projects | spring-framework | bd85c916eb98a8278ad55a393be4590a20eca4fd.json | Integrate animal sniffer
Animal sniffer provides tools to assist verifying that classes
compiled with a newer JDK are compatible with an older JDK.
This integratesthe latest version of the tool (1.11) that
permits the use of custom annotations. Added @UsesJava7,
@UsesJava8 and @UsesSunHttpServer and annotated the few... | spring-context/src/main/java/org/springframework/format/datetime/standard/DateTimeContextHolder.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,6 +19,7 @@
import java.time.format.Date... | true |
Other | spring-projects | spring-framework | bd85c916eb98a8278ad55a393be4590a20eca4fd.json | Integrate animal sniffer
Animal sniffer provides tools to assist verifying that classes
compiled with a newer JDK are compatible with an older JDK.
This integratesthe latest version of the tool (1.11) that
permits the use of custom annotations. Added @UsesJava7,
@UsesJava8 and @UsesSunHttpServer and annotated the few... | spring-context/src/main/java/org/springframework/format/datetime/standard/DateTimeConverters.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.
@@ -26,6 +26,7 @@
import java.util.Calendar;
... | true |
Other | spring-projects | spring-framework | bd85c916eb98a8278ad55a393be4590a20eca4fd.json | Integrate animal sniffer
Animal sniffer provides tools to assist verifying that classes
compiled with a newer JDK are compatible with an older JDK.
This integratesthe latest version of the tool (1.11) that
permits the use of custom annotations. Added @UsesJava7,
@UsesJava8 and @UsesSunHttpServer and annotated the few... | spring-context/src/main/java/org/springframework/format/datetime/standard/DateTimeFormatterFactory.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2012 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.
@@ -20,6 +20,7 @@
import java.time.format.Form... | true |
Other | spring-projects | spring-framework | bd85c916eb98a8278ad55a393be4590a20eca4fd.json | Integrate animal sniffer
Animal sniffer provides tools to assist verifying that classes
compiled with a newer JDK are compatible with an older JDK.
This integratesthe latest version of the tool (1.11) that
permits the use of custom annotations. Added @UsesJava7,
@UsesJava8 and @UsesSunHttpServer and annotated the few... | spring-context/src/main/java/org/springframework/format/datetime/standard/DateTimeFormatterRegistrar.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.
@@ -28,6 +28,7 @@
import java.util.HashMap;
i... | true |
Other | spring-projects | spring-framework | bd85c916eb98a8278ad55a393be4590a20eca4fd.json | Integrate animal sniffer
Animal sniffer provides tools to assist verifying that classes
compiled with a newer JDK are compatible with an older JDK.
This integratesthe latest version of the tool (1.11) that
permits the use of custom annotations. Added @UsesJava7,
@UsesJava8 and @UsesSunHttpServer and annotated the few... | spring-context/src/main/java/org/springframework/format/datetime/standard/InstantFormatter.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.
@@ -20,6 +20,7 @@
import java.time.Instant;
i... | true |
Other | spring-projects | spring-framework | bd85c916eb98a8278ad55a393be4590a20eca4fd.json | Integrate animal sniffer
Animal sniffer provides tools to assist verifying that classes
compiled with a newer JDK are compatible with an older JDK.
This integratesthe latest version of the tool (1.11) that
permits the use of custom annotations. Added @UsesJava7,
@UsesJava8 and @UsesSunHttpServer and annotated the few... | spring-context/src/main/java/org/springframework/format/datetime/standard/TemporalAccessorParser.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.
@@ -27,6 +27,7 @@
import java.time.temporal.Te... | true |
Other | spring-projects | spring-framework | bd85c916eb98a8278ad55a393be4590a20eca4fd.json | Integrate animal sniffer
Animal sniffer provides tools to assist verifying that classes
compiled with a newer JDK are compatible with an older JDK.
This integratesthe latest version of the tool (1.11) that
permits the use of custom annotations. Added @UsesJava7,
@UsesJava8 and @UsesSunHttpServer and annotated the few... | spring-context/src/main/java/org/springframework/format/datetime/standard/TemporalAccessorPrinter.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.
@@ -20,6 +20,7 @@
import java.time.temporal.Te... | true |
Other | spring-projects | spring-framework | bd85c916eb98a8278ad55a393be4590a20eca4fd.json | Integrate animal sniffer
Animal sniffer provides tools to assist verifying that classes
compiled with a newer JDK are compatible with an older JDK.
This integratesthe latest version of the tool (1.11) that
permits the use of custom annotations. Added @UsesJava7,
@UsesJava8 and @UsesSunHttpServer and annotated the few... | spring-context/src/main/java/org/springframework/remoting/support/SimpleHttpServerFactoryBean.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2012 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.
@@ -33,6 +33,7 @@
import org.springframework.b... | true |
Other | spring-projects | spring-framework | bd85c916eb98a8278ad55a393be4590a20eca4fd.json | Integrate animal sniffer
Animal sniffer provides tools to assist verifying that classes
compiled with a newer JDK are compatible with an older JDK.
This integratesthe latest version of the tool (1.11) that
permits the use of custom annotations. Added @UsesJava7,
@UsesJava8 and @UsesSunHttpServer and annotated the few... | spring-context/src/main/java/org/springframework/scheduling/concurrent/ForkJoinPoolFactoryBean.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.
@@ -22,6 +22,7 @@
import org.springframework.b... | true |
Other | spring-projects | spring-framework | bd85c916eb98a8278ad55a393be4590a20eca4fd.json | Integrate animal sniffer
Animal sniffer provides tools to assist verifying that classes
compiled with a newer JDK are compatible with an older JDK.
This integratesthe latest version of the tool (1.11) that
permits the use of custom annotations. Added @UsesJava7,
@UsesJava8 and @UsesSunHttpServer and annotated the few... | spring-core/src/main/java/org/springframework/core/StandardReflectionParameterNameDiscoverer.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.
@@ -28,6 +28,7 @@
* @since 4.0
* @see java.... | true |
Other | spring-projects | spring-framework | bd85c916eb98a8278ad55a393be4590a20eca4fd.json | Integrate animal sniffer
Animal sniffer provides tools to assist verifying that classes
compiled with a newer JDK are compatible with an older JDK.
This integratesthe latest version of the tool (1.11) that
permits the use of custom annotations. Added @UsesJava7,
@UsesJava8 and @UsesSunHttpServer and annotated the few... | spring-core/src/main/java/org/springframework/core/UsesJava7.java | @@ -0,0 +1,35 @@
+/*
+ * 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 | bd85c916eb98a8278ad55a393be4590a20eca4fd.json | Integrate animal sniffer
Animal sniffer provides tools to assist verifying that classes
compiled with a newer JDK are compatible with an older JDK.
This integratesthe latest version of the tool (1.11) that
permits the use of custom annotations. Added @UsesJava7,
@UsesJava8 and @UsesSunHttpServer and annotated the few... | spring-core/src/main/java/org/springframework/core/UsesJava8.java | @@ -0,0 +1,36 @@
+/*
+ * 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 | bd85c916eb98a8278ad55a393be4590a20eca4fd.json | Integrate animal sniffer
Animal sniffer provides tools to assist verifying that classes
compiled with a newer JDK are compatible with an older JDK.
This integratesthe latest version of the tool (1.11) that
permits the use of custom annotations. Added @UsesJava7,
@UsesJava8 and @UsesSunHttpServer and annotated the few... | spring-core/src/main/java/org/springframework/core/UsesSunHttpServer.java | @@ -0,0 +1,36 @@
+/*
+ * 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 | bd85c916eb98a8278ad55a393be4590a20eca4fd.json | Integrate animal sniffer
Animal sniffer provides tools to assist verifying that classes
compiled with a newer JDK are compatible with an older JDK.
This integratesthe latest version of the tool (1.11) that
permits the use of custom annotations. Added @UsesJava7,
@UsesJava8 and @UsesSunHttpServer and annotated the few... | spring-core/src/main/java/org/springframework/core/convert/support/ZoneIdToTimeZoneConverter.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,6 +19,7 @@
import java.time.ZoneId;
im... | true |
Other | spring-projects | spring-framework | bd85c916eb98a8278ad55a393be4590a20eca4fd.json | Integrate animal sniffer
Animal sniffer provides tools to assist verifying that classes
compiled with a newer JDK are compatible with an older JDK.
This integratesthe latest version of the tool (1.11) that
permits the use of custom annotations. Added @UsesJava7,
@UsesJava8 and @UsesSunHttpServer and annotated the few... | spring-core/src/main/java/org/springframework/core/convert/support/ZonedDateTimeToCalendarConverter.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.
@@ -20,6 +20,7 @@
import java.util.Calendar;
... | true |
Other | spring-projects | spring-framework | bd85c916eb98a8278ad55a393be4590a20eca4fd.json | Integrate animal sniffer
Animal sniffer provides tools to assist verifying that classes
compiled with a newer JDK are compatible with an older JDK.
This integratesthe latest version of the tool (1.11) that
permits the use of custom annotations. Added @UsesJava7,
@UsesJava8 and @UsesSunHttpServer and annotated the few... | spring-core/src/main/java/org/springframework/core/io/PathResource.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.
@@ -28,6 +28,7 @@
import java.nio.file.Path;
... | true |
Other | spring-projects | spring-framework | bd85c916eb98a8278ad55a393be4590a20eca4fd.json | Integrate animal sniffer
Animal sniffer provides tools to assist verifying that classes
compiled with a newer JDK are compatible with an older JDK.
This integratesthe latest version of the tool (1.11) that
permits the use of custom annotations. Added @UsesJava7,
@UsesJava8 and @UsesSunHttpServer and annotated the few... | spring-jdbc/src/main/java/org/springframework/jdbc/core/SqlRowSetResultSetExtractor.java | @@ -22,6 +22,7 @@
import javax.sql.rowset.RowSetFactory;
import javax.sql.rowset.RowSetProvider;
+import org.springframework.core.UsesJava7;
import org.springframework.core.JdkVersion;
import org.springframework.jdbc.support.rowset.ResultSetWrappingSqlRowSet;
import org.springframework.jdbc.support.rowset.SqlRow... | true |
Other | spring-projects | spring-framework | bd85c916eb98a8278ad55a393be4590a20eca4fd.json | Integrate animal sniffer
Animal sniffer provides tools to assist verifying that classes
compiled with a newer JDK are compatible with an older JDK.
This integratesthe latest version of the tool (1.11) that
permits the use of custom annotations. Added @UsesJava7,
@UsesJava8 and @UsesSunHttpServer and annotated the few... | spring-jdbc/src/main/java/org/springframework/jdbc/support/JdbcUtils.java | @@ -34,6 +34,7 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+import org.springframework.core.UsesJava7;
import org.springframework.jdbc.CannotGetJdbcConnectionException;
import org.springframework.jdbc.datasource.DataSourceUtils;
import org.springframework.util.ClassUti... | true |
Other | spring-projects | spring-framework | bd85c916eb98a8278ad55a393be4590a20eca4fd.json | Integrate animal sniffer
Animal sniffer provides tools to assist verifying that classes
compiled with a newer JDK are compatible with an older JDK.
This integratesthe latest version of the tool (1.11) that
permits the use of custom annotations. Added @UsesJava7,
@UsesJava8 and @UsesSunHttpServer and annotated the few... | spring-web/src/main/java/org/springframework/remoting/caucho/SimpleBurlapServiceExporter.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.
@@ -22,6 +22,7 @@
import com.sun.net.httpserve... | true |
Other | spring-projects | spring-framework | bd85c916eb98a8278ad55a393be4590a20eca4fd.json | Integrate animal sniffer
Animal sniffer provides tools to assist verifying that classes
compiled with a newer JDK are compatible with an older JDK.
This integratesthe latest version of the tool (1.11) that
permits the use of custom annotations. Added @UsesJava7,
@UsesJava8 and @UsesSunHttpServer and annotated the few... | spring-web/src/main/java/org/springframework/remoting/caucho/SimpleHessianServiceExporter.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.
@@ -22,6 +22,7 @@
import com.sun.net.httpserve... | true |
Other | spring-projects | spring-framework | bd85c916eb98a8278ad55a393be4590a20eca4fd.json | Integrate animal sniffer
Animal sniffer provides tools to assist verifying that classes
compiled with a newer JDK are compatible with an older JDK.
This integratesthe latest version of the tool (1.11) that
permits the use of custom annotations. Added @UsesJava7,
@UsesJava8 and @UsesSunHttpServer and annotated the few... | spring-web/src/main/java/org/springframework/remoting/httpinvoker/SimpleHttpInvokerServiceExporter.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2012 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.
@@ -25,6 +25,7 @@
import com.sun.net.httpserve... | true |
Other | spring-projects | spring-framework | bd85c916eb98a8278ad55a393be4590a20eca4fd.json | Integrate animal sniffer
Animal sniffer provides tools to assist verifying that classes
compiled with a newer JDK are compatible with an older JDK.
This integratesthe latest version of the tool (1.11) that
permits the use of custom annotations. Added @UsesJava7,
@UsesJava8 and @UsesSunHttpServer and annotated the few... | spring-web/src/main/java/org/springframework/remoting/jaxws/AbstractJaxWsServiceExporter.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.
@@ -34,6 +34,7 @@
import org.springframework.b... | true |
Other | spring-projects | spring-framework | bd85c916eb98a8278ad55a393be4590a20eca4fd.json | Integrate animal sniffer
Animal sniffer provides tools to assist verifying that classes
compiled with a newer JDK are compatible with an older JDK.
This integratesthe latest version of the tool (1.11) that
permits the use of custom annotations. Added @UsesJava7,
@UsesJava8 and @UsesSunHttpServer and annotated the few... | spring-web/src/main/java/org/springframework/remoting/jaxws/LocalJaxWsServiceFactory.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.
@@ -24,6 +24,7 @@
import javax.xml.ws.WebServi... | true |
Other | spring-projects | spring-framework | bd85c916eb98a8278ad55a393be4590a20eca4fd.json | Integrate animal sniffer
Animal sniffer provides tools to assist verifying that classes
compiled with a newer JDK are compatible with an older JDK.
This integratesthe latest version of the tool (1.11) that
permits the use of custom annotations. Added @UsesJava7,
@UsesJava8 and @UsesSunHttpServer and annotated the few... | spring-web/src/main/java/org/springframework/remoting/jaxws/SimpleHttpServerJaxWsServiceExporter.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2009 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.
@@ -28,6 +28,7 @@
import com.sun.net.httpserve... | true |
Other | spring-projects | spring-framework | bd85c916eb98a8278ad55a393be4590a20eca4fd.json | Integrate animal sniffer
Animal sniffer provides tools to assist verifying that classes
compiled with a newer JDK are compatible with an older JDK.
This integratesthe latest version of the tool (1.11) that
permits the use of custom annotations. Added @UsesJava7,
@UsesJava8 and @UsesSunHttpServer and annotated the few... | spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ServletRequestMethodArgumentResolver.java | @@ -27,6 +27,7 @@
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
+import org.springframework.core.UsesJava8;
import org.springframework.core.MethodParameter;
import org.springframework.http.HttpMethod;
import org.springframework.web.bind.support.WebDataBinderFactory;
@@ -133... | true |
Other | spring-projects | spring-framework | bd85c916eb98a8278ad55a393be4590a20eca4fd.json | Integrate animal sniffer
Animal sniffer provides tools to assist verifying that classes
compiled with a newer JDK are compatible with an older JDK.
This integratesthe latest version of the tool (1.11) that
permits the use of custom annotations. Added @UsesJava7,
@UsesJava8 and @UsesSunHttpServer and annotated the few... | spring-websocket/src/main/java/org/springframework/web/socket/client/standard/StandardWebSocketClient.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.
@@ -33,6 +33,7 @@
import javax.websocket.Hands... | true |
Other | spring-projects | spring-framework | 90081f787f2f24e6ab73baa81c9b11510d87c799.json | Fix Cacheable javadoc
This commits fixes a confusing phrasing of Cacheable javadoc that
mentioned explicitly that the method signature is used to compute the
key for the cache.
Issue: SPR-11736 | spring-context/src/main/java/org/springframework/cache/annotation/Cacheable.java | @@ -26,8 +26,15 @@
/**
* Annotation indicating that a method (or all the methods on a class) can be cached.
*
- * <p>The method arguments and signature are used for computing the key while the
- * returned instance is used as the cache value.
+ * <p>Each time a targeted method is invoked, a caching behavior will b... | false |
Other | spring-projects | spring-framework | 56d26443e22d0704c655fa2535fe48501b8cebff.json | Fix one more issue in STOMP broker relay int test | spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandlerIntegrationTests.java | @@ -168,6 +168,8 @@ public void messageDeliveryExceptionIfSystemSessionForwardFails() throws Excepti
logger.debug("Starting test messageDeliveryExceptionIfSystemSessionForwardFails()");
stopActiveMqBrokerAndAwait();
+ this.eventPublisher.expectBrokerAvailabilityEvent(false);
+
StompHeaderAccessor headers = ... | false |
Other | spring-projects | spring-framework | 1200755125f97c2f1035586081645bb244b06304.json | Fix issue with subscribe destination
The original fix for SPR-11423:
https://github.com/spring-projects/spring-framework/commit/32e5f57e647022d9ea82c03670936bf31f8467de
was insufficient when using an external broker since the original
destination header has to be in the "native headers" map (i.e. with
STOMP headers) ... | spring-messaging/src/main/java/org/springframework/messaging/simp/user/UserDestinationMessageHandler.java | @@ -175,10 +175,8 @@ public void handleMessage(Message<?> message) throws MessagingException {
}
if (SimpMessageType.MESSAGE.equals(SimpMessageHeaderAccessor.getMessageType(message.getHeaders()))) {
SimpMessageHeaderAccessor headerAccessor = SimpMessageHeaderAccessor.wrap(message);
- if (getHeaderInitialize... | true |
Other | spring-projects | spring-framework | 1200755125f97c2f1035586081645bb244b06304.json | Fix issue with subscribe destination
The original fix for SPR-11423:
https://github.com/spring-projects/spring-framework/commit/32e5f57e647022d9ea82c03670936bf31f8467de
was insufficient when using an external broker since the original
destination header has to be in the "native headers" map (i.e. with
STOMP headers) ... | spring-messaging/src/test/java/org/springframework/messaging/simp/user/UserDestinationMessageHandlerTests.java | @@ -91,8 +91,9 @@ public void handleMessage() {
ArgumentCaptor<Message> captor = ArgumentCaptor.forClass(Message.class);
Mockito.verify(this.brokerChannel).send(captor.capture());
- assertEquals("/queue/foo-user123", SimpMessageHeaderAccessor.getDestination(captor.getValue().getHeaders()));
- assertEquals("/u... | true |
Other | spring-projects | spring-framework | 1200755125f97c2f1035586081645bb244b06304.json | Fix issue with subscribe destination
The original fix for SPR-11423:
https://github.com/spring-projects/spring-framework/commit/32e5f57e647022d9ea82c03670936bf31f8467de
was insufficient when using an external broker since the original
destination header has to be in the "native headers" map (i.e. with
STOMP headers) ... | spring-websocket/src/main/java/org/springframework/web/socket/messaging/StompSubProtocolHandler.java | @@ -298,10 +298,10 @@ else if (stompAccessor.getCommand() == null || StompCommand.SEND.equals(stompAcc
logger.error("Ignoring message, no subscriptionId header: " + message);
return;
}
- String header = SimpMessageHeaderAccessor.ORIGINAL_DESTINATION;
- if (message.getHeaders().containsKey(header)) {
+... | true |
Other | spring-projects | spring-framework | 1200755125f97c2f1035586081645bb244b06304.json | Fix issue with subscribe destination
The original fix for SPR-11423:
https://github.com/spring-projects/spring-framework/commit/32e5f57e647022d9ea82c03670936bf31f8467de
was insufficient when using an external broker since the original
destination header has to be in the "native headers" map (i.e. with
STOMP headers) ... | spring-websocket/src/test/java/org/springframework/web/socket/messaging/StompSubProtocolHandlerTests.java | @@ -239,7 +239,7 @@ public void handleMessageToClientUserDestination() {
headers.setMessageId("mess0");
headers.setSubscriptionId("sub0");
headers.setDestination("/queue/foo-user123");
- headers.setHeader(StompHeaderAccessor.ORIGINAL_DESTINATION, "/user/queue/foo");
+ headers.setNativeHeader(StompHeaderAcces... | true |
Other | spring-projects | spring-framework | 09341b996e17e3c526d77a0de3b3048771a4cbb3.json | Add space separator in JsonPathExpectationsHelper | spring-test/src/main/java/org/springframework/test/util/JsonPathExpectationsHelper.java | @@ -101,7 +101,7 @@ else if (actualValue != null && expectedValue != null) {
assertEquals("For JSON path " + this.expression + " type of value",
expectedValue.getClass(), actualValue.getClass());
}
- assertEquals("JSON path" + this.expression, expectedValue, actualValue);
+ assertEquals("JSON path " + th... | false |
Other | spring-projects | spring-framework | c4843577bab0a9ebf5277853dd70a2e01dd1facd.json | Fix PrefixResourceResolver implementation
The configured prefix should not begin with a "/", since
PublicResourceUrlProvider is already taking path mapping into account
when resolving resources and URLs. | spring-webmvc/src/main/java/org/springframework/web/servlet/resource/PrefixResourceResolver.java | @@ -50,7 +50,7 @@ public class PrefixResourceResolver extends AbstractResourceResolver {
public PrefixResourceResolver(String prefix) {
Assert.hasText(prefix, "prefix must not be null or empty");
- this.prefix = prefix.startsWith("/") ? prefix : "/" + prefix;
+ this.prefix = prefix.startsWith("/") ? prefix.sub... | true |
Other | spring-projects | spring-framework | c4843577bab0a9ebf5277853dd70a2e01dd1facd.json | Fix PrefixResourceResolver implementation
The configured prefix should not begin with a "/", since
PublicResourceUrlProvider is already taking path mapping into account
when resolving resources and URLs. | spring-webmvc/src/test/java/org/springframework/web/servlet/resource/PrefixResourceResolverTests.java | @@ -54,14 +54,14 @@ public void setUp() {
public void resolveResource() {
String resourceId = "foo.css";
Resource expected = new ClassPathResource("test/foo.css", getClass());
- Resource actual = this.chain.resolveResource(null, "/" + this.shaPrefix + "/" + resourceId, this.locations);
+ Resource actual = thi... | true |
Other | spring-projects | spring-framework | 10e1a805403883c9bc9ed19205e6306ffb01db73.json | Update Javadoc for PublicResourceUrlProvider | spring-webmvc/src/main/java/org/springframework/web/servlet/resource/PublicResourceUrlProvider.java | @@ -34,9 +34,12 @@
/**
- * A central component for serving static resources that is aware of Spring MVC
- * handler mappings and provides methods to determine the public URL path that
- * a client should use to access a static resource.
+ * A central component to use to obtain the public URL path that clients shou... | false |
Other | spring-projects | spring-framework | 5559209233c3090593aa013d1729fad1ab851a1c.json | Remove useless imports | spring-beans/src/test/java/org/springframework/beans/factory/config/CustomEditorConfigurerTests.java | @@ -28,7 +28,6 @@
import static org.junit.Assert.*;
import org.junit.Test;
-import org.springframework.beans.FatalBeanException;
import org.springframework.beans.MutablePropertyValues;
import org.springframework.beans.PropertyEditorRegistrar;
import org.springframework.beans.PropertyEditorRegistry; | true |
Other | spring-projects | spring-framework | 5559209233c3090593aa013d1729fad1ab851a1c.json | Remove useless imports | spring-beans/src/test/java/org/springframework/beans/factory/parsing/FailFastProblemReporterTests.java | @@ -20,7 +20,6 @@
import org.junit.Test;
import org.springframework.core.io.DescriptiveResource;
-import static org.mockito.Matchers.*;
import static org.mockito.BDDMockito.*;
/** | true |
Other | spring-projects | spring-framework | 5559209233c3090593aa013d1729fad1ab851a1c.json | Remove useless imports | spring-context/src/main/java/org/springframework/context/annotation/ConfigurationClass.java | @@ -16,7 +16,6 @@
package org.springframework.context.annotation;
-import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.Map; | true |
Other | spring-projects | spring-framework | 5559209233c3090593aa013d1729fad1ab851a1c.json | Remove useless imports | spring-context/src/test/java/org/springframework/aop/aspectj/DeclareParentsTests.java | @@ -18,10 +18,9 @@
import org.junit.Before;
import org.junit.Test;
-import org.springframework.aop.framework.Advised;
+
import org.springframework.aop.support.AopUtils;
import org.springframework.tests.sample.beans.ITestBean;
-import org.springframework.tests.sample.beans.TestBean;
import org.springframework.con... | true |
Other | spring-projects | spring-framework | 5559209233c3090593aa013d1729fad1ab851a1c.json | Remove useless imports | spring-context/src/test/java/org/springframework/context/annotation/EnableLoadTimeWeavingTests.java | @@ -23,7 +23,6 @@
import org.springframework.context.support.GenericXmlApplicationContext;
import org.springframework.instrument.classloading.LoadTimeWeaver;
-import static org.mockito.Matchers.*;
import static org.mockito.BDDMockito.*;
/** | true |
Other | spring-projects | spring-framework | 5559209233c3090593aa013d1729fad1ab851a1c.json | Remove useless imports | spring-context/src/test/java/org/springframework/context/annotation/ImportSelectorTests.java | @@ -41,7 +41,6 @@
import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.*;
-import static org.mockito.Matchers.*;
import static org.mockito.Mockito.*;
/** | true |
Other | spring-projects | spring-framework | 5559209233c3090593aa013d1729fad1ab851a1c.json | Remove useless imports | spring-context/src/test/java/org/springframework/scripting/groovy/GroovyScriptFactoryTests.java | @@ -23,7 +23,6 @@
import groovy.lang.DelegatingMetaClass;
import groovy.lang.GroovyObject;
-import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.springframework.aop.support.AopUtils;
@@ -45,8 +44,6 @@
import org.springframework.scripting.ScriptSource;
import org.springframework.s... | true |
Other | spring-projects | spring-framework | 5559209233c3090593aa013d1729fad1ab851a1c.json | Remove useless imports | spring-core/src/main/java/org/springframework/util/xml/StaxResult.java | @@ -16,7 +16,6 @@
package org.springframework.util.xml;
-import javax.xml.stream.XMLEventFactory;
import javax.xml.stream.XMLEventWriter;
import javax.xml.stream.XMLStreamWriter;
import javax.xml.transform.sax.SAXResult; | true |
Other | spring-projects | spring-framework | 5559209233c3090593aa013d1729fad1ab851a1c.json | Remove useless imports | spring-core/src/test/java/org/springframework/util/xml/StaxStreamXMLReaderTests.java | @@ -31,7 +31,6 @@
import org.xml.sax.Locator;
import static org.junit.Assert.*;
-import static org.mockito.Matchers.*;
import static org.mockito.BDDMockito.*;
public class StaxStreamXMLReaderTests extends AbstractStaxXMLReaderTestCase { | true |
Other | spring-projects | spring-framework | 5559209233c3090593aa013d1729fad1ab851a1c.json | Remove useless imports | spring-messaging/src/test/java/org/springframework/messaging/simp/annotation/support/SendToMethodReturnValueHandlerTests.java | @@ -48,7 +48,6 @@
import org.springframework.util.MimeType;
import static org.junit.Assert.*;
-import static org.mockito.Matchers.*;
import static org.mockito.Mockito.*;
/** | true |
Other | spring-projects | spring-framework | 5559209233c3090593aa013d1729fad1ab851a1c.json | Remove useless imports | spring-messaging/src/test/java/org/springframework/messaging/simp/annotation/support/SubscriptionMethodReturnValueHandlerTests.java | @@ -43,7 +43,6 @@
import org.springframework.util.MimeType;
import static org.junit.Assert.*;
-import static org.mockito.Matchers.*;
import static org.mockito.Mockito.*;
/** | true |
Other | spring-projects | spring-framework | 5559209233c3090593aa013d1729fad1ab851a1c.json | Remove useless imports | spring-orm/src/test/java/org/springframework/orm/hibernate3/LocalSessionFactoryBeanTests.java | @@ -34,8 +34,6 @@
import org.hibernate.HibernateException;
import org.hibernate.Interceptor;
import org.hibernate.SessionFactory;
-import org.hibernate.cache.CacheProvider;
-import org.hibernate.cache.NoCacheProvider;
import org.hibernate.cache.RegionFactory;
import org.hibernate.cache.impl.NoCachingRegionFactory;... | true |
Other | spring-projects | spring-framework | 5559209233c3090593aa013d1729fad1ab851a1c.json | Remove useless imports | spring-orm/src/test/java/org/springframework/orm/jpa/JpaTransactionManagerTests.java | @@ -23,7 +23,6 @@
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.EntityTransaction;
-import javax.persistence.PersistenceException;
import javax.persistence.RollbackException;
import javax.sql.DataSource;
| true |
Other | spring-projects | spring-framework | 5559209233c3090593aa013d1729fad1ab851a1c.json | Remove useless imports | spring-oxm/src/test/java/org/springframework/oxm/castor/CastorMarshallerTests.java | @@ -40,7 +40,6 @@
import static org.custommonkey.xmlunit.XMLAssert.assertXMLEqual;
import static org.junit.Assert.*;
-import static org.mockito.Matchers.*;
import static org.mockito.Mockito.*;
/** | true |
Other | spring-projects | spring-framework | 5559209233c3090593aa013d1729fad1ab851a1c.json | Remove useless imports | spring-test/src/main/java/org/springframework/test/context/support/ContextLoaderUtils.java | @@ -30,8 +30,6 @@
import org.springframework.test.context.ContextConfigurationAttributes;
import org.springframework.test.context.ContextHierarchy;
import org.springframework.test.context.SmartContextLoader;
-import org.springframework.test.util.MetaAnnotationUtils.AnnotationDescriptor;
-import org.springframework.t... | true |
Other | spring-projects | spring-framework | 5559209233c3090593aa013d1729fad1ab851a1c.json | Remove useless imports | spring-test/src/main/java/org/springframework/test/context/support/DefaultActiveProfilesResolver.java | @@ -24,7 +24,6 @@
import org.springframework.core.annotation.AnnotationAttributes;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.ActiveProfilesResolver;
-import org.springframework.test.util.MetaAnnotationUtils.AnnotationDescriptor;
import org.springframework.util.A... | true |
Other | spring-projects | spring-framework | 5559209233c3090593aa013d1729fad1ab851a1c.json | Remove useless imports | spring-test/src/test/java/org/springframework/test/util/MetaAnnotationUtilsTests.java | @@ -29,8 +29,6 @@
import org.springframework.stereotype.Service;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.util.MetaAnnotationUtils;
-import org.springframework.test.util.MetaAnnotationUtils.AnnotationDescriptor;
-import org.springframework.test.util.MetaAnnotation... | true |
Other | spring-projects | spring-framework | 5559209233c3090593aa013d1729fad1ab851a1c.json | Remove useless imports | spring-test/src/test/java/org/springframework/test/util/OverriddenMetaAnnotationAttributesTests.java | @@ -23,7 +23,6 @@
import org.springframework.core.annotation.AnnotationAttributes;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.util.MetaAnnotationUtils;
-import org.springframework.test.util.MetaAnnotationUtils.AnnotationDescriptor;
import static org.springframewo... | true |
Other | spring-projects | spring-framework | 5559209233c3090593aa013d1729fad1ab851a1c.json | Remove useless imports | spring-web/src/test/java/org/springframework/http/converter/xml/MarshallingHttpMessageConverterTests.java | @@ -32,7 +32,6 @@
import org.springframework.oxm.UnmarshallingFailureException;
import static org.junit.Assert.*;
-import static org.mockito.Matchers.*;
import static org.mockito.Mockito.*;
/** | true |
Other | spring-projects | spring-framework | 5559209233c3090593aa013d1729fad1ab851a1c.json | Remove useless imports | spring-web/src/test/java/org/springframework/web/context/support/AnnotationConfigWebApplicationContextTests.java | @@ -16,8 +16,6 @@
package org.springframework.web.context.support;
-import static org.junit.Assert.assertNotNull;
-
import org.junit.Test;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.factory.support.BeanDefinitionRegistry; | true |
Other | spring-projects | spring-framework | 5559209233c3090593aa013d1729fad1ab851a1c.json | Remove useless imports | spring-web/src/test/java/org/springframework/web/method/annotation/ModelAttributeMethodProcessorTests.java | @@ -42,7 +42,6 @@
import static java.lang.annotation.RetentionPolicy.*;
import static org.junit.Assert.*;
import static org.mockito.BDDMockito.*;
-import static org.mockito.Matchers.*;
import static org.mockito.Mockito.*;
/** | true |
Other | spring-projects | spring-framework | 5559209233c3090593aa013d1729fad1ab851a1c.json | Remove useless imports | spring-webmvc-tiles3/src/test/java/org/springframework/web/servlet/view/tiles3/TilesViewTests.java | @@ -29,7 +29,6 @@
import org.springframework.web.servlet.DispatcherServlet;
import static org.junit.Assert.*;
-import static org.mockito.Matchers.*;
import static org.mockito.BDDMockito.*;
/** | true |
Other | spring-projects | spring-framework | 5559209233c3090593aa013d1729fad1ab851a1c.json | Remove useless imports | spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/WebContentInterceptorTests.java | @@ -25,8 +25,7 @@
import org.junit.Before;
import org.junit.Test;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertTrue;
+
import static org.junit.Assert.*;
/** | true |
Other | spring-projects | spring-framework | 5559209233c3090593aa013d1729fad1ab851a1c.json | Remove useless imports | spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/HttpEntityMethodProcessorMockTests.java | @@ -40,8 +40,6 @@
import org.springframework.web.context.request.ServletWebRequest;
import org.springframework.web.method.support.ModelAndViewContainer;
-import static org.mockito.Mockito.*;
-
import static org.junit.Assert.*;
import static org.mockito.BDDMockito.*;
import static org.springframework.web.servlet.... | true |
Other | spring-projects | spring-framework | 5559209233c3090593aa013d1729fad1ab851a1c.json | Remove useless imports | spring-websocket/src/test/java/org/springframework/web/socket/adapter/standard/StandardWebSocketHandlerAdapterTests.java | @@ -25,11 +25,8 @@
import org.junit.Test;
import org.springframework.web.socket.CloseStatus;
import org.springframework.web.socket.WebSocketHandler;
-import org.springframework.web.socket.adapter.standard.StandardWebSocketHandlerAdapter;
-import org.springframework.web.socket.adapter.standard.StandardWebSocketSessio... | true |
Other | spring-projects | spring-framework | 5559209233c3090593aa013d1729fad1ab851a1c.json | Remove useless imports | spring-websocket/src/test/java/org/springframework/web/socket/sockjs/transport/handler/DefaultSockJsServiceTests.java | @@ -35,8 +35,6 @@
import org.springframework.web.socket.sockjs.transport.session.TestSockJsSession;
import static org.junit.Assert.*;
-import static org.mockito.Matchers.any;
-import static org.mockito.Matchers.eq;
import static org.mockito.Mockito.*;
/** | true |
Other | spring-projects | spring-framework | 5559209233c3090593aa013d1729fad1ab851a1c.json | Remove useless imports | spring-websocket/src/test/java/org/springframework/web/socket/sockjs/transport/handler/HttpSendingTransportHandlerTests.java | @@ -32,7 +32,6 @@
import org.springframework.web.socket.sockjs.transport.session.StubSockJsServiceConfig;
import static org.junit.Assert.*;
-import static org.mockito.Matchers.any;
import static org.mockito.Mockito.*;
/** | true |
Other | spring-projects | spring-framework | 5559209233c3090593aa013d1729fad1ab851a1c.json | Remove useless imports | spring-websocket/src/test/java/org/springframework/web/socket/sockjs/transport/session/SockJsSessionTests.java | @@ -32,7 +32,6 @@
import org.springframework.web.socket.handler.ExceptionWebSocketHandlerDecorator;
import static org.junit.Assert.*;
-import static org.mockito.Matchers.*;
import static org.mockito.Mockito.*;
/** | true |
Other | spring-projects | spring-framework | 5559209233c3090593aa013d1729fad1ab851a1c.json | Remove useless imports | spring-websocket/src/test/java/org/springframework/web/socket/sockjs/transport/session/WebSocketServerSockJsSessionTests.java | @@ -33,7 +33,6 @@
import org.springframework.web.socket.handler.TestWebSocketSession;
import static org.junit.Assert.*;
-import static org.mockito.Matchers.*;
import static org.mockito.Mockito.*;
/** | true |
Other | spring-projects | spring-framework | 7469159bf1ddbb0eac292388883fa1904f98d4f0.json | Add MessageSendingOperations for JMS
This commit adds a JMS implementation of MessageSendingOperations,
allowing to send JMS messages using Spring's standard Messaging
abstraction.
MessagingMessageConverter is a standard JMS's MessageConverter that
can convert Spring's Message to JMS message and vice versa. Existing
... | spring-jms/src/main/java/org/springframework/jms/listener/adapter/AbstractAdaptableMessageListener.java | @@ -32,6 +32,7 @@
import org.springframework.jms.support.converter.JmsHeaderMapper;
import org.springframework.jms.support.converter.MessageConversionException;
import org.springframework.jms.support.converter.MessageConverter;
+import org.springframework.jms.support.converter.MessagingMessageConverter;
import org.... | true |
Other | spring-projects | spring-framework | 7469159bf1ddbb0eac292388883fa1904f98d4f0.json | Add MessageSendingOperations for JMS
This commit adds a JMS implementation of MessageSendingOperations,
allowing to send JMS messages using Spring's standard Messaging
abstraction.
MessagingMessageConverter is a standard JMS's MessageConverter that
can convert Spring's Message to JMS message and vice versa. Existing
... | spring-jms/src/main/java/org/springframework/jms/listener/adapter/MessagingMessageListenerAdapter.java | @@ -16,16 +16,14 @@
package org.springframework.jms.listener.adapter;
-import java.util.Map;
-
import javax.jms.JMSException;
import javax.jms.Session;
import org.springframework.jms.support.converter.JmsHeaderMapper;
+import org.springframework.jms.support.converter.MessageConversionException;
import org.sp... | true |
Other | spring-projects | spring-framework | 7469159bf1ddbb0eac292388883fa1904f98d4f0.json | Add MessageSendingOperations for JMS
This commit adds a JMS implementation of MessageSendingOperations,
allowing to send JMS messages using Spring's standard Messaging
abstraction.
MessagingMessageConverter is a standard JMS's MessageConverter that
can convert Spring's Message to JMS message and vice versa. Existing
... | spring-jms/src/main/java/org/springframework/jms/messaging/JmsMessageSendingOperations.java | @@ -0,0 +1,92 @@
+/*
+ * 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 | 7469159bf1ddbb0eac292388883fa1904f98d4f0.json | Add MessageSendingOperations for JMS
This commit adds a JMS implementation of MessageSendingOperations,
allowing to send JMS messages using Spring's standard Messaging
abstraction.
MessagingMessageConverter is a standard JMS's MessageConverter that
can convert Spring's Message to JMS message and vice versa. Existing
... | spring-jms/src/main/java/org/springframework/jms/messaging/JmsMessagingTemplate.java | @@ -0,0 +1,206 @@
+/*
+ * 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 | 7469159bf1ddbb0eac292388883fa1904f98d4f0.json | Add MessageSendingOperations for JMS
This commit adds a JMS implementation of MessageSendingOperations,
allowing to send JMS messages using Spring's standard Messaging
abstraction.
MessagingMessageConverter is a standard JMS's MessageConverter that
can convert Spring's Message to JMS message and vice versa. Existing
... | spring-jms/src/main/java/org/springframework/jms/messaging/package-info.java | @@ -0,0 +1,20 @@
+/*
+ * 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 | 7469159bf1ddbb0eac292388883fa1904f98d4f0.json | Add MessageSendingOperations for JMS
This commit adds a JMS implementation of MessageSendingOperations,
allowing to send JMS messages using Spring's standard Messaging
abstraction.
MessagingMessageConverter is a standard JMS's MessageConverter that
can convert Spring's Message to JMS message and vice versa. Existing
... | spring-jms/src/main/java/org/springframework/jms/support/converter/MessagingMessageConverter.java | @@ -0,0 +1,116 @@
+/*
+ * 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 | 7469159bf1ddbb0eac292388883fa1904f98d4f0.json | Add MessageSendingOperations for JMS
This commit adds a JMS implementation of MessageSendingOperations,
allowing to send JMS messages using Spring's standard Messaging
abstraction.
MessagingMessageConverter is a standard JMS's MessageConverter that
can convert Spring's Message to JMS message and vice versa. Existing
... | spring-jms/src/test/java/org/springframework/jms/messaging/JmsMessagingTemplateTests.java | @@ -0,0 +1,250 @@
+/*
+ * 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 | 7469159bf1ddbb0eac292388883fa1904f98d4f0.json | Add MessageSendingOperations for JMS
This commit adds a JMS implementation of MessageSendingOperations,
allowing to send JMS messages using Spring's standard Messaging
abstraction.
MessagingMessageConverter is a standard JMS's MessageConverter that
can convert Spring's Message to JMS message and vice versa. Existing
... | spring-jms/src/test/java/org/springframework/jms/support/converter/MessagingMessageConverterTests.java | @@ -0,0 +1,97 @@
+/*
+ * 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 | 7469159bf1ddbb0eac292388883fa1904f98d4f0.json | Add MessageSendingOperations for JMS
This commit adds a JMS implementation of MessageSendingOperations,
allowing to send JMS messages using Spring's standard Messaging
abstraction.
MessagingMessageConverter is a standard JMS's MessageConverter that
can convert Spring's Message to JMS message and vice versa. Existing
... | spring-messaging/src/main/java/org/springframework/messaging/core/AbstractMessageSendingTemplate.java | @@ -34,6 +34,7 @@
*
* @author Mark Fisher
* @author Rossen Stoyanchev
+ * @author Stephane Nicoll
* @since 4.0
*/
public abstract class AbstractMessageSendingTemplate<D> implements MessageSendingOperations<D> {
@@ -99,7 +100,7 @@ public void send(D destination, Message<?> message) {
@Override
public vo... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.