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 | 4d525909642bc25e2addd8b2c4980a7ac26eee74.json | Improve docs on forwarded headers
Issue: SPR-15612 | spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/MvcUriComponentsBuilder.java | @@ -70,18 +70,28 @@
/**
* Creates instances of {@link org.springframework.web.util.UriComponentsBuilder}
- * by pointing to Spring MVC controllers and {@code @RequestMapping} methods.
+ * by pointing to {@code @RequestMapping} methods on Spring MVC controllers.
*
- * <p>The static {@code fromXxx(...)} methods pr... | true |
Other | spring-projects | spring-framework | 4d525909642bc25e2addd8b2c4980a7ac26eee74.json | Improve docs on forwarded headers
Issue: SPR-15612 | spring-webmvc/src/main/java/org/springframework/web/servlet/support/ServletUriComponentsBuilder.java | @@ -17,7 +17,6 @@
package org.springframework.web.servlet.support;
import java.util.Enumeration;
-
import javax.servlet.http.HttpServletRequest;
import org.springframework.http.HttpRequest;
@@ -34,7 +33,17 @@
import org.springframework.web.util.UrlPathHelper;
/**
- * A UriComponentsBuilder that extracts inf... | true |
Other | spring-projects | spring-framework | 4d525909642bc25e2addd8b2c4980a7ac26eee74.json | Improve docs on forwarded headers
Issue: SPR-15612 | src/docs/asciidoc/web/web-mvc.adoc | @@ -3436,6 +3436,38 @@ with a base URL and then use the instance-based "withXxx" methods. For example:
----
+[[mvc-links-to-controllers-forwarded-headers]]
+=== Working with "Forwarded" and "X-Forwarded-*" Headers
+
+As a request goes through proxies such as load balancers the host, port, and
+scheme may change pr... | true |
Other | spring-projects | spring-framework | 895fa2ea7b272143fef828443686999f635a819a.json | Add removeOnly mode to ForwardedHeaderFilter
Issue: SPR-15610 | spring-web/src/main/java/org/springframework/web/filter/ForwardedHeaderFilter.java | @@ -40,20 +40,25 @@
import org.springframework.web.util.UrlPathHelper;
/**
- * Filter that wraps the request and response in order to override its
+ * Extract values from "Forwarded" and "X-Forwarded-*" headers in order to wrap
+ * and override the following from the request and response:
* {@link HttpServletRequ... | true |
Other | spring-projects | spring-framework | 895fa2ea7b272143fef828443686999f635a819a.json | Add removeOnly mode to ForwardedHeaderFilter
Issue: SPR-15610 | spring-web/src/test/java/org/springframework/web/filter/ForwardedHeaderFilterTests.java | @@ -32,7 +32,10 @@
import org.springframework.mock.web.test.MockHttpServletRequest;
import org.springframework.mock.web.test.MockHttpServletResponse;
-import static org.junit.Assert.*;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNu... | true |
Other | spring-projects | spring-framework | cf1bc8119999e2bf3f41ae572f5b83536685ce5e.json | Introduce LookupPath in WebFlux request routing
This commit adds the `LookupPath` class that contains the full
request path relative to the web context; the application can
get from it various information, including the file extension
and path parameters (if any).
Since that operation is done multiple times for each ... | spring-web/src/main/java/org/springframework/web/cors/reactive/UrlBasedCorsConfigurationSource.java | @@ -24,8 +24,8 @@
import org.springframework.util.PathMatcher;
import org.springframework.web.cors.CorsConfiguration;
import org.springframework.web.server.ServerWebExchange;
-import org.springframework.web.server.support.HttpRequestPathHelper;
import org.springframework.web.util.pattern.ParsingPathMatcher;
+import... | true |
Other | spring-projects | spring-framework | cf1bc8119999e2bf3f41ae572f5b83536685ce5e.json | Introduce LookupPath in WebFlux request routing
This commit adds the `LookupPath` class that contains the full
request path relative to the web context; the application can
get from it various information, including the file extension
and path parameters (if any).
Since that operation is done multiple times for each ... | spring-web/src/main/java/org/springframework/web/server/support/HttpRequestPathHelper.java | @@ -57,9 +57,14 @@ public boolean shouldUrlDecode() {
}
- public String getLookupPathForRequest(ServerWebExchange exchange) {
+ public LookupPath getLookupPathForRequest(ServerWebExchange exchange) {
String path = getPathWithinApplication(exchange.getRequest());
- return (shouldUrlDecode() ? decode(exchange, ... | true |
Other | spring-projects | spring-framework | cf1bc8119999e2bf3f41ae572f5b83536685ce5e.json | Introduce LookupPath in WebFlux request routing
This commit adds the `LookupPath` class that contains the full
request path relative to the web context; the application can
get from it various information, including the file extension
and path parameters (if any).
Since that operation is done multiple times for each ... | spring-web/src/main/java/org/springframework/web/server/support/LookupPath.java | @@ -0,0 +1,84 @@
+/*
+ * Copyright 2002-2017 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 | cf1bc8119999e2bf3f41ae572f5b83536685ce5e.json | Introduce LookupPath in WebFlux request routing
This commit adds the `LookupPath` class that contains the full
request path relative to the web context; the application can
get from it various information, including the file extension
and path parameters (if any).
Since that operation is done multiple times for each ... | spring-web/src/test/java/org/springframework/web/cors/reactive/UrlBasedCorsConfigurationSourceTests.java | @@ -21,6 +21,8 @@
import org.springframework.mock.http.server.reactive.test.MockServerHttpRequest;
import org.springframework.web.cors.CorsConfiguration;
import org.springframework.web.server.ServerWebExchange;
+import org.springframework.web.server.support.HttpRequestPathHelper;
+import org.springframework.web.serv... | true |
Other | spring-projects | spring-framework | cf1bc8119999e2bf3f41ae572f5b83536685ce5e.json | Introduce LookupPath in WebFlux request routing
This commit adds the `LookupPath` class that contains the full
request path relative to the web context; the application can
get from it various information, including the file extension
and path parameters (if any).
Since that operation is done multiple times for each ... | spring-web/src/test/java/org/springframework/web/server/support/LookupPathTests.java | @@ -0,0 +1,61 @@
+/*
+ * Copyright 2002-2017 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 | cf1bc8119999e2bf3f41ae572f5b83536685ce5e.json | Introduce LookupPath in WebFlux request routing
This commit adds the `LookupPath` class that contains the full
request path relative to the web context; the application can
get from it various information, including the file extension
and path parameters (if any).
Since that operation is done multiple times for each ... | spring-webflux/src/main/java/org/springframework/web/reactive/handler/AbstractHandlerMapping.java | @@ -17,6 +17,7 @@
package org.springframework.web.reactive.handler;
import java.util.Map;
+import java.util.Optional;
import reactor.core.publisher.Mono;
@@ -32,6 +33,7 @@
import org.springframework.web.cors.reactive.DefaultCorsProcessor;
import org.springframework.web.cors.reactive.UrlBasedCorsConfiguration... | true |
Other | spring-projects | spring-framework | cf1bc8119999e2bf3f41ae572f5b83536685ce5e.json | Introduce LookupPath in WebFlux request routing
This commit adds the `LookupPath` class that contains the full
request path relative to the web context; the application can
get from it various information, including the file extension
and path parameters (if any).
Since that operation is done multiple times for each ... | spring-webflux/src/main/java/org/springframework/web/reactive/handler/AbstractUrlHandlerMapping.java | @@ -28,6 +28,7 @@
import org.springframework.beans.BeansException;
import org.springframework.lang.Nullable;
import org.springframework.util.Assert;
+import org.springframework.web.server.support.LookupPath;
import org.springframework.web.server.ServerWebExchange;
/**
@@ -46,6 +47,7 @@
*
* @author Rossen Sto... | true |
Other | spring-projects | spring-framework | cf1bc8119999e2bf3f41ae572f5b83536685ce5e.json | Introduce LookupPath in WebFlux request routing
This commit adds the `LookupPath` class that contains the full
request path relative to the web context; the application can
get from it various information, including the file extension
and path parameters (if any).
Since that operation is done multiple times for each ... | spring-webflux/src/main/java/org/springframework/web/reactive/resource/ResourceUrlProvider.java | @@ -37,6 +37,7 @@
import org.springframework.web.reactive.handler.SimpleUrlHandlerMapping;
import org.springframework.web.server.ServerWebExchange;
import org.springframework.web.server.support.HttpRequestPathHelper;
+import org.springframework.web.server.support.LookupPath;
import org.springframework.web.util.patt... | true |
Other | spring-projects | spring-framework | cf1bc8119999e2bf3f41ae572f5b83536685ce5e.json | Introduce LookupPath in WebFlux request routing
This commit adds the `LookupPath` class that contains the full
request path relative to the web context; the application can
get from it various information, including the file extension
and path parameters (if any).
Since that operation is done multiple times for each ... | spring-webflux/src/main/java/org/springframework/web/reactive/result/condition/PatternsRequestCondition.java | @@ -29,8 +29,8 @@
import org.springframework.util.PathMatcher;
import org.springframework.util.StringUtils;
+import org.springframework.web.server.support.LookupPath;
import org.springframework.web.server.ServerWebExchange;
-import org.springframework.web.server.support.HttpRequestPathHelper;
import org.springfra... | true |
Other | spring-projects | spring-framework | cf1bc8119999e2bf3f41ae572f5b83536685ce5e.json | Introduce LookupPath in WebFlux request routing
This commit adds the `LookupPath` class that contains the full
request path relative to the web context; the application can
get from it various information, including the file extension
and path parameters (if any).
Since that operation is done multiple times for each ... | spring-webflux/src/main/java/org/springframework/web/reactive/result/method/AbstractHandlerMethodMapping.java | @@ -45,6 +45,7 @@
import org.springframework.web.reactive.HandlerMapping;
import org.springframework.web.reactive.handler.AbstractHandlerMapping;
import org.springframework.web.server.ServerWebExchange;
+import org.springframework.web.server.support.LookupPath;
/**
* Abstract base class for {@link HandlerMappin... | true |
Other | spring-projects | spring-framework | cf1bc8119999e2bf3f41ae572f5b83536685ce5e.json | Introduce LookupPath in WebFlux request routing
This commit adds the `LookupPath` class that contains the full
request path relative to the web context; the application can
get from it various information, including the file extension
and path parameters (if any).
Since that operation is done multiple times for each ... | spring-webflux/src/main/java/org/springframework/web/reactive/result/method/RequestMappingInfo.java | @@ -33,7 +33,6 @@
import org.springframework.web.reactive.result.condition.RequestConditionHolder;
import org.springframework.web.reactive.result.condition.RequestMethodsRequestCondition;
import org.springframework.web.server.ServerWebExchange;
-import org.springframework.web.server.support.HttpRequestPathHelper;
... | true |
Other | spring-projects | spring-framework | cf1bc8119999e2bf3f41ae572f5b83536685ce5e.json | Introduce LookupPath in WebFlux request routing
This commit adds the `LookupPath` class that contains the full
request path relative to the web context; the application can
get from it various information, including the file extension
and path parameters (if any).
Since that operation is done multiple times for each ... | spring-webflux/src/main/java/org/springframework/web/reactive/result/method/RequestMappingInfoHandlerMapping.java | @@ -27,17 +27,14 @@
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
-import java.util.StringTokenizer;
import java.util.stream.Collectors;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.InvalidMediaTypeException;
... | true |
Other | spring-projects | spring-framework | cf1bc8119999e2bf3f41ae572f5b83536685ce5e.json | Introduce LookupPath in WebFlux request routing
This commit adds the `LookupPath` class that contains the full
request path relative to the web context; the application can
get from it various information, including the file extension
and path parameters (if any).
Since that operation is done multiple times for each ... | spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/RequestMappingHandlerMapping.java | @@ -37,6 +37,8 @@
import org.springframework.web.reactive.result.condition.RequestCondition;
import org.springframework.web.reactive.result.method.RequestMappingInfo;
import org.springframework.web.reactive.result.method.RequestMappingInfoHandlerMapping;
+import org.springframework.web.server.support.LookupPath;
+im... | true |
Other | spring-projects | spring-framework | cf1bc8119999e2bf3f41ae572f5b83536685ce5e.json | Introduce LookupPath in WebFlux request routing
This commit adds the `LookupPath` class that contains the full
request path relative to the web context; the application can
get from it various information, including the file extension
and path parameters (if any).
Since that operation is done multiple times for each ... | spring-webflux/src/main/java/org/springframework/web/reactive/result/view/ViewResolutionResultHandler.java | @@ -50,7 +50,7 @@
import org.springframework.web.reactive.result.HandlerResultHandlerSupport;
import org.springframework.web.server.NotAcceptableStatusException;
import org.springframework.web.server.ServerWebExchange;
-import org.springframework.web.server.support.HttpRequestPathHelper;
+import org.springframework.... | true |
Other | spring-projects | spring-framework | cf1bc8119999e2bf3f41ae572f5b83536685ce5e.json | Introduce LookupPath in WebFlux request routing
This commit adds the `LookupPath` class that contains the full
request path relative to the web context; the application can
get from it various information, including the file extension
and path parameters (if any).
Since that operation is done multiple times for each ... | spring-webflux/src/test/java/org/springframework/web/reactive/result/condition/PatternsRequestConditionTests.java | @@ -22,6 +22,8 @@
import org.junit.Test;
import org.springframework.mock.http.server.reactive.test.MockServerWebExchange;
+import org.springframework.web.server.support.HttpRequestPathHelper;
+import org.springframework.web.server.support.LookupPath;
import org.springframework.web.server.ServerWebExchange;
impo... | true |
Other | spring-projects | spring-framework | cf1bc8119999e2bf3f41ae572f5b83536685ce5e.json | Introduce LookupPath in WebFlux request routing
This commit adds the `LookupPath` class that contains the full
request path relative to the web context; the application can
get from it various information, including the file extension
and path parameters (if any).
Since that operation is done multiple times for each ... | spring-webflux/src/test/java/org/springframework/web/reactive/result/condition/RequestMappingInfoTests.java | @@ -29,6 +29,8 @@
import org.springframework.mock.http.server.reactive.test.MockServerWebExchange;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.reactive.result.method.RequestMappingInfo;
+import org.springframework.web.server.support.HttpRequestPathHelper;
+import org.... | true |
Other | spring-projects | spring-framework | cf1bc8119999e2bf3f41ae572f5b83536685ce5e.json | Introduce LookupPath in WebFlux request routing
This commit adds the `LookupPath` class that contains the full
request path relative to the web context; the application can
get from it various information, including the file extension
and path parameters (if any).
Since that operation is done multiple times for each ... | spring-webflux/src/test/java/org/springframework/web/reactive/result/method/RequestMappingInfoHandlerMappingTests.java | @@ -54,6 +54,7 @@
import org.springframework.web.server.ServerWebInputException;
import org.springframework.web.server.UnsupportedMediaTypeStatusException;
import org.springframework.web.server.support.HttpRequestPathHelper;
+import org.springframework.web.server.support.LookupPath;
import static org.hamcrest.Cor... | true |
Other | spring-projects | spring-framework | cf1bc8119999e2bf3f41ae572f5b83536685ce5e.json | Introduce LookupPath in WebFlux request routing
This commit adds the `LookupPath` class that contains the full
request path relative to the web context; the application can
get from it various information, including the file extension
and path parameters (if any).
Since that operation is done multiple times for each ... | spring-webflux/src/test/java/org/springframework/web/reactive/result/view/ViewResolutionResultHandlerTests.java | @@ -55,6 +55,8 @@
import org.springframework.web.reactive.accept.RequestedContentTypeResolver;
import org.springframework.web.server.NotAcceptableStatusException;
import org.springframework.web.server.ServerWebExchange;
+import org.springframework.web.server.support.HttpRequestPathHelper;
+import org.springframework... | true |
Other | spring-projects | spring-framework | 1412c2c5770392cbb4512e56be60fe5e53b3252d.json | Fix sample code in WebFlux chapter | src/docs/asciidoc/web/web-flux.adoc | @@ -327,9 +327,10 @@ For the **functional programming model** bootstrap as follows:
[source,java,indent=0]
[subs="verbatim,quotes"]
----
-ApplicationContext context = new AnnotationConfigApplicationContext(); // (1)
+AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(); // (1)
conte... | false |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-beans/src/main/java/org/springframework/beans/AbstractNestablePropertyAccessor.java | @@ -189,7 +189,7 @@ public void setWrappedInstance(Object object) {
* @param nestedPath the nested path of the object
* @param rootObject the root object at the top of the path
*/
- public void setWrappedInstance(Object object, String nestedPath, Object rootObject) {
+ public void setWrappedInstance(Object obj... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-beans/src/main/java/org/springframework/beans/BeanUtils.java | @@ -599,7 +599,7 @@ public static void copyProperties(Object source, Object target, String... ignore
* @throws BeansException if the copying failed
* @see BeanWrapper
*/
- private static void copyProperties(Object source, Object target, Class<?> editable, String... ignoreProperties)
+ private static void copyP... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-beans/src/main/java/org/springframework/beans/BeanWrapperImpl.java | @@ -28,6 +28,7 @@
import org.springframework.core.ResolvableType;
import org.springframework.core.convert.Property;
import org.springframework.core.convert.TypeDescriptor;
+import org.springframework.lang.Nullable;
import org.springframework.util.Assert;
/**
@@ -147,7 +148,7 @@ public void setBeanInstance(Object... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-beans/src/main/java/org/springframework/beans/ExtendedBeanInfo.java | @@ -280,7 +280,7 @@ public SimplePropertyDescriptor(PropertyDescriptor original) throws Introspectio
PropertyDescriptorUtils.copyNonMethodProperties(original, this);
}
- public SimplePropertyDescriptor(String propertyName, Method readMethod, Method writeMethod) throws IntrospectionException {
+ public Simple... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-beans/src/main/java/org/springframework/beans/TypeConverterDelegate.java | @@ -145,7 +145,7 @@ public <T> T convertIfNecessary(
* @throws IllegalArgumentException if type conversion failed
*/
@SuppressWarnings("unchecked")
- public <T> T convertIfNecessary(String propertyName, @Nullable Object oldValue, Object newValue,
+ public <T> T convertIfNecessary(@Nullable String propertyName, ... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-beans/src/main/java/org/springframework/beans/factory/config/AutowireCapableBeanFactory.java | @@ -339,7 +339,7 @@ Object applyBeanPostProcessorsAfterInitialization(Object existingBean, String be
* @see #resolveDependency(DependencyDescriptor, String, Set, TypeConverter)
*/
@Nullable
- Object resolveDependency(DependencyDescriptor descriptor, String requestingBeanName) throws BeansException;
+ Object res... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-beans/src/main/java/org/springframework/beans/factory/config/BeanExpressionContext.java | @@ -32,7 +32,7 @@ public class BeanExpressionContext {
private final Scope scope;
- public BeanExpressionContext(ConfigurableBeanFactory beanFactory, Scope scope) {
+ public BeanExpressionContext(ConfigurableBeanFactory beanFactory, @Nullable Scope scope) {
Assert.notNull(beanFactory, "BeanFactory must not be ... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-beans/src/main/java/org/springframework/beans/factory/config/ConfigurableBeanFactory.java | @@ -102,7 +102,7 @@ public interface ConfigurableBeanFactory extends HierarchicalBeanFactory, Single
* then removed once the BeanFactory completes its bootstrap phase.
* @since 2.5
*/
- void setTempClassLoader(ClassLoader tempClassLoader);
+ void setTempClassLoader(@Nullable ClassLoader tempClassLoader);
/... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-beans/src/main/java/org/springframework/beans/factory/config/ConstructorArgumentValues.java | @@ -279,7 +279,7 @@ public ValueHolder getGenericArgumentValue(Class<?> requiredType, String require
* @return the ValueHolder for the argument, or {@code null} if none found
*/
@Nullable
- public ValueHolder getGenericArgumentValue(@Nullable Class<?> requiredType, @Nullable String requiredName, Set<ValueHolder... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-beans/src/main/java/org/springframework/beans/factory/config/TypedStringValue.java | @@ -52,7 +52,7 @@ public class TypedStringValue implements BeanMetadataElement {
* Create a new {@link TypedStringValue} for the given String value.
* @param value the String value
*/
- public TypedStringValue(String value) {
+ public TypedStringValue(@Nullable String value) {
setValue(value);
}
@@ -62,... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-beans/src/main/java/org/springframework/beans/factory/config/YamlProcessor.java | @@ -39,6 +39,7 @@
import org.springframework.core.CollectionFactory;
import org.springframework.core.io.Resource;
+import org.springframework.lang.Nullable;
import org.springframework.util.Assert;
import org.springframework.util.StringUtils;
@@ -272,7 +273,7 @@ protected final Map<String, Object> getFlattenedMa... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-beans/src/main/java/org/springframework/beans/factory/parsing/Problem.java | @@ -67,7 +67,7 @@ public Problem(String message, Location location, ParseState parseState) {
* @param parseState the {@link ParseState} at the time of the error
* @param location the location within a bean configuration source that triggered the error
*/
- public Problem(String message, Location location, Pars... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-beans/src/main/java/org/springframework/beans/factory/parsing/ReaderContext.java | @@ -17,6 +17,7 @@
package org.springframework.beans.factory.parsing;
import org.springframework.core.io.Resource;
+import org.springframework.lang.Nullable;
/**
* Context that gets passed along a bean definition reading process,
@@ -59,11 +60,11 @@ public void fatal(String message, Object source, Throwable ex)... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractAutowireCapableBeanFactory.java | @@ -334,7 +334,7 @@ public Object configureBean(Object existingBean, String beanName) throws BeansEx
}
@Override
- public Object resolveDependency(DependencyDescriptor descriptor, String requestingBeanName) throws BeansException {
+ public Object resolveDependency(DependencyDescriptor descriptor, @Nullable String... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanFactory.java | @@ -230,7 +230,7 @@ public <T> T getBean(String name, Class<T> requiredType, Object... args) throws
*/
@SuppressWarnings("unchecked")
protected <T> T doGetBean(
- final String name, final Class<T> requiredType, final Object[] args, boolean typeCheckOnly)
+ final String name, @Nullable final Class<T> required... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-beans/src/main/java/org/springframework/beans/factory/support/BeanDefinitionBuilder.java | @@ -20,6 +20,7 @@
import org.springframework.beans.factory.config.BeanDefinitionCustomizer;
import org.springframework.beans.factory.config.RuntimeBeanReference;
+import org.springframework.lang.Nullable;
import org.springframework.util.ObjectUtils;
/**
@@ -93,7 +94,7 @@ public static BeanDefinitionBuilder root... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-beans/src/main/java/org/springframework/beans/factory/support/CglibSubclassingInstantiationStrategy.java | @@ -78,7 +78,7 @@ protected Object instantiateWithMethodInjection(RootBeanDefinition bd, String be
@Override
protected Object instantiateWithMethodInjection(RootBeanDefinition bd, String beanName, BeanFactory owner,
- Constructor<?> ctor, Object... args) {
+ @Nullable Constructor<?> ctor, Object... args) {
... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-beans/src/main/java/org/springframework/beans/factory/support/ConstructorResolver.java | @@ -823,7 +823,7 @@ protected Constructor<?> getUserDeclaredConstructor(Constructor<?> constructor)
* Template method for resolving the specified argument which is supposed to be autowired.
*/
protected Object resolveAutowiredArgument(
- MethodParameter param, String beanName, Set<String> autowiredBeanNames, ... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-beans/src/main/java/org/springframework/beans/factory/support/DefaultListableBeanFactory.java | @@ -1040,7 +1040,7 @@ else if (candidateNames.length > 1) {
@Override
public Object resolveDependency(DependencyDescriptor descriptor, String requestingBeanName,
- Set<String> autowiredBeanNames, TypeConverter typeConverter) throws BeansException {
+ @Nullable Set<String> autowiredBeanNames, @Nullable TypeCon... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-beans/src/main/java/org/springframework/beans/factory/support/DefaultSingletonBeanRegistry.java | @@ -450,7 +450,7 @@ protected boolean isDependent(String beanName, String dependentBeanName) {
return isDependent(beanName, dependentBeanName, null);
}
- private boolean isDependent(String beanName, String dependentBeanName, Set<String> alreadySeen) {
+ private boolean isDependent(String beanName, String depende... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-beans/src/main/java/org/springframework/beans/factory/support/RootBeanDefinition.java | @@ -178,7 +178,7 @@ public RootBeanDefinition(@Nullable Class<?> beanClass, int autowireMode, boolea
* @param cargs the constructor argument values to apply
* @param pvs the property values to apply
*/
- public RootBeanDefinition(@Nullable Class<?> beanClass, ConstructorArgumentValues cargs, MutablePropertyVal... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-beans/src/main/java/org/springframework/beans/factory/support/SimpleInstantiationStrategy.java | @@ -135,7 +135,7 @@ public Object run() {
* Instantiation should use the given constructor and parameters.
*/
protected Object instantiateWithMethodInjection(RootBeanDefinition bd, String beanName, BeanFactory owner,
- Constructor<?> ctor, Object... args) {
+ @Nullable Constructor<?> ctor, Object... args) {... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-beans/src/main/java/org/springframework/beans/factory/xml/BeanDefinitionParserDelegate.java | @@ -309,7 +309,7 @@ public void initDefaults(Element root) {
* @see #populateDefaults(DocumentDefaultsDefinition, DocumentDefaultsDefinition, org.w3c.dom.Element)
* @see #getDefaults()
*/
- public void initDefaults(Element root, BeanDefinitionParserDelegate parent) {
+ public void initDefaults(Element root, @N... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-context-support/src/main/java/org/springframework/mail/javamail/JavaMailSenderImpl.java | @@ -404,7 +404,7 @@ public void testConnection() throws MessagingException {
* @throws org.springframework.mail.MailSendException
* in case of failure when sending a message
*/
- protected void doSend(MimeMessage[] mimeMessages, Object[] originalMessages) throws MailException {
+ protected void doSend(MimeMess... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-context-support/src/main/java/org/springframework/mail/javamail/MimeMessageHelper.java | @@ -362,7 +362,7 @@ protected void createMimeMultiparts(MimeMessage mimeMessage, int multipartMode)
* will be added to (can be the same as the root multipart object, or an element
* nested underneath the root multipart element)
*/
- protected final void setMimeMultiparts(@Nullable MimeMultipart root, MimeMulti... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-context-support/src/main/java/org/springframework/scheduling/quartz/SchedulerAccessor.java | @@ -39,6 +39,7 @@
import org.springframework.context.ResourceLoaderAware;
import org.springframework.core.io.ResourceLoader;
+import org.springframework.lang.Nullable;
import org.springframework.transaction.PlatformTransactionManager;
import org.springframework.transaction.TransactionException;
import org.spring... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-context/src/main/java/org/springframework/cache/interceptor/CacheAspectSupport.java | @@ -458,7 +458,7 @@ private void performCacheEvict(CacheOperationContext context, CacheEvictOperatio
}
}
- private void logInvalidating(CacheOperationContext context, CacheEvictOperation operation, Object key) {
+ private void logInvalidating(CacheOperationContext context, CacheEvictOperation operation, @Nullabl... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-context/src/main/java/org/springframework/context/MessageSource.java | @@ -53,7 +53,7 @@ public interface MessageSource {
* otherwise the default message passed as a parameter
* @see java.text.MessageFormat
*/
- String getMessage(String code, @Nullable Object[] args, String defaultMessage, Locale locale);
+ String getMessage(String code, @Nullable Object[] args, @Nullable String ... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-context/src/main/java/org/springframework/context/ResourceLoaderAware.java | @@ -18,6 +18,7 @@
import org.springframework.beans.factory.Aware;
import org.springframework.core.io.ResourceLoader;
+import org.springframework.lang.Nullable;
/**
* Interface to be implemented by any object that wishes to be notified of
@@ -73,6 +74,6 @@ public interface ResourceLoaderAware extends Aware {
... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-context/src/main/java/org/springframework/context/annotation/AnnotatedBeanDefinitionReader.java | @@ -210,7 +210,7 @@ public void registerBean(Class<?> annotatedClass, String name, Class<? extends A
* factory's {@link BeanDefinition}, e.g. setting a lazy-init or primary flag
* @since 5.0
*/
- <T> void doRegisterBean(Class<T> annotatedClass, @Nullable Supplier<T> instanceSupplier, String name,
+ <T> void do... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-context/src/main/java/org/springframework/context/annotation/AnnotationConfigApplicationContext.java | @@ -214,7 +214,7 @@ public <T> void registerBean(@Nullable String beanName, Class<T> annotatedClass,
}
@Override
- public <T> void registerBean(@Nullable String beanName, @Nullable Class<T> beanClass, Supplier<T> supplier,
+ public <T> void registerBean(@Nullable String beanName, @Nullable Class<T> beanClass, @Nu... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-context/src/main/java/org/springframework/context/annotation/ClassPathScanningCandidateComponentProvider.java | @@ -252,7 +252,7 @@ protected BeanDefinitionRegistry getRegistry() {
* @see org.springframework.core.io.support.PathMatchingResourcePatternResolver
*/
@Override
- public void setResourceLoader(ResourceLoader resourceLoader) {
+ public void setResourceLoader(@Nullable ResourceLoader resourceLoader) {
this.res... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-context/src/main/java/org/springframework/context/annotation/ConfigurationClassPostProcessor.java | @@ -193,7 +193,7 @@ public void setEnvironment(Environment environment) {
}
@Override
- public void setResourceLoader(ResourceLoader resourceLoader) {
+ public void setResourceLoader(@Nullable ResourceLoader resourceLoader) {
Assert.notNull(resourceLoader, "ResourceLoader must not be null");
this.resourceLo... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-context/src/main/java/org/springframework/context/event/AbstractApplicationEventMulticaster.java | @@ -208,7 +208,7 @@ protected Collection<ApplicationListener<?>> getApplicationListeners(
* @return the pre-filtered list of application listeners for the given event and source type
*/
private Collection<ApplicationListener<?>> retrieveApplicationListeners(
- ResolvableType eventType, Class<?> sourceType, Li... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-context/src/main/java/org/springframework/context/support/AbstractApplicationContext.java | @@ -367,7 +367,7 @@ public void publishEvent(Object event) {
* @param eventType the resolved event type, if known
* @since 4.2
*/
- protected void publishEvent(Object event, ResolvableType eventType) {
+ protected void publishEvent(Object event, @Nullable ResolvableType eventType) {
Assert.notNull(event, "E... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-context/src/main/java/org/springframework/context/support/AbstractMessageSource.java | @@ -134,7 +134,7 @@ protected boolean isUseCodeAsDefaultMessage() {
@Override
- public final String getMessage(String code, @Nullable Object[] args, String defaultMessage, Locale locale) {
+ public final String getMessage(String code, @Nullable Object[] args, @Nullable String defaultMessage, Locale locale) {
S... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-context/src/main/java/org/springframework/context/support/DelegatingMessageSource.java | @@ -52,7 +52,7 @@ public MessageSource getParentMessageSource() {
@Override
- public String getMessage(String code, @Nullable Object[] args, String defaultMessage, Locale locale) {
+ public String getMessage(String code, @Nullable Object[] args, @Nullable String defaultMessage, Locale locale) {
if (this.parent... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-context/src/main/java/org/springframework/context/support/GenericApplicationContext.java | @@ -419,7 +419,7 @@ public final <T> void registerBean(Class<T> beanClass, Supplier<T> supplier, Bea
* factory's {@link BeanDefinition}, e.g. setting a lazy-init or primary flag
* @since 5.0
*/
- public <T> void registerBean(@Nullable String beanName, @Nullable Class<T> beanClass, Supplier<T> supplier,
+ publi... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-context/src/main/java/org/springframework/context/support/ReloadableResourceBundleMessageSource.java | @@ -162,7 +162,7 @@ public void setPropertiesPersister(PropertiesPersister propertiesPersister) {
* @see org.springframework.context.ResourceLoaderAware
*/
@Override
- public void setResourceLoader(ResourceLoader resourceLoader) {
+ public void setResourceLoader(@Nullable ResourceLoader resourceLoader) {
thi... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-context/src/main/java/org/springframework/instrument/classloading/WeavingTransformer.java | @@ -22,6 +22,8 @@
import java.util.ArrayList;
import java.util.List;
+import org.springframework.lang.Nullable;
+
/**
* ClassFileTransformer-based weaver, allowing for a list of transformers to be
* applied on a class byte array. Normally used inside class loaders.
@@ -88,7 +90,7 @@ public byte[] transformIfNe... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-context/src/main/java/org/springframework/jmx/export/MBeanExporter.java | @@ -749,7 +749,7 @@ private ObjectName registerLazyInit(String beanName, String beanKey) throws JMEx
* @throws javax.management.MalformedObjectNameException
* if the retrieved {@code ObjectName} is malformed
*/
- protected ObjectName getObjectName(Object bean, String beanKey) throws MalformedObjectNameExceptio... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-context/src/main/java/org/springframework/jndi/JndiLocatorDelegate.java | @@ -20,6 +20,7 @@
import javax.naming.NamingException;
import org.springframework.core.SpringProperties;
+import org.springframework.lang.Nullable;
/**
* {@link JndiLocatorSupport} subclass with public lookup methods,
@@ -59,7 +60,7 @@ public Object lookup(String jndiName) throws NamingException {
}
@Ove... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-context/src/main/java/org/springframework/jndi/JndiLocatorSupport.java | @@ -18,6 +18,7 @@
import javax.naming.NamingException;
+import org.springframework.lang.Nullable;
import org.springframework.util.Assert;
/**
@@ -87,7 +88,7 @@ protected Object lookup(String jndiName) throws NamingException {
* @throws NamingException if the JNDI lookup failed
* @see #setResourceRef
*... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-context/src/main/java/org/springframework/jndi/support/SimpleJndiBeanFactory.java | @@ -206,7 +206,7 @@ public String[] getAliases(String name) {
@SuppressWarnings("unchecked")
- private <T> T doGetSingleton(String name, Class<T> requiredType) throws NamingException {
+ private <T> T doGetSingleton(String name, @Nullable Class<T> requiredType) throws NamingException {
synchronized (this.singl... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-context/src/main/java/org/springframework/scheduling/annotation/AsyncResult.java | @@ -20,6 +20,7 @@
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
+import org.springframework.lang.Nullable;
import org.springframework.util.concurrent.FailureCallback;
import org.springframework.util.concurrent.ListenableFuture;
import org.springframework.util.concurrent.ListenableFutu... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-context/src/main/java/org/springframework/scheduling/concurrent/ConcurrentTaskExecutor.java | @@ -28,6 +28,7 @@
import org.springframework.core.task.AsyncListenableTaskExecutor;
import org.springframework.core.task.TaskDecorator;
import org.springframework.core.task.support.TaskExecutorAdapter;
+import org.springframework.lang.Nullable;
import org.springframework.scheduling.SchedulingAwareRunnable;
import ... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-context/src/main/java/org/springframework/scripting/bsh/BshScriptUtils.java | @@ -85,7 +85,7 @@ public static Object createBshObject(String scriptSource, @Nullable Class<?>...
* @return the scripted Java object
* @throws EvalError in case of BeanShell parsing failure
*/
- public static Object createBshObject(String scriptSource, @Nullable Class<?>[] scriptInterfaces, ClassLoader classLo... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-context/src/main/java/org/springframework/scripting/support/ScriptFactoryPostProcessor.java | @@ -228,7 +228,7 @@ public void setBeanFactory(BeanFactory beanFactory) {
}
@Override
- public void setResourceLoader(ResourceLoader resourceLoader) {
+ public void setResourceLoader(@Nullable ResourceLoader resourceLoader) {
this.resourceLoader = resourceLoader;
}
| true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-context/src/main/java/org/springframework/validation/AbstractBindingResult.java | @@ -92,7 +92,7 @@ public String getObjectName() {
@Override
- public void reject(String errorCode, @Nullable Object[] errorArgs, String defaultMessage) {
+ public void reject(String errorCode, @Nullable Object[] errorArgs, @Nullable String defaultMessage) {
addError(new ObjectError(getObjectName(), resolveMess... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-context/src/main/java/org/springframework/validation/BindException.java | @@ -115,7 +115,7 @@ public void reject(String errorCode, String defaultMessage) {
}
@Override
- public void reject(String errorCode, @Nullable Object[] errorArgs, String defaultMessage) {
+ public void reject(String errorCode, @Nullable Object[] errorArgs, @Nullable String defaultMessage) {
this.bindingResult.... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-context/src/main/java/org/springframework/validation/DefaultMessageCodesResolver.java | @@ -164,13 +164,13 @@ public String[] resolveMessageCodes(String errorCode, String objectName, String
return StringUtils.toStringArray(codeList);
}
- private void addCodes(Collection<String> codeList, String errorCode, String objectName, Iterable<String> fields) {
+ private void addCodes(Collection<String> codeL... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-context/src/main/java/org/springframework/validation/Errors.java | @@ -121,7 +121,7 @@ public interface Errors {
* (can be {@code null})
* @param defaultMessage fallback default message
*/
- void reject(String errorCode, @Nullable Object[] errorArgs, String defaultMessage);
+ void reject(String errorCode, @Nullable Object[] errorArgs, @Nullable String defaultMessage);
/**... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-context/src/main/java/org/springframework/validation/ValidationUtils.java | @@ -160,7 +160,7 @@ public static void rejectIfEmpty(Errors errors, String field, @Nullable String e
* @param defaultMessage fallback default message
*/
public static void rejectIfEmpty(
- Errors errors, String field, String errorCode, @Nullable Object[] errorArgs, String defaultMessage) {
+ Errors errors, ... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-core/src/main/java/org/springframework/core/OrderComparator.java | @@ -74,7 +74,7 @@ public int compare(Object o1, Object o2) {
return doCompare(o1, o2, null);
}
- private int doCompare(Object o1, Object o2, OrderSourceProvider sourceProvider) {
+ private int doCompare(Object o1, Object o2, @Nullable OrderSourceProvider sourceProvider) {
boolean p1 = (o1 instanceof PriorityO... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-core/src/main/java/org/springframework/core/ReactiveAdapterRegistry.java | @@ -122,7 +122,7 @@ public ReactiveAdapter getAdapter(Class<?> reactiveType) {
* (i.e. to adapt from; may be {@code null} if the reactive type is specified)
*/
@Nullable
- public ReactiveAdapter getAdapter(@Nullable Class<?> reactiveType, Object source) {
+ public ReactiveAdapter getAdapter(@Nullable Class<?> r... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-core/src/main/java/org/springframework/core/ReactiveTypeDescriptor.java | @@ -17,6 +17,7 @@
import java.util.function.Supplier;
+import org.springframework.lang.Nullable;
import org.springframework.util.Assert;
/**
@@ -42,7 +43,7 @@ public class ReactiveTypeDescriptor {
/**
* Private constructor. See static factory methods.
*/
- private ReactiveTypeDescriptor(Class<?> reacti... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-core/src/main/java/org/springframework/core/ResolvableType.java | @@ -146,7 +146,7 @@ private ResolvableType(Type type, TypeProvider typeProvider, VariableResolver va
* with upfront resolution and a pre-calculated hash.
* @since 4.2
*/
- private ResolvableType(Type type, TypeProvider typeProvider, VariableResolver variableResolver, Integer hash) {
+ private ResolvableType(@N... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-core/src/main/java/org/springframework/core/annotation/AnnotatedElementUtils.java | @@ -241,8 +241,8 @@ public static boolean hasMetaAnnotationTypes(AnnotatedElement element, String an
return hasMetaAnnotationTypes(element, null, annotationName);
}
- private static boolean hasMetaAnnotationTypes(AnnotatedElement element, Class<? extends Annotation> annotationType,
- String annotationName) {
+... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-core/src/main/java/org/springframework/core/codec/ByteArrayDecoder.java | @@ -48,7 +48,7 @@ public boolean canDecode(ResolvableType elementType, @Nullable MimeType mimeType
}
@Override
- public Flux<byte[]> decode(Publisher<DataBuffer> inputStream, ResolvableType elementType,
+ public Flux<byte[]> decode(Publisher<DataBuffer> inputStream,@Nullable ResolvableType elementType,
@Null... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-core/src/main/java/org/springframework/core/codec/ByteBufferDecoder.java | @@ -50,7 +50,7 @@ public boolean canDecode(ResolvableType elementType, @Nullable MimeType mimeType
}
@Override
- public Flux<ByteBuffer> decode(Publisher<DataBuffer> inputStream, ResolvableType elementType,
+ public Flux<ByteBuffer> decode(Publisher<DataBuffer> inputStream, @Nullable ResolvableType elementType,
... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-core/src/main/java/org/springframework/core/codec/DataBufferDecoder.java | @@ -50,7 +50,7 @@ public boolean canDecode(ResolvableType elementType, @Nullable MimeType mimeType
}
@Override
- public Flux<DataBuffer> decode(Publisher<DataBuffer> inputStream, ResolvableType elementType,
+ public Flux<DataBuffer> decode(Publisher<DataBuffer> inputStream, @Nullable ResolvableType elementType,
... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-core/src/main/java/org/springframework/core/codec/Decoder.java | @@ -58,7 +58,7 @@
* @param hints additional information about how to do encode
* @return the output stream with decoded elements
*/
- Flux<T> decode(Publisher<DataBuffer> inputStream, ResolvableType elementType,
+ Flux<T> decode(Publisher<DataBuffer> inputStream, @Nullable ResolvableType elementType,
@Null... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-core/src/main/java/org/springframework/core/codec/ResourceDecoder.java | @@ -55,7 +55,7 @@ public boolean canDecode(ResolvableType elementType, @Nullable MimeType mimeType
}
@Override
- public Flux<Resource> decode(Publisher<DataBuffer> inputStream, ResolvableType elementType,
+ public Flux<Resource> decode(Publisher<DataBuffer> inputStream, @Nullable ResolvableType elementType,
@... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-core/src/main/java/org/springframework/core/codec/StringDecoder.java | @@ -77,7 +77,7 @@ public boolean canDecode(ResolvableType elementType, @Nullable MimeType mimeType
}
@Override
- public Flux<String> decode(Publisher<DataBuffer> inputStream, ResolvableType elementType,
+ public Flux<String> decode(Publisher<DataBuffer> inputStream, @Nullable ResolvableType elementType,
@Null... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-core/src/main/java/org/springframework/core/convert/ConversionFailedException.java | @@ -16,6 +16,7 @@
package org.springframework.core.convert;
+import org.springframework.lang.Nullable;
import org.springframework.util.ObjectUtils;
/**
@@ -42,7 +43,7 @@ public class ConversionFailedException extends ConversionException {
* @param value the value we tried to convert
* @param cause the ca... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-core/src/main/java/org/springframework/core/convert/Property.java | @@ -63,7 +63,7 @@ public final class Property {
private Annotation[] annotations;
- public Property(Class<?> objectType, Method readMethod, Method writeMethod) {
+ public Property(Class<?> objectType, @Nullable Method readMethod, @Nullable Method writeMethod) {
this(objectType, readMethod, writeMethod, null);
... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-core/src/main/java/org/springframework/core/convert/TypeDescriptor.java | @@ -118,7 +118,7 @@ public TypeDescriptor(Property property) {
* @param annotations the type annotations
* @since 4.0
*/
- protected TypeDescriptor(ResolvableType resolvableType, @Nullable Class<?> type, Annotation[] annotations) {
+ protected TypeDescriptor(ResolvableType resolvableType, @Nullable Class<?> ty... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-core/src/main/java/org/springframework/core/convert/support/GenericConversionService.java | @@ -230,7 +230,7 @@ public String toString() {
* @return the converted null object
*/
@Nullable
- protected Object convertNullSource(TypeDescriptor sourceType, TypeDescriptor targetType) {
+ protected Object convertNullSource(@Nullable TypeDescriptor sourceType, TypeDescriptor targetType) {
if (targetType.ge... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-core/src/main/java/org/springframework/core/io/VfsUtils.java | @@ -25,6 +25,7 @@
import java.net.URI;
import java.net.URL;
+import org.springframework.lang.Nullable;
import org.springframework.util.ReflectionUtils;
/**
@@ -95,7 +96,7 @@ public abstract class VfsUtils {
}
}
- protected static Object invokeVfsMethod(Method method, Object target, Object... args) throws... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-core/src/main/java/org/springframework/core/io/support/ResourcePropertySource.java | @@ -23,6 +23,7 @@
import org.springframework.core.env.PropertiesPropertySource;
import org.springframework.core.io.DefaultResourceLoader;
import org.springframework.core.io.Resource;
+import org.springframework.lang.Nullable;
import org.springframework.util.StringUtils;
/**
@@ -124,7 +125,7 @@ public ResourcePro... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-core/src/main/java/org/springframework/util/AntPathMatcher.java | @@ -25,6 +25,8 @@
import java.util.regex.Matcher;
import java.util.regex.Pattern;
+import org.springframework.lang.Nullable;
+
/**
* {@link PathMatcher} implementation for Ant-style path patterns.
*
@@ -187,7 +189,7 @@ public boolean matchStart(String pattern, String path) {
* as far as the given base path ... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-core/src/main/java/org/springframework/util/CollectionUtils.java | @@ -411,7 +411,7 @@ public MultiValueMapAdapter(Map<K, List<V>> map) {
}
@Override
- public void add(K key, V value) {
+ public void add(K key, @Nullable V value) {
List<V> values = this.map.computeIfAbsent(key, k -> new LinkedList<>());
values.add(value);
} | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-core/src/main/java/org/springframework/util/LinkedMultiValueMap.java | @@ -24,6 +24,8 @@
import java.util.Map;
import java.util.Set;
+import org.springframework.lang.Nullable;
+
/**
* Simple implementation of {@link MultiValueMap} that wraps a {@link LinkedHashMap},
* storing multiple values in a {@link LinkedList}.
@@ -74,7 +76,7 @@ public LinkedMultiValueMap(Map<K, List<V>> oth... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-core/src/main/java/org/springframework/util/MultiValueMap.java | @@ -42,7 +42,7 @@
* @param key the key
* @param value the value to be added
*/
- void add(K key, V value);
+ void add(K key, @Nullable V value);
/**
* Add all the values of the given list to the current list of values for the given key. | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-core/src/main/java/org/springframework/util/ReflectionUtils.java | @@ -238,7 +238,7 @@ public static Object invokeMethod(Method method, @Nullable Object target, @Nulla
* @see #invokeJdbcMethod(java.lang.reflect.Method, Object, Object[])
*/
@Nullable
- public static Object invokeJdbcMethod(Method method, Object target) throws SQLException {
+ public static Object invokeJdbcMeth... | true |
Other | spring-projects | spring-framework | 1f28825f9da63a13aaf8940aadedcf81358dc506.json | Add more @Nullable parameters based on null usage
Issue: SPR-15540 | spring-core/src/main/java/org/springframework/util/StringUtils.java | @@ -1065,7 +1065,7 @@ public static Properties splitArrayElementsIntoProperties(String[] array, String
*/
@Nullable
public static Properties splitArrayElementsIntoProperties(
- String[] array, String delimiter, String charsToDelete) {
+ String[] array, String delimiter, @Nullable String charsToDelete) {
... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.