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 | 6b7360fed1741bd9f7208f993f1df0036e2137d6.json | Apply new ResponseStatusException hierarchy
This commit replaces use of the existing ServletException-based
exceptions with the new ones from ~.web.server. | spring-web-reactive/src/test/java/org/springframework/web/reactive/DispatcherHandlerErrorTests.java | @@ -41,14 +41,14 @@
import org.springframework.http.server.reactive.MockServerHttpRequest;
import org.springframework.http.server.reactive.MockServerHttpResponse;
import org.springframework.stereotype.Controller;
-import org.springframework.web.HttpMediaTypeNotAcceptableException;
-import org.springframework.web.ser... | true |
Other | spring-projects | spring-framework | 6b7360fed1741bd9f7208f993f1df0036e2137d6.json | Apply new ResponseStatusException hierarchy
This commit replaces use of the existing ServletException-based
exceptions with the new ones from ~.web.server. | spring-web-reactive/src/test/java/org/springframework/web/reactive/ResponseStatusExceptionHandlerTests.java | @@ -35,6 +35,8 @@
import static org.mockito.Mockito.mock;
/**
+ * Unit tests for {@link ResponseStatusExceptionHandler}.
+ *
* @author Rossen Stoyanchev
*/
public class ResponseStatusExceptionHandlerTests {
@@ -58,7 +60,7 @@ public void setUp() throws Exception {
@Test
public void handleException() throw... | true |
Other | spring-projects | spring-framework | 6b7360fed1741bd9f7208f993f1df0036e2137d6.json | Apply new ResponseStatusException hierarchy
This commit replaces use of the existing ServletException-based
exceptions with the new ones from ~.web.server. | spring-web-reactive/src/test/java/org/springframework/web/reactive/accept/CompositeContentTypeResolverBuilderTests.java | @@ -26,7 +26,7 @@
import org.springframework.http.server.reactive.MockServerHttpRequest;
import org.springframework.http.server.reactive.MockServerHttpResponse;
import org.springframework.http.server.reactive.ServerHttpRequest;
-import org.springframework.web.HttpMediaTypeNotAcceptableException;
+import org.springfr... | true |
Other | spring-projects | spring-framework | 6b7360fed1741bd9f7208f993f1df0036e2137d6.json | Apply new ResponseStatusException hierarchy
This commit replaces use of the existing ServletException-based
exceptions with the new ones from ~.web.server. | spring-web-reactive/src/test/java/org/springframework/web/reactive/accept/HeaderContentTypeResolverTests.java | @@ -27,7 +27,7 @@
import org.springframework.http.server.reactive.MockServerHttpRequest;
import org.springframework.http.server.reactive.MockServerHttpResponse;
import org.springframework.http.server.reactive.ServerHttpRequest;
-import org.springframework.web.HttpMediaTypeNotAcceptableException;
+import org.springfr... | true |
Other | spring-projects | spring-framework | 6b7360fed1741bd9f7208f993f1df0036e2137d6.json | Apply new ResponseStatusException hierarchy
This commit replaces use of the existing ServletException-based
exceptions with the new ones from ~.web.server. | spring-web-reactive/src/test/java/org/springframework/web/reactive/accept/PathExtensionContentTypeResolverTests.java | @@ -28,7 +28,7 @@
import org.springframework.http.server.reactive.MockServerHttpRequest;
import org.springframework.http.server.reactive.MockServerHttpResponse;
import org.springframework.http.server.reactive.ServerHttpRequest;
-import org.springframework.web.HttpMediaTypeNotAcceptableException;
+import org.springfr... | true |
Other | spring-projects | spring-framework | 6b7360fed1741bd9f7208f993f1df0036e2137d6.json | Apply new ResponseStatusException hierarchy
This commit replaces use of the existing ServletException-based
exceptions with the new ones from ~.web.server. | spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/RequestMappingInfoHandlerMappingTests.java | @@ -22,12 +22,12 @@
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
-import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.Set;
import java.util.function.Consumer;
+import org.hamcrest.Matchers;
import org.junit.Before;
import org.junit.Test... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-aop/src/main/java/org/aopalliance/intercept/Interceptor.java | @@ -26,7 +26,7 @@
* in) joinpoints. Runtime joinpoints can be invocations, field
* access, exceptions...
*
- * <p>This interface is not used directly. Use the the sub-interfaces
+ * <p>This interface is not used directly. Use the sub-interfaces
* to intercept specific events. For instance, the following class
... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-aop/src/main/java/org/springframework/aop/aspectj/DeclareParentsAdvisor.java | @@ -65,7 +65,7 @@ public DeclareParentsAdvisor(Class<?> interfaceType, String typePattern, Object
/**
* Private constructor to share common code between impl-based delegate and reference-based delegate
- * (cannot use method such as init() to share common code, due the the use of final fields)
+ * (cannot use ... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-aop/src/main/java/org/springframework/aop/framework/autoproxy/AutoProxyUtils.java | @@ -35,7 +35,7 @@ public abstract class AutoProxyUtils {
* to be proxied with its target class (in case of it getting proxied in the first
* place). The value is {@code Boolean.TRUE} or {@code Boolean.FALSE}.
* <p>Proxy factories can set this attribute if they built a target class proxy
- * for a specific bea... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-beans/src/main/java/org/springframework/beans/AbstractNestablePropertyAccessor.java | @@ -800,7 +800,7 @@ protected String getFinalPath(AbstractNestablePropertyAccessor pa, String nested
/**
* Recursively navigate to return a property accessor for the nested property path.
- * @param propertyPath property property path, which may be nested
+ * @param propertyPath property path, which may be nes... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-beans/src/main/java/org/springframework/beans/BeanUtils.java | @@ -110,7 +110,7 @@ public static <T> T instantiateClass(Class<T> clazz) throws BeanInstantiationExc
/**
* Instantiate a class using its no-arg constructor and return the new instance
- * as the the specified assignable type.
+ * as the specified assignable type.
* <p>Useful in cases where
* the type of ... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-beans/src/main/java/org/springframework/beans/factory/access/SingletonBeanFactoryLocator.java | @@ -88,7 +88,7 @@
* use object from a BeanFactory/ApplicationContext. One solutions is to make the
* class created by the third party code be just a stub or proxy, which gets the
* real object from a BeanFactory/ApplicationContext, and delegates to it. However,
- * it is is not normally workable for the stub to c... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-beans/src/main/java/org/springframework/beans/factory/config/InstantiationAwareBeanPostProcessor.java | @@ -96,7 +96,7 @@ public interface InstantiationAwareBeanPostProcessor extends BeanPostProcessor {
* dependency types - which the factory handles specifically - already filtered out)
* @param bean the bean instance created, but whose properties have not yet been set
* @param beanName the name of the bean
- * ... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-beans/src/main/java/org/springframework/beans/factory/config/Scope.java | @@ -100,7 +100,7 @@ public interface Scope {
* at the appropriate time. If such a callback is not supported by the
* underlying runtime environment at all, the callback <i>must be
* ignored and a corresponding warning should be logged</i>.
- * <p>Note that 'destruction' refers to to automatic destruction of
+... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanDefinitionReader.java | @@ -68,7 +68,7 @@ public abstract class AbstractBeanDefinitionReader implements EnvironmentCapable
* {@link org.springframework.context.ApplicationContext} implementations.
* <p>If given a plain BeanDefinitionRegistry, the default ResourceLoader will be a
* {@link org.springframework.core.io.support.PathMatchi... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-beans/src/main/java/org/springframework/beans/propertyeditors/StringArrayPropertyEditor.java | @@ -84,7 +84,7 @@ public StringArrayPropertyEditor(String separator, boolean emptyArrayAsNull) {
* @param emptyArrayAsNull {@code true} if an empty String array
* is to be transformed into {@code null}
* @param trimValues {@code true} if the values in the parsed arrays
- * are to be be trimmed of whitespace (... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-context-support/src/main/java/org/springframework/cache/transaction/package-info.java | @@ -1,5 +1,5 @@
/**
- * Transaction-aware decorators for the the org.springframework.cache package.
+ * Transaction-aware decorators for the org.springframework.cache package.
* Provides synchronization of put operations with Spring-managed transactions.
*/
package org.springframework.cache.transaction; | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-context-support/src/main/java/org/springframework/ui/freemarker/FreeMarkerConfigurationFactory.java | @@ -358,12 +358,12 @@ protected TemplateLoader getTemplateLoaderForPath(String templateLoaderPath) {
}
/**
- * To be overridden by subclasses that want to to register custom
+ * To be overridden by subclasses that want to register custom
* TemplateLoader instances after this factory created its default
* ... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-context-support/src/main/java/org/springframework/ui/velocity/VelocityEngineFactory.java | @@ -340,7 +340,7 @@ protected void initSpringResourceLoader(VelocityEngine velocityEngine, String re
}
/**
- * To be implemented by subclasses that want to to perform custom
+ * To be implemented by subclasses that want to perform custom
* post-processing of the VelocityEngine after this FactoryBean
* per... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-context/src/main/java/org/springframework/cache/Cache.java | @@ -37,7 +37,7 @@ public interface Cache {
String getName();
/**
- * Return the the underlying native cache provider.
+ * Return the underlying native cache provider.
*/
Object getNativeCache();
| true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-context/src/main/java/org/springframework/cache/annotation/EnableCaching.java | @@ -99,7 +99,7 @@
* <p>For those that wish to establish a more direct relationship between
* {@code @EnableCaching} and the exact cache manager bean to be used,
* the {@link CachingConfigurer} callback interface may be implemented.
- * Notice the the {@code @Override}-annotated methods below:
+ * Notice the {@cod... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-context/src/main/java/org/springframework/cache/config/CacheAdviceParser.java | @@ -221,7 +221,7 @@ <T extends CacheOperation.Builder> T merge(Element element, ReaderContext reader
}
else {
if (this.caches == null) {
- readerCtx.error("No cache specified specified for " + element.getNodeName(), element);
+ readerCtx.error("No cache specified for " + element.getNodeName(), elem... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-context/src/main/java/org/springframework/cache/interceptor/CacheAspectSupport.java | @@ -274,7 +274,7 @@ else if (StringUtils.hasText(operation.getCacheManager())) {
* Return a bean with the specified name and type. Used to resolve services that
* are referenced by name in a {@link CacheOperation}.
* @param beanName the name of the bean, as defined by the operation
- * @param expectedType typ... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-context/src/main/java/org/springframework/cache/support/package-info.java | @@ -1,5 +1,5 @@
/**
- * Support classes for the the org.springframework.cache package.
+ * Support classes for the org.springframework.cache package.
* Provides abstract classes for cache managers and caches.
*/
package org.springframework.cache.support; | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-context/src/main/java/org/springframework/context/access/ContextSingletonBeanFactoryLocator.java | @@ -70,7 +70,7 @@ public static BeanFactoryLocator getInstance() throws BeansException {
}
/**
- * Returns an instance which uses the the specified selector, as the name of the
+ * Returns an instance which uses the specified selector, as the name of the
* definition file(s). In the case of a name with a Spr... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-context/src/main/java/org/springframework/context/annotation/ClassPathBeanDefinitionScanner.java | @@ -92,7 +92,7 @@ public ClassPathBeanDefinitionScanner(BeanDefinitionRegistry registry) {
* implementations.
* <p>If given a plain {@code BeanDefinitionRegistry}, the default {@code ResourceLoader}
* will be a {@link org.springframework.core.io.support.PathMatchingResourcePatternResolver}.
- * <p>If the the ... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-context/src/main/java/org/springframework/context/support/DefaultLifecycleProcessor.java | @@ -292,7 +292,7 @@ protected Map<String, Lifecycle> getLifecycleBeans() {
* <p>The default implementation checks for the {@link Phased} interface.
* Can be overridden to apply other/further policies.
* @param bean the bean to introspect
- * @return the phase an an integer value. The suggested default is 0.
+... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-context/src/main/java/org/springframework/jmx/export/MBeanExporter.java | @@ -570,7 +570,7 @@ protected boolean isBeanDefinitionLazyInit(ListableBeanFactory beanFactory, Stri
* should be exposed to the {@code MBeanServer}. Specifically, if the
* supplied {@code mapValue} is the name of a bean that is configured
* for lazy initialization, then a proxy to the resource is registered wi... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-context/src/main/java/org/springframework/jmx/export/naming/IdentityNamingStrategy.java | @@ -26,7 +26,7 @@
/**
* An implementation of the {@code ObjectNamingStrategy} interface that
- * creates a name based on the the identity of a given instance.
+ * creates a name based on the identity of a given instance.
*
* <p>The resulting {@code ObjectName} will be in the form
* <i>package</i>:class=<i>cl... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-context/src/main/java/org/springframework/jmx/export/naming/KeyNamingStrategy.java | @@ -70,7 +70,7 @@ public class KeyNamingStrategy implements ObjectNamingStrategy, InitializingBean
/**
* Stores the result of merging the {@code mappings} {@code Properties}
- * with the the properties stored in the resources defined by {@code mappingLocations}.
+ * with the properties stored in the resources ... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-context/src/main/java/org/springframework/jndi/JndiObjectFactoryBean.java | @@ -219,7 +219,7 @@ public void afterPropertiesSet() throws IllegalArgumentException, NamingExceptio
}
/**
- * Lookup variant that that returns the specified "defaultObject"
+ * Lookup variant that returns the specified "defaultObject"
* (if any) in case of lookup failure.
* @return the located object, or... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-context/src/main/java/org/springframework/scripting/support/ScriptFactoryPostProcessor.java | @@ -381,7 +381,7 @@ protected void prepareScriptBeans(BeanDefinition bd, String scriptFactoryBeanNam
* If the {@link BeanDefinition} has a
* {@link org.springframework.core.AttributeAccessor metadata attribute}
* under the key {@link #REFRESH_CHECK_DELAY_ATTRIBUTE} which is a valid {@link Number}
- * type, th... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-context/src/test/java/org/springframework/aop/aspectj/_TestTypes.java | @@ -36,7 +36,7 @@
/**
- * Aspect used as part of before before advice binding tests and
+ * Aspect used as part of before advice binding tests and
* serves as base class for a number of more specialized test aspects.
*
* @author Adrian Colyer | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-core/src/main/java/org/springframework/asm/Frame.java | @@ -163,7 +163,7 @@ final class Frame {
private static final int LOCAL = 0x2000000;
/**
- * Kind of the the types that are relative to the stack of an input stack
+ * Kind of the types that are relative to the stack of an input stack
* map frame. The value of such types is a position relativel... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-core/src/main/java/org/springframework/util/FastByteArrayOutputStream.java | @@ -53,7 +53,7 @@ public class FastByteArrayOutputStream extends OutputStream {
// The size, in bytes, to use when allocating the first byte[]
private final int initialBlockSize;
- // The size, in bytes, to use when allocating the next next byte[]
+ // The size, in bytes, to use when allocating the next byte[]
... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-core/src/main/java/org/springframework/util/ResizableByteArrayOutputStream.java | @@ -23,7 +23,7 @@
* <ul>
* <li>has public {@link org.springframework.util.ResizableByteArrayOutputStream#grow(int)}
* and {@link org.springframework.util.ResizableByteArrayOutputStream#resize(int)} methods
- * to get more control over the the size of the internal buffer</li>
+ * to get more control over the size ... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-core/src/main/java/org/springframework/util/comparator/CompoundComparator.java | @@ -24,7 +24,7 @@
import org.springframework.util.Assert;
/**
- * A comparator that chains a sequence of one or more more Comparators.
+ * A comparator that chains a sequence of one or more Comparators.
*
* <p>A compound comparator calls each Comparator in sequence until a single
* Comparator returns a non-ze... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-core/src/main/java/org/springframework/util/comparator/InstanceComparator.java | @@ -43,7 +43,7 @@
/**
* Create a new {@link InstanceComparator} instance.
* @param instanceOrder the ordered list of classes that should be used when comparing
- * objects. Classes earlier in the list will be be given a higher priority.
+ * objects. Classes earlier in the list will be given a higher priority.... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-core/src/main/java/org/springframework/util/xml/XmlValidationModeDetector.java | @@ -120,7 +120,7 @@ public int detectValidationMode(InputStream inputStream) throws IOException {
/**
- * Does the content contain the the DTD DOCTYPE declaration?
+ * Does the content contain the DTD DOCTYPE declaration?
*/
private boolean hasDoctype(String content) {
return content.contains(DOCTYPE); | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-expression/src/test/java/org/springframework/expression/spel/ExpressionLanguageScenarioTests.java | @@ -47,7 +47,7 @@
* <li>Some basic type converters are included
* <li>properties/methods/constructors are discovered and invoked using reflection
* </ul>
- * The scenarios after that then how how to plug in extensions:<br>
+ * The scenarios after that then how to plug in extensions:<br>
* <ul>
* <li>Adding en... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-jdbc/src/test/java/org/springframework/jdbc/object/StoredProcedureTests.java | @@ -189,7 +189,7 @@ public Map<String, Object> call(CallableStatementCreator csc,
TestJdbcTemplate t = new TestJdbcTemplate();
t.setDataSource(dataSource);
// Will fail without the following, because we're not able to get a connection
- // from the DataSource here if we need to to create an ExceptionTranslato... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-jms/src/main/java/org/springframework/jms/annotation/EnableJms.java | @@ -108,7 +108,7 @@
* <p>Annotated methods can use flexible signature; in particular, it is possible to use
* the {@link org.springframework.messaging.Message Message} abstraction and related annotations,
* see {@link JmsListener} Javadoc for more details. For instance, the following would
- * inject the content ... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-jms/src/main/java/org/springframework/jms/connection/SessionProxy.java | @@ -20,7 +20,7 @@
/**
* Subinterface of {@link javax.jms.Session} to be implemented by
- * Session proxies. Allows access to the the underlying target Session.
+ * Session proxies. Allows access to the underlying target Session.
*
* @author Juergen Hoeller
* @since 2.0.4 | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-jms/src/main/java/org/springframework/jms/support/JmsAccessor.java | @@ -125,7 +125,7 @@ public void setSessionAcknowledgeModeName(String constantName) {
* {@link Session} to send a message.
* <p>Default is {@link Session#AUTO_ACKNOWLEDGE}.
* <p>Vendor-specific extensions to the acknowledgment mode can be set here as well.
- * <p>Note that that inside an EJB, the parameters to... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-messaging/src/main/java/org/springframework/messaging/simp/config/TaskExecutorRegistration.java | @@ -52,7 +52,7 @@ public TaskExecutorRegistration(ThreadPoolTaskExecutor taskExecutor) {
* in {@link java.util.concurrent.ThreadPoolExecutor ThreadPoolExecutor}. When
* this strategy is used, the {@link #maxPoolSize(int) maxPoolSize} is ignored.
* <p>By default this is set to twice the value of
- * {@link Run... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandler.java | @@ -60,7 +60,7 @@
*
* <p>This class also automatically opens a default "system" TCP connection to the message
* broker that is used for sending messages that originate from the server application (as
- * opposed to from a client). Such messages are are not associated with any client and
+ * opposed to from a clie... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-messaging/src/main/java/org/springframework/messaging/tcp/TcpConnection.java | @@ -39,14 +39,14 @@
ListenableFuture<Void> send(Message<P> message);
/**
- * Register a task to invoke after a period of of read inactivity.
+ * Register a task to invoke after a period of read inactivity.
* @param runnable the task to invoke
* @param duration the amount of inactive time in milliseconds
... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-orm/src/main/java/org/springframework/orm/hibernate3/LocalSessionFactoryBean.java | @@ -521,7 +521,7 @@ protected SessionFactory buildSessionFactory() throws Exception {
}
if (this.lobHandler != null) {
// Make given LobHandler available for SessionFactory configuration.
- // Do early because because mapping resource might refer to custom types.
+ // Do early because mapping resource mig... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-orm/src/main/java/org/springframework/orm/jpa/JpaVendorAdapter.java | @@ -52,7 +52,7 @@ public interface JpaVendorAdapter {
* <p>Note that there might be further JPA properties defined on
* the EntityManagerFactory bean, which might potentially override
* individual JPA property values specified here.
- * @return a Map of JPA properties, as as accepted by the standard
+ * @ret... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-test/src/test/java/org/springframework/test/context/web/ServletTestExecutionListenerTests.java | @@ -173,7 +173,7 @@ private RequestAttributes assertRequestAttributesExist() {
}
private void assertRequestAttributesDoNotExist() {
- assertNull("request attributes should not not exist", RequestContextHolder.getRequestAttributes());
+ assertNull("request attributes should not exist", RequestContextHolder.getRe... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-tx/src/main/java/org/springframework/jca/endpoint/AbstractMessageEndpointFactory.java | @@ -58,7 +58,7 @@ public abstract class AbstractMessageEndpointFactory implements MessageEndpointF
/**
- * Set the the XA transaction manager to use for wrapping endpoint
+ * Set the XA transaction manager to use for wrapping endpoint
* invocations, enlisting the endpoint resource in each such transaction.
... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-tx/src/main/java/org/springframework/transaction/interceptor/DefaultTransactionAttribute.java | @@ -57,7 +57,7 @@ public DefaultTransactionAttribute(TransactionAttribute other) {
}
/**
- * Create a new DefaultTransactionAttribute with the the given
+ * Create a new DefaultTransactionAttribute with the given
* propagation behavior. Can be modified through bean property setters.
* @param propagationBe... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-tx/src/main/java/org/springframework/transaction/interceptor/RuleBasedTransactionAttribute.java | @@ -82,7 +82,7 @@ public RuleBasedTransactionAttribute(RuleBasedTransactionAttribute other) {
}
/**
- * Create a new DefaultTransactionAttribute with the the given
+ * Create a new DefaultTransactionAttribute with the given
* propagation behavior. Can be modified through bean property setters.
* @param pr... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-tx/src/main/java/org/springframework/transaction/support/DefaultTransactionDefinition.java | @@ -91,7 +91,7 @@ public DefaultTransactionDefinition(TransactionDefinition other) {
}
/**
- * Create a new DefaultTransactionDefinition with the the given
+ * Create a new DefaultTransactionDefinition with the given
* propagation behavior. Can be modified through bean property setters.
* @param propagati... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-web/src/main/java/org/springframework/http/converter/xml/Jaxb2RootElementHttpMessageConverter.java | @@ -51,7 +51,7 @@
* HttpMessageConverter} that can read and write XML using JAXB2.
*
* <p>This converter can read classes annotated with {@link XmlRootElement} and
- * {@link XmlType}, and write classes annotated with with {@link XmlRootElement},
+ * {@link XmlType}, and write classes annotated with {@link XmlRoo... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-web/src/main/java/org/springframework/web/bind/annotation/CrossOrigin.java | @@ -29,7 +29,7 @@
*
* <p>By default, all origins and headers are permitted.
*
- * <p><b>NOTE:</b> {@code @CrossOrigin} will only be processed if an an appropriate
+ * <p><b>NOTE:</b> {@code @CrossOrigin} will only be processed if an appropriate
* {@code HandlerMapping}-{@code HandlerAdapter} pair is configured ... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-web/src/main/java/org/springframework/web/context/request/async/DeferredResultProcessingInterceptor.java | @@ -25,7 +25,7 @@
*
* <p>A {@code DeferredResultProcessingInterceptor} is invoked before the start
* of async processing, after the {@code DeferredResult} is set as well as on
- * timeout, or or after completing for any reason including a timeout or network
+ * timeout, or after completing for any reason includin... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-web/src/main/java/org/springframework/web/method/annotation/RequestParamMethodArgumentResolver.java | @@ -82,7 +82,7 @@ public class RequestParamMethodArgumentResolver extends AbstractNamedValueMethod
/**
* @param useDefaultResolution in default resolution mode a method argument
* that is a simple type, as defined in {@link BeanUtils#isSimpleProperty},
- * is treated as a request parameter even if it it isn't ... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-web/src/main/java/org/springframework/web/method/support/ModelAndViewContainer.java | @@ -182,7 +182,7 @@ public ModelMap getDefaultModel() {
/**
* Provide a separate model instance to use in a redirect scenario.
- * The provided additional model however is not used used unless
+ * The provided additional model however is not used unless
* {@link #setRedirectModelScenario(boolean)} gets set ... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-webmvc-portlet/src/main/java/org/springframework/web/portlet/context/PortletRequestHandledEvent.java | @@ -100,7 +100,7 @@ public String getPortletMode() {
}
/**
- * Return the the type of Portlet Request ('action' or 'render').
+ * Return the type of Portlet Request ('action' or 'render').
*/
public String getRequestType() {
return this.requestType; | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/ServletWrappingController.java | @@ -153,7 +153,7 @@ public void afterPropertiesSet() throws Exception {
/**
- * Invoke the the wrapped Servlet instance.
+ * Invoke the wrapped Servlet instance.
* @see javax.servlet.Servlet#service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
*/
@Override | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/MvcUriComponentsBuilder.java | @@ -304,7 +304,7 @@ public static UriComponentsBuilder fromMethodCall(UriComponentsBuilder builder,
* <p>Note that it's not necessary to specify all arguments. Only the ones
* required to prepare the URL, mainly {@code @RequestParam} and {@code @PathVariable}).
* @param mappingName the mapping name
- * @retur... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-webmvc/src/main/java/org/springframework/web/servlet/support/RequestContextUtils.java | @@ -198,7 +198,7 @@ public static Locale getLocale(HttpServletRequest request) {
* <p>Consider using {@link org.springframework.context.i18n.LocaleContextHolder#getTimeZone()}
* which will normally be populated with the same TimeZone: That method only
* differs in terms of its fallback to the system time zone ... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/CheckboxTag.java | @@ -38,7 +38,7 @@
* the bound {@link Collection}.
* <h3>Approach Three</h3>
* For any other bound value type, the '{@code input(checkbox)}' is marked as 'checked'
- * if the the configured {@link #setValue(Object) value} is equal to the bound value.
+ * if the configured {@link #setValue(Object) value} is equal t... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-webmvc/src/main/java/org/springframework/web/servlet/view/groovy/GroovyMarkupView.java | @@ -54,7 +54,7 @@ public class GroovyMarkupView extends AbstractTemplateView {
/**
* Set the MarkupTemplateEngine to use in this view.
- * <p>If not set, the engine is auto-detected by looking up up a single
+ * <p>If not set, the engine is auto-detected by looking up a single
* {@link GroovyMarkupConfig} b... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-webmvc/src/main/java/org/springframework/web/servlet/view/jasperreports/JasperReportsMultiFormatView.java | @@ -170,7 +170,7 @@ protected void renderReport(JasperPrint populatedReport, Map<String, Object> mod
String format = (String) model.get(this.formatKey);
if (format == null) {
- throw new IllegalArgumentException("No format format found in model");
+ throw new IllegalArgumentException("No format found in mod... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-webmvc/src/main/java/org/springframework/web/servlet/view/script/ScriptTemplateView.java | @@ -55,7 +55,7 @@
* An {@link AbstractUrlBasedView} subclass designed to run any template library
* based on a JSR-223 script engine.
*
- * <p>If not set, each property is auto-detected by looking up up a single
+ * <p>If not set, each property is auto-detected by looking up a single
* {@link ScriptTemplateConf... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-webmvc/src/test/java/org/springframework/web/servlet/handler/PathMatchingUrlHandlerMappingTests.java | @@ -126,7 +126,7 @@ public void actualPathMatching() throws Exception {
hec = getHandler(req);
assertTrue("Handler is correct bean", hec != null && hec.getHandler() == bean);
- // should match because because exact pattern is there
+ // should match because exact pattern is there
req = new MockHttpServletR... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ServletInvocableHandlerMethodTests.java | @@ -133,7 +133,7 @@ public void invokeAndHandle_NotVoidWithResponseStatusAndReason() throws Exceptio
ServletInvocableHandlerMethod handlerMethod = getHandlerMethod(new Handler(), "responseStatusWithReason");
handlerMethod.invokeAndHandle(this.webRequest, this.mavContainer);
- assertTrue("When a status reason w... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-websocket/src/main/java/org/springframework/web/socket/config/annotation/WebMvcStompWebSocketEndpointRegistration.java | @@ -36,7 +36,7 @@
import java.util.ArrayList;
import java.util.List;
/**
- * An abstract base class class for configuring STOMP over WebSocket/SockJS endpoints.
+ * An abstract base class for configuring STOMP over WebSocket/SockJS endpoints.
*
* @author Rossen Stoyanchev
* @since 4.0 | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-websocket/src/main/java/org/springframework/web/socket/messaging/SessionConnectEvent.java | @@ -25,7 +25,7 @@
* (e.g. STOMP) as the WebSocket sub-protocol issues a connect request.
*
* <p>Note that this is not the same as the WebSocket session getting established
- * but rather the client's first attempt to connect within the the sub-protocol,
+ * but rather the client's first attempt to connect within ... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-websocket/src/main/resources/org/springframework/web/socket/config/spring-websocket-4.0.xsd | @@ -349,7 +349,7 @@
This is essentially the "Unbounded queues" strategy as explained in java.util.concurrent.ThreadPoolExecutor.
When this strategy is used, the max pool size is effectively ignored.
By default this is set to twice the value of Runtime.availableProcessors().
- In an an application where tasks do n... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-websocket/src/main/resources/org/springframework/web/socket/config/spring-websocket-4.1.xsd | @@ -367,7 +367,7 @@
This is essentially the "Unbounded queues" strategy as explained in java.util.concurrent.ThreadPoolExecutor.
When this strategy is used, the max pool size is effectively ignored.
By default this is set to twice the value of Runtime.availableProcessors().
- In an an application where tasks do n... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-websocket/src/main/resources/org/springframework/web/socket/config/spring-websocket-4.2.xsd | @@ -407,7 +407,7 @@
This is essentially the "Unbounded queues" strategy as explained in java.util.concurrent.ThreadPoolExecutor.
When this strategy is used, the max pool size is effectively ignored.
By default this is set to twice the value of Runtime.availableProcessors().
- In an an application where tasks do n... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | spring-websocket/src/main/resources/org/springframework/web/socket/config/spring-websocket-4.3.xsd | @@ -407,7 +407,7 @@
This is essentially the "Unbounded queues" strategy as explained in java.util.concurrent.ThreadPoolExecutor.
When this strategy is used, the max pool size is effectively ignored.
By default this is set to twice the value of Runtime.availableProcessors().
- In an an application where tasks do n... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | src/asciidoc/core-validation.adoc | @@ -1317,7 +1317,7 @@ See <<mvc-config-conversion>> in the Spring MVC chapter.
[[format-configuring-formatting-globaldatetimeformat]]
== Configuring a global date & time format
By default, date and time fields that are not annotated with `@DateTimeFormat` are
-converted from strings using the the `DateFormat.SHORT` ... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | src/asciidoc/data-access.adoc | @@ -3435,7 +3435,7 @@ The batch update methods for this call returns an array of int arrays containing
entry for each batch with an array of the number of affected rows for each update. The top
level array's length indicates the number of batches executed and the second level array's
length indicates the number of u... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | src/asciidoc/overview.adoc | @@ -260,7 +260,7 @@ container-managed transactions. All your custom business logic can be implemente
simple POJOs and managed by Spring's IoC container. Additional services include support
for sending email and validation that is independent of the web layer, which lets you
choose where to execute validation rules. ... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | src/asciidoc/testing.adoc | @@ -3592,7 +3592,7 @@ manual, the javadocs for `@SqlConfig` and `SqlScriptsTestExecutionListener` prov
detailed information, and the following example demonstrates a typical testing scenario
using JUnit and transactional tests with `@Sql`. Note that there is no need to clean up
the database after the `usersTest()` m... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | src/asciidoc/web-mvc.adoc | @@ -1300,7 +1300,7 @@ multiple requests are allowed to access a session concurrently.
methods and/or the HandlerAdapter configuration. See the `webBindingInitializer`
property on `RequestMappingHandlerAdapter`. Such command objects along with their
validation results will be exposed as model attributes by defa... | true |
Other | spring-projects | spring-framework | 44e652f99ee4d1cb6aa19545202735e9fc06dfe4.json | Remove duplicate words
Closes gh-1039 | src/asciidoc/web-view.adoc | @@ -34,7 +34,7 @@ is another view technology, supported by Spring. This template engine is a templ
aimed at generating XML-like markup (XML, XHTML, HTML5, ...), but that can be used to generate any
text based content.
-This requires Groovy 2.3.1+ on the the classpath.
+This requires Groovy 2.3.1+ on the classpath.... | true |
Other | spring-projects | spring-framework | 92c72b93a61b84a8d94119e8126e964f933f09b5.json | Switch defaults for ContentTypeResolver
Now that we have a CompositeContentTypeResolverBuilder with built-in
defaults, we switch to those defaults in places where a
ContentTypeResolver is used. | spring-web-reactive/src/main/java/org/springframework/web/reactive/accept/CompositeContentTypeResolverBuilder.java | @@ -27,7 +27,55 @@
/**
- * Builder for {@link CompositeContentTypeResolver}.
+ * Factory to create a {@link CompositeContentTypeResolver} and configure it with
+ * one or more {@link ContentTypeResolver} instances with build style methods.
+ * The following table shows methods, resulting strategy instances, and if... | true |
Other | spring-projects | spring-framework | 92c72b93a61b84a8d94119e8126e964f933f09b5.json | Switch defaults for ContentTypeResolver
Now that we have a CompositeContentTypeResolverBuilder with built-in
defaults, we switch to those defaults in places where a
ContentTypeResolver is used. | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/condition/ProducesRequestCondition.java | @@ -28,6 +28,7 @@
import org.springframework.web.HttpMediaTypeNotAcceptableException;
import org.springframework.web.accept.ContentNegotiationManager;
import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.reactive.accept.CompositeContentTypeResolverBuilder;
import org.spring... | true |
Other | spring-projects | spring-framework | 92c72b93a61b84a8d94119e8126e964f933f09b5.json | Switch defaults for ContentTypeResolver
Now that we have a CompositeContentTypeResolverBuilder with built-in
defaults, we switch to those defaults in places where a
ContentTypeResolver is used. | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/annotation/RequestMappingHandlerMapping.java | @@ -27,6 +27,8 @@
import org.springframework.util.StringValueResolver;
import org.springframework.web.accept.ContentNegotiationManager;
import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.reactive.accept.CompositeContentTypeResolver;
+import org.springframework.web.reactive... | true |
Other | spring-projects | spring-framework | 92c72b93a61b84a8d94119e8126e964f933f09b5.json | Switch defaults for ContentTypeResolver
Now that we have a CompositeContentTypeResolverBuilder with built-in
defaults, we switch to those defaults in places where a
ContentTypeResolver is used. | spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestMappingHandlerMappingTests.java | @@ -81,7 +81,7 @@ public void useRegisteredSuffixPatternMatch() {
assertTrue(this.handlerMapping.useSuffixPatternMatch());
assertTrue(this.handlerMapping.useRegisteredSuffixPatternMatch());
- assertEquals(Collections.singletonList("json"), this.handlerMapping.getFileExtensions());
+ assertEquals(Collections.s... | true |
Other | spring-projects | spring-framework | 4af99473ffa36a75fb4d6d521f736a403a4f904f.json | Add CompositeContenTypeResolver and a builder
This is the equivalent of the existing ContentNegotiationManager +
ContentNegotiationManagerFactoryBean | spring-web-reactive/src/main/java/org/springframework/web/reactive/accept/CompositeContentTypeResolver.java | @@ -0,0 +1,105 @@
+/*
+ * Copyright 2002-2016 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 | 4af99473ffa36a75fb4d6d521f736a403a4f904f.json | Add CompositeContenTypeResolver and a builder
This is the equivalent of the existing ContentNegotiationManager +
ContentNegotiationManagerFactoryBean | spring-web-reactive/src/main/java/org/springframework/web/reactive/accept/CompositeContentTypeResolverBuilder.java | @@ -0,0 +1,200 @@
+/*
+ * Copyright 2002-2016 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 | 4af99473ffa36a75fb4d6d521f736a403a4f904f.json | Add CompositeContenTypeResolver and a builder
This is the equivalent of the existing ContentNegotiationManager +
ContentNegotiationManagerFactoryBean | spring-web-reactive/src/main/java/org/springframework/web/reactive/accept/FixedContentTypeResolver.java | @@ -0,0 +1,48 @@
+/*
+ * Copyright 2002-2015 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 | 4af99473ffa36a75fb4d6d521f736a403a4f904f.json | Add CompositeContenTypeResolver and a builder
This is the equivalent of the existing ContentNegotiationManager +
ContentNegotiationManagerFactoryBean | spring-web-reactive/src/test/java/org/springframework/web/reactive/accept/CompositeContentTypeResolverBuilderTests.java | @@ -0,0 +1,196 @@
+/*
+ * Copyright 2002-2016 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 | 0e5a892bad25a3ebcf018763c46fc6c8cfa15de8.json | Use ByteBuf instead of Buffer in reactor-netty | spring-web-reactive/src/main/java/org/springframework/http/client/reactive/ReactorClientHttpRequest.java | @@ -19,15 +19,19 @@
import java.net.URI;
import java.util.Collection;
+import io.netty.buffer.ByteBuf;
+import io.netty.buffer.Unpooled;
import io.netty.handler.codec.http.cookie.DefaultCookie;
import org.reactivestreams.Publisher;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
-import ... | true |
Other | spring-projects | spring-framework | 0e5a892bad25a3ebcf018763c46fc6c8cfa15de8.json | Use ByteBuf instead of Buffer in reactor-netty | spring-web-reactive/src/main/java/org/springframework/http/client/reactive/ReactorClientHttpResponse.java | @@ -23,6 +23,7 @@
import org.springframework.core.io.buffer.DataBuffer;
import org.springframework.core.io.buffer.DataBufferAllocator;
+import org.springframework.core.io.buffer.NettyDataBufferAllocator;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springfra... | true |
Other | spring-projects | spring-framework | 0e5a892bad25a3ebcf018763c46fc6c8cfa15de8.json | Use ByteBuf instead of Buffer in reactor-netty | spring-web-reactive/src/main/java/org/springframework/http/client/reactive/ReactorHttpClientRequestFactory.java | @@ -22,6 +22,7 @@
import org.springframework.core.io.buffer.DataBufferAllocator;
import org.springframework.core.io.buffer.DefaultDataBufferAllocator;
+import org.springframework.core.io.buffer.NettyDataBufferAllocator;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
impo... | true |
Other | spring-projects | spring-framework | 0e5a892bad25a3ebcf018763c46fc6c8cfa15de8.json | Use ByteBuf instead of Buffer in reactor-netty | spring-web-reactive/src/main/java/org/springframework/http/server/reactive/ReactorHttpHandlerAdapter.java | @@ -16,33 +16,32 @@
package org.springframework.http.server.reactive;
+import io.netty.buffer.ByteBuf;
import reactor.core.publisher.Mono;
-import reactor.io.buffer.Buffer;
import reactor.io.ipc.ChannelHandler;
import reactor.io.netty.http.HttpChannel;
-import org.springframework.core.io.buffer.DataBufferAllo... | true |
Other | spring-projects | spring-framework | 0e5a892bad25a3ebcf018763c46fc6c8cfa15de8.json | Use ByteBuf instead of Buffer in reactor-netty | spring-web-reactive/src/main/java/org/springframework/http/server/reactive/ReactorServerHttpRequest.java | @@ -25,6 +25,7 @@
import org.springframework.core.io.buffer.DataBuffer;
import org.springframework.core.io.buffer.DataBufferAllocator;
+import org.springframework.core.io.buffer.NettyDataBufferAllocator;
import org.springframework.http.HttpCookie;
import org.springframework.http.HttpHeaders;
import org.springfra... | true |
Other | spring-projects | spring-framework | 0e5a892bad25a3ebcf018763c46fc6c8cfa15de8.json | Use ByteBuf instead of Buffer in reactor-netty | spring-web-reactive/src/main/java/org/springframework/http/server/reactive/ReactorServerHttpResponse.java | @@ -16,17 +16,19 @@
package org.springframework.http.server.reactive;
+import io.netty.buffer.ByteBuf;
+import io.netty.buffer.Unpooled;
import io.netty.handler.codec.http.HttpResponseStatus;
import io.netty.handler.codec.http.cookie.Cookie;
import io.netty.handler.codec.http.cookie.DefaultCookie;
import org.r... | true |
Other | spring-projects | spring-framework | 0e5a892bad25a3ebcf018763c46fc6c8cfa15de8.json | Use ByteBuf instead of Buffer in reactor-netty | spring-web-reactive/src/main/java/org/springframework/http/server/reactive/boot/ReactorHttpServer.java | @@ -18,10 +18,7 @@
import reactor.core.flow.Loopback;
import reactor.core.state.Completable;
-import reactor.io.buffer.Buffer;
-import org.springframework.core.io.buffer.DataBufferAllocator;
-import org.springframework.core.io.buffer.DefaultDataBufferAllocator;
import org.springframework.http.server.reactive.Rea... | true |
Other | spring-projects | spring-framework | 0e5a892bad25a3ebcf018763c46fc6c8cfa15de8.json | Use ByteBuf instead of Buffer in reactor-netty | spring-web-reactive/src/test/java/org/springframework/web/client/reactive/WebClientIntegrationTests.java | @@ -65,7 +65,7 @@ public void shouldGetHeaders() throws Exception {
.perform(get(baseUrl.toString()))
.extract(headers());
- TestSubscriber<HttpHeaders> ts = new TestSubscriber();
+ TestSubscriber<HttpHeaders> ts = new TestSubscriber<>();
result.subscribe(ts);
ts.awaitAndAssertNextValuesWith(
h... | true |
Other | spring-projects | spring-framework | 50c11028d5816a6cc390f85167736fa412d1eb29.json | Improve illegal MimeType checks
Issue: SPR-14124 | spring-core/src/main/java/org/springframework/util/MimeTypeUtils.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2015 the original author or authors.
+ * Copyright 2002-2016 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.
@@ -220,6 +220,9 @@ public static MimeType pars... | true |
Other | spring-projects | spring-framework | 50c11028d5816a6cc390f85167736fa412d1eb29.json | Improve illegal MimeType checks
Issue: SPR-14124 | spring-core/src/test/java/org/springframework/util/MimeTypeTests.java | @@ -189,6 +189,11 @@ public void parseMimeTypeIllegalSubtype() {
MimeTypeUtils.parseMimeType("audio/basic)");
}
+ @Test(expected = InvalidMimeTypeException.class)
+ public void parseMimeTypeMissingTypeAndSubtype() throws Exception {
+ MimeTypeUtils.parseMimeType(" ;a=b");
+ }
+
@Test(expected = InvalidMim... | true |
Other | spring-projects | spring-framework | b2ca216498f699fb4f3d2e56800024b6bc1f826b.json | Add RequestCondition hierarchy
A pretty complete equivalent to the same in spring-webmvc except for
CORS checks, and custom HTTP methods. Another notable difference is
that the "params" condition works on query params strictly. | spring-web-reactive/src/main/java/org/springframework/web/reactive/result/condition/AbstractMediaTypeExpression.java | @@ -0,0 +1,115 @@
+/*
+ * Copyright 2002-2016 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.