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
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-web/src/main/java/org/springframework/http/HttpHeaders.java
@@ -558,7 +558,7 @@ public List<HttpMethod> getAccessControlAllowMethods() { /** * Set the (new) value of the {@code Access-Control-Allow-Origin} response header. */ - public void setAccessControlAllowOrigin(String allowedOrigin) { + public void setAccessControlAllowOrigin(@Nullable String allowedOrigin) { s...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-web/src/main/java/org/springframework/http/codec/AbstractCodecConfigurer.java
@@ -144,7 +144,7 @@ public boolean shouldRegisterDefaults() { /** * Access to custom codecs for sub-classes, e.g. for multipart writers. */ - public void setCustomCodecs(DefaultCustomCodecs customCodecs) { + public void setCustomCodecs(@Nullable DefaultCustomCodecs customCodecs) { this.customCodecs = c...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-web/src/main/java/org/springframework/http/converter/AbstractHttpMessageConverter.java
@@ -110,7 +110,7 @@ public List<MediaType> getSupportedMediaTypes() { * Set the default character set, if any. * @since 4.3 */ - public void setDefaultCharset(Charset defaultCharset) { + public void setDefaultCharset(@Nullable Charset defaultCharset) { this.defaultCharset = defaultCharset; }
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-web/src/main/java/org/springframework/http/converter/BufferedImageHttpMessageConverter.java
@@ -99,12 +99,13 @@ public BufferedImageHttpMessageConverter() { * Sets the default {@code Content-Type} to be used for writing. * @throws IllegalArgumentException if the given content type is not supported by the Java Image I/O API */ - public void setDefaultContentType(MediaType defaultContentType) { - Asse...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-web/src/main/java/org/springframework/http/converter/json/MappingJacksonInputMessage.java
@@ -61,7 +61,7 @@ public HttpHeaders getHeaders() { return this.headers; } - public void setDeserializationView(Class<?> deserializationView) { + public void setDeserializationView(@Nullable Class<?> deserializationView) { this.deserializationView = deserializationView; }
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-web/src/main/java/org/springframework/http/converter/json/MappingJacksonValue.java
@@ -39,10 +39,13 @@ public class MappingJacksonValue { private Object value; + @Nullable private Class<?> serializationView; + @Nullable private FilterProvider filters; + @Nullable private String jsonpFunction; @@ -74,7 +77,7 @@ public Object getValue() { * @see com.fasterxml.jackson.databind.Obj...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-web/src/main/java/org/springframework/http/server/reactive/AbstractServerHttpResponse.java
@@ -39,6 +39,7 @@ import org.springframework.util.CollectionUtils; import org.springframework.util.LinkedMultiValueMap; import org.springframework.util.MultiValueMap; +import org.springframework.util.StringUtils; /** * Base class for {@link ServerHttpResponse} implementations. @@ -91,11 +92,10 @@ public final D...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-web/src/main/java/org/springframework/http/server/reactive/ServerHttpResponse.java
@@ -39,7 +39,7 @@ public interface ServerHttpResponse extends ReactiveHttpOutputMessage { * @return {@code false} if the status code has not been set because the HTTP response * is already committed, {@code true} if it has been set correctly. */ - boolean setStatusCode(HttpStatus status); + boolean setStatusCo...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-web/src/main/java/org/springframework/http/server/reactive/ServerHttpResponseDecorator.java
@@ -26,6 +26,7 @@ import org.springframework.http.HttpHeaders; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseCookie; +import org.springframework.lang.Nullable; import org.springframework.util.Assert; import org.springframework.util.MultiValueMap; @@ -55,7 +56,7 @@ public Ser...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-web/src/main/java/org/springframework/remoting/httpinvoker/HttpInvokerClientInterceptor.java
@@ -92,7 +92,7 @@ public class HttpInvokerClientInterceptor extends RemoteInvocationBasedAccessor * @see org.springframework.remoting.rmi.CodebaseAwareObjectInputStream * @see java.rmi.server.RMIClassLoader */ - public void setCodebaseUrl(String codebaseUrl) { + public void setCodebaseUrl(@Nullable String code...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-web/src/main/java/org/springframework/remoting/jaxws/JaxWsPortClientInterceptor.java
@@ -119,7 +119,7 @@ public class JaxWsPortClientInterceptor extends LocalJaxWsServiceFactory * @see #setServiceName * @see org.springframework.jndi.JndiObjectFactoryBean */ - public void setJaxWsService(Service jaxWsService) { + public void setJaxWsService(@Nullable Service jaxWsService) { this.jaxWsService...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-web/src/main/java/org/springframework/remoting/jaxws/LocalJaxWsServiceFactory.java
@@ -67,7 +67,7 @@ public class LocalJaxWsServiceFactory { * Set the URL of the WSDL document that describes the service. * @see #setWsdlDocumentResource(Resource) */ - public void setWsdlDocumentUrl(URL wsdlDocumentUrl) { + public void setWsdlDocumentUrl(@Nullable URL wsdlDocumentUrl) { this.wsdlDocumentUrl...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-web/src/main/java/org/springframework/web/bind/WebDataBinder.java
@@ -131,7 +131,6 @@ public void setFieldMarkerPrefix(String fieldMarkerPrefix) { /** * Return the prefix for parameters that mark potentially empty fields. */ - @Nullable public String getFieldMarkerPrefix() { return this.fieldMarkerPrefix; } @@ -157,7 +156,6 @@ public void setFieldDefaultPrefix(String f...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-web/src/main/java/org/springframework/web/bind/support/ConfigurableWebBindingInitializer.java
@@ -106,7 +106,7 @@ public boolean isDirectFieldAccess() { * the data binder. * @see org.springframework.validation.DataBinder#setMessageCodesResolver */ - public final void setMessageCodesResolver(MessageCodesResolver messageCodesResolver) { + public final void setMessageCodesResolver(@Nullable MessageCodesRe...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-web/src/main/java/org/springframework/web/context/ConfigurableWebApplicationContext.java
@@ -58,14 +58,14 @@ public interface ConfigurableWebApplicationContext extends WebApplicationContext * called after the setting of all configuration properties. * @see #refresh() */ - void setServletContext(ServletContext servletContext); + void setServletContext(@Nullable ServletContext servletContext); /...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-web/src/main/java/org/springframework/web/context/support/AbstractRefreshableWebApplicationContext.java
@@ -104,7 +104,7 @@ public AbstractRefreshableWebApplicationContext() { @Override - public void setServletContext(ServletContext servletContext) { + public void setServletContext(@Nullable ServletContext servletContext) { this.servletContext = servletContext; } @@ -115,7 +115,7 @@ public ServletContext get...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-web/src/main/java/org/springframework/web/context/support/AnnotationConfigWebApplicationContext.java
@@ -84,8 +84,10 @@ public class AnnotationConfigWebApplicationContext extends AbstractRefreshableWebApplicationContext implements AnnotationConfigRegistry { + @Nullable private BeanNameGenerator beanNameGenerator; + @Nullable private ScopeMetadataResolver scopeMetadataResolver; private final Set<Class<?...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-web/src/main/java/org/springframework/web/context/support/GenericWebApplicationContext.java
@@ -208,7 +208,7 @@ public Theme getTheme(String themeName) { // --------------------------------------------------------------------- @Override - public void setServletConfig(ServletConfig servletConfig) { + public void setServletConfig(@Nullable ServletConfig servletConfig) { // no-op } @@ -219,7 +219,7 ...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-web/src/main/java/org/springframework/web/context/support/StaticWebApplicationContext.java
@@ -80,7 +80,7 @@ public StaticWebApplicationContext() { * Set the ServletContext that this WebApplicationContext runs in. */ @Override - public void setServletContext(ServletContext servletContext) { + public void setServletContext(@Nullable ServletContext servletContext) { this.servletContext = servletCont...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-web/src/main/java/org/springframework/web/cors/CorsConfiguration.java
@@ -278,7 +278,7 @@ public void addExposedHeader(String exposedHeader) { * Whether user credentials are supported. * <p>By default this is not set (i.e. user credentials are not supported). */ - public void setAllowCredentials(Boolean allowCredentials) { + public void setAllowCredentials(@Nullable Boolean allo...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-web/src/main/java/org/springframework/web/filter/CharacterEncodingFilter.java
@@ -45,6 +45,7 @@ */ public class CharacterEncodingFilter extends OncePerRequestFilter { + @Nullable private String encoding; private boolean forceRequestEncoding = false; @@ -110,7 +111,7 @@ public CharacterEncodingFilter(String encoding, boolean forceRequestEncoding, bo * (and whether it will be applied...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-web/src/main/java/org/springframework/web/filter/DelegatingFilterProxy.java
@@ -174,7 +174,7 @@ public DelegatingFilterProxy(String targetBeanName, @Nullable WebApplicationCont * Set the name of the ServletContext attribute which should be used to retrieve the * {@link WebApplicationContext} from which to load the delegate {@link Filter} bean. */ - public void setContextAttribute(Stri...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-web/src/main/java/org/springframework/web/jsf/DecoratingNavigationHandler.java
@@ -39,6 +39,7 @@ */ public abstract class DecoratingNavigationHandler extends NavigationHandler { + @Nullable private NavigationHandler decoratedNavigationHandler;
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-web/src/main/java/org/springframework/web/server/i18n/AcceptHeaderLocaleContextResolver.java
@@ -70,7 +70,7 @@ public List<Locale> getSupportedLocales() { * have an "Accept-Language" header (not set by default). * @param defaultLocale the default locale to use */ - public void setDefaultLocale(Locale defaultLocale) { + public void setDefaultLocale(@Nullable Locale defaultLocale) { this.defaultLocal...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-web/src/main/java/org/springframework/web/util/CookieGenerator.java
@@ -50,12 +50,15 @@ public class CookieGenerator { protected final Log logger = LogFactory.getLog(getClass()); + @Nullable private String cookieName; + @Nullable private String cookieDomain; private String cookiePath = DEFAULT_COOKIE_PATH; + @Nullable private Integer cookieMaxAge; private boole...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-webflux/src/main/java/org/springframework/web/reactive/config/WebFluxConfigurationSupport.java
@@ -90,7 +90,7 @@ public class WebFluxConfigurationSupport implements ApplicationContextAware { @Override - public void setApplicationContext(ApplicationContext applicationContext) { + public void setApplicationContext(@Nullable ApplicationContext applicationContext) { this.applicationContext = applicationCont...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-webflux/src/main/java/org/springframework/web/reactive/resource/PathResourceResolver.java
@@ -43,6 +43,7 @@ */ public class PathResourceResolver extends AbstractResourceResolver { + @Nullable private Resource[] allowedLocations; @@ -61,7 +62,7 @@ public class PathResourceResolver extends AbstractResourceResolver { * to match its list of locations. * @param locations the list of allowed loca...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-webflux/src/main/java/org/springframework/web/reactive/resource/ResourceTransformerSupport.java
@@ -35,6 +35,7 @@ */ public abstract class ResourceTransformerSupport implements ResourceTransformer { + @Nullable private ResourceUrlProvider resourceUrlProvider; @@ -45,7 +46,7 @@ public abstract class ResourceTransformerSupport implements ResourceTransformer * relative links. * @param resourceUrlPro...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-webflux/src/main/java/org/springframework/web/reactive/resource/ResourceWebHandler.java
@@ -95,8 +95,10 @@ public class ResourceWebHandler implements WebHandler, InitializingBean { private final List<ResourceTransformer> resourceTransformers = new ArrayList<>(4); + @Nullable private CacheControl cacheControl; + @Nullable private ResourceHttpMessageWriter resourceHttpMessageWriter; @@ -160,...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/RequestMappingHandlerAdapter.java
@@ -76,7 +76,7 @@ public class RequestMappingHandlerAdapter implements HandlerAdapter, Application * Configure HTTP message readers to de-serialize the request body with. * <p>By default this is set to {@link ServerCodecConfigurer} with defaults. */ - public void setMessageCodecConfigurer(ServerCodecConfigurer...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-webflux/src/main/java/org/springframework/web/reactive/result/view/AbstractUrlBasedView.java
@@ -30,6 +30,7 @@ */ public abstract class AbstractUrlBasedView extends AbstractView implements InitializingBean { + @Nullable private String url; @@ -51,7 +52,7 @@ protected AbstractUrlBasedView(String url) { * Set the URL of the resource that this view wraps. * The URL must be appropriate for the con...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-webflux/src/main/java/org/springframework/web/reactive/result/view/AbstractView.java
@@ -134,7 +134,7 @@ public String getRequestContextAttribute() { } @Override - public void setApplicationContext(ApplicationContext applicationContext) { + public void setApplicationContext(@Nullable ApplicationContext applicationContext) { this.applicationContext = applicationContext; }
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-webflux/src/main/java/org/springframework/web/reactive/result/view/RedirectView.java
@@ -111,9 +111,10 @@ public boolean isContextRelative() { * {@link HttpStatus#TEMPORARY_REDIRECT} or * {@link HttpStatus#PERMANENT_REDIRECT}. */ - public void setStatusCode(HttpStatus statusCode) { - Assert.notNull(statusCode, "HttpStatus must not be null"); - Assert.isTrue(statusCode.is3xxRedirection(), "Mu...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-webflux/src/main/java/org/springframework/web/reactive/result/view/UrlBasedViewResolver.java
@@ -73,18 +73,22 @@ public class UrlBasedViewResolver extends ViewResolverSupport public static final String REDIRECT_URL_PREFIX = "redirect:"; + @Nullable private Class<?> viewClass; private String prefix = ""; private String suffix = ""; + @Nullable private String[] viewNames; private Function...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-webflux/src/main/java/org/springframework/web/reactive/result/view/freemarker/FreeMarkerView.java
@@ -67,8 +67,10 @@ */ public class FreeMarkerView extends AbstractUrlBasedView { + @Nullable private Configuration configuration; + @Nullable private String encoding; @@ -78,7 +80,7 @@ public class FreeMarkerView extends AbstractUrlBasedView { * {@link FreeMarkerConfig} is expected in the Spring appli...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-webmvc/src/main/java/org/springframework/web/servlet/FrameworkServlet.java
@@ -285,7 +285,7 @@ public FrameworkServlet(WebApplicationContext webApplicationContext) { * Set the name of the ServletContext attribute which should be used to retrieve the * {@link WebApplicationContext} that this servlet is supposed to use. */ - public void setContextAttribute(String contextAttribute) { + ...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-webmvc/src/main/java/org/springframework/web/servlet/ModelAndView.java
@@ -264,7 +264,7 @@ public Map<String, Object> getModel() { * <p>The response status is set just prior to View rendering. * @since 4.3 */ - public void setStatus(HttpStatus status) { + public void setStatus(@Nullable HttpStatus status) { this.status = status; }
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurationSupport.java
@@ -229,7 +229,7 @@ public class WebMvcConfigurationSupport implements ApplicationContextAware, Serv * Set the Spring {@link ApplicationContext}, e.g. for resource loading. */ @Override - public void setApplicationContext(ApplicationContext applicationContext) { + public void setApplicationContext(@Nullable App...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-webmvc/src/main/java/org/springframework/web/servlet/handler/AbstractHandlerMapping.java
@@ -104,7 +104,7 @@ public final int getOrder() { * This handler will be returned if no specific mapping was found. * <p>Default is {@code null}, indicating no default handler. */ - public void setDefaultHandler(Object defaultHandler) { + public void setDefaultHandler(@Nullable Object defaultHandler) { this...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-webmvc/src/main/java/org/springframework/web/servlet/handler/AbstractUrlHandlerMapping.java
@@ -54,6 +54,7 @@ */ public abstract class AbstractUrlHandlerMapping extends AbstractHandlerMapping implements MatchableHandlerMapping { + @Nullable private Object rootHandler; private boolean useTrailingSlashMatch = false; @@ -68,7 +69,7 @@ public abstract class AbstractUrlHandlerMapping extends AbstractHan...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-webmvc/src/main/java/org/springframework/web/servlet/handler/MappedInterceptor.java
@@ -109,7 +109,7 @@ public MappedInterceptor(@Nullable String[] includePatterns, @Nullable String[] * PathMatcher implementations that support mapping metadata other than the * Ant-style path patterns supported by default. */ - public void setPathMatcher(PathMatcher pathMatcher) { + public void setPathMatcher(...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-webmvc/src/main/java/org/springframework/web/servlet/i18n/AbstractLocaleContextResolver.java
@@ -39,13 +39,14 @@ */ public abstract class AbstractLocaleContextResolver extends AbstractLocaleResolver implements LocaleContextResolver { + @Nullable private TimeZone defaultTimeZone; /** * Set a default TimeZone that this resolver will return if no other time zone found. */ - public void setDefau...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-webmvc/src/main/java/org/springframework/web/servlet/i18n/AbstractLocaleResolver.java
@@ -31,13 +31,14 @@ */ public abstract class AbstractLocaleResolver implements LocaleResolver { + @Nullable private Locale defaultLocale; /** * Set a default Locale that this resolver will return if no other locale found. */ - public void setDefaultLocale(Locale defaultLocale) { + public void setDefa...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-webmvc/src/main/java/org/springframework/web/servlet/i18n/AcceptHeaderLocaleResolver.java
@@ -43,6 +43,7 @@ public class AcceptHeaderLocaleResolver implements LocaleResolver { private final List<Locale> supportedLocales = new ArrayList<>(4); + @Nullable private Locale defaultLocale; @@ -77,7 +78,7 @@ public List<Locale> getSupportedLocales() { * @param defaultLocale the default locale to use ...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-webmvc/src/main/java/org/springframework/web/servlet/i18n/CookieLocaleResolver.java
@@ -127,7 +127,7 @@ public boolean isLanguageTagCompliant() { /** * Set a fixed Locale that this resolver will return if no cookie found. */ - public void setDefaultLocale(Locale defaultLocale) { + public void setDefaultLocale(@Nullable Locale defaultLocale) { this.defaultLocale = defaultLocale; } @@ -14...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/ParameterizableViewController.java
@@ -38,8 +38,10 @@ */ public class ParameterizableViewController extends AbstractController { + @Nullable private Object view; + @Nullable private HttpStatus statusCode; private boolean statusOnly; @@ -55,7 +57,7 @@ public ParameterizableViewController() { * DispatcherServlet via a ViewResolver. Will ...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/RequestMappingInfo.java
@@ -534,7 +534,7 @@ public static class BuilderConfiguration { * <p>By default this is not set. * @since 4.2.8 */ - public void setUrlPathHelper(UrlPathHelper urlPathHelper) { + public void setUrlPathHelper(@Nullable UrlPathHelper urlPathHelper) { this.urlPathHelper = urlPathHelper; } @@ -550,7 +...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ExceptionHandlerExceptionResolver.java
@@ -120,7 +120,7 @@ public ExceptionHandlerExceptionResolver() { * after built-in ones. To override the built-in support for argument * resolution use {@link #setArgumentResolvers} instead. */ - public void setCustomArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) { + public void setCus...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ModelAndViewMethodReturnValueHandler.java
@@ -44,6 +44,7 @@ */ public class ModelAndViewMethodReturnValueHandler implements HandlerMethodReturnValueHandler { + @Nullable private String[] redirectPatterns; @@ -56,7 +57,7 @@ public class ModelAndViewMethodReturnValueHandler implements HandlerMethodReturn * prefix as well. * @since 4.1 */ - pu...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerAdapter.java
@@ -196,7 +196,7 @@ public RequestMappingHandlerAdapter() { * after built-in ones. To override the built-in support for argument * resolution use {@link #setArgumentResolvers} instead. */ - public void setCustomArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) { + public void setCustomAr...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ViewNameMethodReturnValueHandler.java
@@ -44,6 +44,7 @@ */ public class ViewNameMethodReturnValueHandler implements HandlerMethodReturnValueHandler { + @Nullable private String[] redirectPatterns; @@ -56,7 +57,7 @@ public class ViewNameMethodReturnValueHandler implements HandlerMethodReturnValu * prefix as well. * @since 4.1 */ - public...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-webmvc/src/main/java/org/springframework/web/servlet/resource/PathResourceResolver.java
@@ -43,6 +43,7 @@ */ public class PathResourceResolver extends AbstractResourceResolver { + @Nullable private Resource[] allowedLocations; @@ -63,7 +64,7 @@ public class PathResourceResolver extends AbstractResourceResolver { * @since 4.1.2 * @see ResourceHttpRequestHandler#initAllowedLocations() */...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceHttpRequestHandler.java
@@ -181,7 +181,7 @@ public List<ResourceTransformer> getResourceTransformers() { * <p>By default a {@link ResourceHttpMessageConverter} will be configured. * @since 4.3 */ - public void setResourceHttpMessageConverter(ResourceHttpMessageConverter messageConverter) { + public void setResourceHttpMessageConverte...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceTransformerSupport.java
@@ -45,7 +45,7 @@ public abstract class ResourceTransformerSupport implements ResourceTransformer * This is required only for links expressed as full paths and not for * relative links. */ - public void setResourceUrlProvider(ResourceUrlProvider resourceUrlProvider) { + public void setResourceUrlProvider(@Null...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-webmvc/src/main/java/org/springframework/web/servlet/support/WebContentGenerator.java
@@ -151,7 +151,7 @@ public WebContentGenerator(String... supportedMethods) { * <p>Default is GET, HEAD and POST for simple form controller types; * unrestricted for general controllers and interceptors. */ - public final void setSupportedMethods(String... methods) { + public final void setSupportedMethods(@Nul...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-webmvc/src/main/java/org/springframework/web/servlet/tags/Param.java
@@ -41,7 +41,7 @@ public class Param { /** * Set the raw name of the parameter */ - public void setName(String name) { + public void setName(@Nullable String name) { this.name = name; }
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-webmvc/src/main/java/org/springframework/web/servlet/view/AbstractUrlBasedView.java
@@ -53,7 +53,7 @@ protected AbstractUrlBasedView(String url) { * Set the URL of the resource that this view wraps. * The URL must be appropriate for the concrete View implementation. */ - public void setUrl(String url) { + public void setUrl(@Nullable String url) { this.url = url; }
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-webmvc/src/main/java/org/springframework/web/servlet/view/AbstractView.java
@@ -83,6 +83,7 @@ public abstract class AbstractView extends WebApplicationObjectSupport implement @Nullable private Set<String> exposedContextBeanNames; + @Nullable private String beanName; @@ -278,7 +279,7 @@ public void setExposedContextBeanNames(String... exposedContextBeanNames) { * <p>Framework co...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-webmvc/src/main/java/org/springframework/web/servlet/view/ContentNegotiatingViewResolver.java
@@ -110,7 +110,7 @@ public class ContentNegotiatingViewResolver extends WebApplicationObjectSupport * applying a {@link org.springframework.web.accept.HeaderContentNegotiationStrategy}. * @see ContentNegotiationManager#ContentNegotiationManager() */ - public void setContentNegotiationManager(ContentNegotiation...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-webmvc/src/main/java/org/springframework/web/servlet/view/RedirectView.java
@@ -265,7 +265,7 @@ public boolean isPropagateQueryProperties() { * @param hosts one or more application hosts * @since 4.3 */ - public void setHosts(String... hosts) { + public void setHosts(@Nullable String... hosts) { this.hosts = hosts; }
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-webmvc/src/main/java/org/springframework/web/servlet/view/UrlBasedViewResolver.java
@@ -146,8 +146,8 @@ public class UrlBasedViewResolver extends AbstractCachingViewResolver implements * (by default, AbstractUrlBasedView) * @see AbstractUrlBasedView */ - public void setViewClass(Class<?> viewClass) { - if (!requiredViewClass().isAssignableFrom(viewClass)) { + public void setViewClass(@Nullab...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-webmvc/src/main/java/org/springframework/web/servlet/view/freemarker/FreeMarkerView.java
@@ -106,7 +106,7 @@ public class FreeMarkerView extends AbstractTemplateView { * <p>Specify the encoding in the FreeMarker Configuration rather than per * template if all your templates share a common encoding. */ - public void setEncoding(String encoding) { + public void setEncoding(@Nullable String encoding)...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-webmvc/src/main/java/org/springframework/web/servlet/view/json/MappingJackson2JsonView.java
@@ -142,7 +142,7 @@ public void setModelKey(String modelKey) { * Set the attributes in the model that should be rendered by this view. * When set, all other model attributes will be ignored. */ - public void setModelKeys(Set<String> modelKeys) { + public void setModelKeys(@Nullable Set<String> modelKeys) { ...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-websocket/src/main/java/org/springframework/web/socket/WebSocketHttpHeaders.java
@@ -87,7 +87,7 @@ public static WebSocketHttpHeaders readOnlyWebSocketHttpHeaders(WebSocketHttpHea * Sets the (new) value of the {@code Sec-WebSocket-Accept} header. * @param secWebSocketAccept the value of the header */ - public void setSecWebSocketAccept(String secWebSocketAccept) { + public void setSecWebSo...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-websocket/src/main/java/org/springframework/web/socket/client/WebSocketConnectionManager.java
@@ -86,7 +86,7 @@ public List<String> getSubProtocols() { /** * Set the origin to use. */ - public void setOrigin(String origin) { + public void setOrigin(@Nullable String origin) { this.headers.setOrigin(origin); }
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-websocket/src/main/java/org/springframework/web/socket/config/annotation/AbstractWebSocketHandlerRegistration.java
@@ -84,7 +84,7 @@ public WebSocketHandlerRegistration addHandler(WebSocketHandler handler, String. } @Override - public WebSocketHandlerRegistration setHandshakeHandler(HandshakeHandler handshakeHandler) { + public WebSocketHandlerRegistration setHandshakeHandler(@Nullable HandshakeHandler handshakeHandler) { ...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-websocket/src/main/java/org/springframework/web/socket/config/annotation/ServletWebSocketHandlerRegistry.java
@@ -92,7 +92,7 @@ public int getOrder() { * Set the UrlPathHelper to configure on the {@code SimpleUrlHandlerMapping} * used to map handshake requests. */ - public void setUrlPathHelper(UrlPathHelper urlPathHelper) { + public void setUrlPathHelper(@Nullable UrlPathHelper urlPathHelper) { this.urlPathHelper ...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-websocket/src/main/java/org/springframework/web/socket/config/annotation/WebMvcStompEndpointRegistry.java
@@ -125,7 +125,7 @@ protected int getOrder() { * used to map handshake requests. */ @Override - public void setUrlPathHelper(UrlPathHelper urlPathHelper) { + public void setUrlPathHelper(@Nullable UrlPathHelper urlPathHelper) { this.urlPathHelper = urlPathHelper; }
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-websocket/src/main/java/org/springframework/web/socket/messaging/StompSubProtocolHandler.java
@@ -176,7 +176,7 @@ public void setDecoder(StompDecoder decoder) { * client inbound channel. * <p>By default this property is not set. */ - public void setHeaderInitializer(MessageHeaderInitializer headerInitializer) { + public void setHeaderInitializer(@Nullable MessageHeaderInitializer headerInitializer) { ...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-websocket/src/main/java/org/springframework/web/socket/messaging/SubProtocolWebSocketHandler.java
@@ -172,7 +172,7 @@ public Map<String, SubProtocolHandler> getProtocolHandlerMap() { * sub-protocol. * @param defaultProtocolHandler the default handler */ - public void setDefaultProtocolHandler(SubProtocolHandler defaultProtocolHandler) { + public void setDefaultProtocolHandler(@Nullable SubProtocolHandler d...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-websocket/src/main/java/org/springframework/web/socket/server/standard/ServerEndpointExporter.java
@@ -76,7 +76,7 @@ public void setAnnotatedEndpointClasses(Class<?>... annotatedEndpointClasses) { * Set the JSR-356 {@link ServerContainer} to use for endpoint registration. * If not set, the container is going to be retrieved via the {@code ServletContext}. */ - public void setServerContainer(ServerContainer ...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-websocket/src/main/java/org/springframework/web/socket/sockjs/client/SockJsClient.java
@@ -134,7 +134,7 @@ private static InfoReceiver initInfoReceiver(List<Transport> transports) { * * @param httpHeaderNames HTTP header names */ - public void setHttpHeaderNames(String... httpHeaderNames) { + public void setHttpHeaderNames(@Nullable String... httpHeaderNames) { this.httpHeaderNames = httpHead...
true
Other
spring-projects
spring-framework
ff85726fa9ca5f8c62c2b2b00da99729390d8360.json
Fix warnings in Kotlin tests
spring-context/src/test/kotlin/org/springframework/context/support/BeanDefinitionDslTests.kt
@@ -24,6 +24,7 @@ import org.springframework.context.support.BeanDefinitionDsl.* import org.springframework.core.env.SimpleCommandLinePropertySource import org.springframework.core.env.get +@Suppress("UNUSED_EXPRESSION") class BeanDefinitionDslTests { @Test
true
Other
spring-projects
spring-framework
ff85726fa9ca5f8c62c2b2b00da99729390d8360.json
Fix warnings in Kotlin tests
spring-test/src/main/kotlin/org/springframework/test/web/reactive/server/WebTestClientExtensions.kt
@@ -34,6 +34,7 @@ inline fun <reified T : Any, S : Publisher<T>> WebTestClient.RequestBodySpec.bod * @author Sebastien Deleuze * @since 5.0 */ +@Suppress("EXTENSION_SHADOWED_BY_MEMBER") inline fun <reified B : Any> WebTestClient.ResponseSpec.expectBody(): WebTestClient.BodySpec<B, *> = expectBody(B::class.jav...
true
Other
spring-projects
spring-framework
f72e0daa543f91c7b37de8d02d72f1f95107b22c.json
Add an env accessor to BeanDefinitionContext Issue: SPR-15755
spring-context/src/main/kotlin/org/springframework/context/support/BeanDefinitionDsl.kt
@@ -17,7 +17,6 @@ package org.springframework.context.support import org.springframework.beans.factory.config.BeanDefinitionCustomizer -import org.springframework.context.ApplicationContext import org.springframework.core.env.ConfigurableEnvironment import java.util.function.Supplier @@ -38,12 +37,20 @@ open cl...
true
Other
spring-projects
spring-framework
f72e0daa543f91c7b37de8d02d72f1f95107b22c.json
Add an env accessor to BeanDefinitionContext Issue: SPR-15755
spring-context/src/test/kotlin/org/springframework/context/support/BeanDefinitionDslTests.kt
@@ -21,6 +21,7 @@ import org.junit.Test import org.springframework.beans.factory.NoSuchBeanDefinitionException import org.springframework.beans.factory.getBean import org.springframework.context.support.BeanDefinitionDsl.* +import org.springframework.core.env.SimpleCommandLinePropertySource class BeanDefinitionDs...
true
Other
spring-projects
spring-framework
70252a7335f3136d661d1d8387e4452621c9ed37.json
Add tests for SPR-15777
spring-webflux/src/test/java/org/springframework/web/reactive/resource/CssLinkResourceTransformerTests.java
@@ -80,12 +80,12 @@ public void transform() throws Exception { Resource css = new ClassPathResource("test/main.css", getClass()); String expected = "\n" + - "@import url(\"/static/bar-11e16cf79faee7ac698c805cf28248d2.css\");\n" + - "@import url('/static/bar-11e16cf79faee7ac698c805cf28248d2.css');\n" + + ...
true
Other
spring-projects
spring-framework
70252a7335f3136d661d1d8387e4452621c9ed37.json
Add tests for SPR-15777
spring-webflux/src/test/resources/org/springframework/web/reactive/resource/test/main.css
@@ -1,9 +1,9 @@ -@import url("bar.css"); -@import url('bar.css'); +@import url("bar.css?#iefix"); +@import url('bar.css#bla-normal'); @import url(bar.css); @import "foo.css"; @import 'foo.css'; -body { background: url("images/image.png") } +body { background: url("images/image.png?#iefix") }
true
Other
spring-projects
spring-framework
70252a7335f3136d661d1d8387e4452621c9ed37.json
Add tests for SPR-15777
spring-webmvc/src/test/java/org/springframework/web/servlet/resource/CssLinkResourceTransformerTests.java
@@ -85,12 +85,12 @@ public void transform() throws Exception { TransformedResource actual = (TransformedResource) this.transformerChain.transform(this.request, css); String expected = "\n" + - "@import url(\"/static/bar-11e16cf79faee7ac698c805cf28248d2.css\");\n" + - "@import url('/static/bar-11e16cf79fae...
true
Other
spring-projects
spring-framework
70252a7335f3136d661d1d8387e4452621c9ed37.json
Add tests for SPR-15777
spring-webmvc/src/test/resources/org/springframework/web/servlet/resource/test/main.css
@@ -1,9 +1,9 @@ -@import url("bar.css"); -@import url('bar.css'); +@import url("bar.css?#iefix"); +@import url('bar.css#bla-normal'); @import url(bar.css); @import "foo.css"; @import 'foo.css'; -body { background: url("images/image.png") } +body { background: url("images/image.png?#iefix") }
true
Other
spring-projects
spring-framework
83051b06b81bbd449ca484c576085e48a783af27.json
Add write methods to DataBufferUtils This commit adds an overloaded write method to `DataBufferUtils`. There are three parameter variants: `OutputStream`, `WritableByteChannel`, and `AsynchronousFileChannel`. Issue: SPR-15726
spring-core/src/main/java/org/springframework/core/io/buffer/DataBufferUtils.java
@@ -18,18 +18,24 @@ import java.io.IOException; import java.io.InputStream; +import java.io.OutputStream; import java.nio.ByteBuffer; import java.nio.channels.AsynchronousFileChannel; import java.nio.channels.Channel; import java.nio.channels.Channels; import java.nio.channels.CompletionHandler; import java.n...
true
Other
spring-projects
spring-framework
83051b06b81bbd449ca484c576085e48a783af27.json
Add write methods to DataBufferUtils This commit adds an overloaded write method to `DataBufferUtils`. There are three parameter variants: `OutputStream`, `WritableByteChannel`, and `AsynchronousFileChannel`. Issue: SPR-15726
spring-core/src/test/java/org/springframework/core/io/buffer/DataBufferUtilsTests.java
@@ -17,17 +17,23 @@ package org.springframework.core.io.buffer; import java.io.InputStream; +import java.io.OutputStream; import java.net.URI; import java.nio.channels.AsynchronousFileChannel; import java.nio.channels.FileChannel; +import java.nio.channels.WritableByteChannel; +import java.nio.file.Files; +impor...
true
Other
spring-projects
spring-framework
e37af83459b79096f614add2df26a14a5e3aa571.json
Improve docs on on use of urlDecode=false Issue: SPR-15643
spring-web/src/main/java/org/springframework/web/cors/UrlBasedCorsConfigurationSource.java
@@ -57,30 +57,23 @@ public void setPathMatcher(PathMatcher pathMatcher) { } /** - * Set if URL lookup should always use the full path within the current servlet - * context. Else, the path within the current servlet mapping is used if applicable - * (that is, in the case of a ".../*" servlet mapping in web.xml...
true
Other
spring-projects
spring-framework
e37af83459b79096f614add2df26a14a5e3aa571.json
Improve docs on on use of urlDecode=false Issue: SPR-15643
spring-web/src/main/java/org/springframework/web/util/UrlPathHelper.java
@@ -22,6 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.Properties; +import javax.servlet.ServletContext; import javax.servlet.http.HttpServletRequest; import org.apache.commons.logging.Log; @@ -70,22 +71,28 @@ public class UrlPathHelper { /** - * Set if URL lookup should alwa...
true
Other
spring-projects
spring-framework
e37af83459b79096f614add2df26a14a5e3aa571.json
Improve docs on on use of urlDecode=false Issue: SPR-15643
spring-webmvc/src/main/java/org/springframework/web/servlet/handler/AbstractHandlerMapping.java
@@ -118,32 +118,25 @@ public Object getDefaultHandler() { } /** - * Set if URL lookup should always use the full path within the current servlet - * context. Else, the path within the current servlet mapping is used if applicable - * (that is, in the case of a ".../*" servlet mapping in web.xml). - * <p>Defau...
true
Other
spring-projects
spring-framework
e37af83459b79096f614add2df26a14a5e3aa571.json
Improve docs on on use of urlDecode=false Issue: SPR-15643
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/WebContentInterceptor.java
@@ -69,10 +69,7 @@ public WebContentInterceptor() { /** - * Set if URL lookup should always use full path within current servlet - * context. Else, the path within the current servlet mapping is used - * if applicable (i.e. in the case of a ".../*" servlet mapping in web.xml). - * Default is "false". + * Sho...
true
Other
spring-projects
spring-framework
e37af83459b79096f614add2df26a14a5e3aa571.json
Improve docs on on use of urlDecode=false Issue: SPR-15643
spring-webmvc/src/main/java/org/springframework/web/servlet/view/DefaultRequestToViewNameTranslator.java
@@ -124,22 +124,15 @@ public void setStripExtension(boolean stripExtension) { } /** - * Set if URL lookup should always use the full path within the current servlet - * context. Else, the path within the current servlet mapping is used - * if applicable (i.e. in the case of a ".../*" servlet mapping in web.xml...
true
Other
spring-projects
spring-framework
e37af83459b79096f614add2df26a14a5e3aa571.json
Improve docs on on use of urlDecode=false Issue: SPR-15643
src/docs/asciidoc/web/web-mvc.adoc
@@ -2690,7 +2690,8 @@ properties that you can use to customize their behavior: * `urlDecode` Defaults to `true`, as of Spring 2.5. If you prefer to compare encoded paths, set this flag to `false`. However, the `HttpServletRequest` always exposes the Servlet path in decoded form. Be aware that the Servlet path wi...
true
Other
spring-projects
spring-framework
290e9bea14ee017519194254f763ea3572310734.json
Change MethodNotAllowedException to use HttpMethod Changed the MethodNotAllowedException to use HttpMethod, instead of Strings.
spring-web/src/main/java/org/springframework/web/server/MethodNotAllowedException.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2016 the original author or authors. + * 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. @@ -21,6 +21,7 @@ import java.util.HashSet; i...
true
Other
spring-projects
spring-framework
290e9bea14ee017519194254f763ea3572310734.json
Change MethodNotAllowedException to use HttpMethod Changed the MethodNotAllowedException to use HttpMethod, instead of Strings.
spring-webflux/src/main/java/org/springframework/web/reactive/resource/ResourceWebHandler.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2016 the original author or authors. + * 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. @@ -21,10 +21,9 @@ import java.net.URLDecoder;...
true
Other
spring-projects
spring-framework
290e9bea14ee017519194254f763ea3572310734.json
Change MethodNotAllowedException to use HttpMethod Changed the MethodNotAllowedException to use HttpMethod, instead of Strings.
spring-webflux/src/main/java/org/springframework/web/reactive/result/method/RequestMappingInfoHandlerMapping.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2016 the original author or authors. + * 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. @@ -20,6 +20,7 @@ import java.util.ArrayList; ...
true
Other
spring-projects
spring-framework
290e9bea14ee017519194254f763ea3572310734.json
Change MethodNotAllowedException to use HttpMethod Changed the MethodNotAllowedException to use HttpMethod, instead of Strings.
spring-webflux/src/main/java/org/springframework/web/reactive/socket/server/support/HandshakeWebSocketService.java
@@ -187,7 +187,7 @@ public Mono<Void> handleRequest(ServerWebExchange exchange, WebSocketHandler han } if (HttpMethod.GET != method) { - return Mono.error(new MethodNotAllowedException(method.name(), Collections.singleton("GET"))); + return Mono.error(new MethodNotAllowedException(method, Collections.single...
true
Other
spring-projects
spring-framework
290e9bea14ee017519194254f763ea3572310734.json
Change MethodNotAllowedException to use HttpMethod Changed the MethodNotAllowedException to use HttpMethod, instead of Strings.
spring-webflux/src/test/java/org/springframework/web/reactive/result/method/RequestMappingInfoHandlerMappingTests.java
@@ -20,6 +20,7 @@ import java.net.URI; import java.util.Arrays; import java.util.Collections; +import java.util.EnumSet; import java.util.HashSet; import java.util.Map; import java.util.Optional; @@ -56,11 +57,7 @@ import org.springframework.web.server.support.HttpRequestPathHelper; import static org.hamcrest...
true
Other
spring-projects
spring-framework
d17b99fe37a945436254e99d90c45b413ba73323.json
Fix ofResponseProcessor signature This commit changes the `HandlerFilterFunction.ofResponseProcessor` method signature to return `Mono<ServerResponse>`, to better cooperate with response builders (which all return a `Mono`).
spring-webflux/src/main/java/org/springframework/web/reactive/function/server/HandlerFilterFunction.java
@@ -92,10 +92,10 @@ default HandlerFunction<R> apply(HandlerFunction<T> handler) { * @return the filter adaptation of the request processor */ static <T extends ServerResponse, R extends ServerResponse> HandlerFilterFunction<T, R> ofResponseProcessor( - Function<T, R> responseProcessor) { + Function<T, Mono...
false
Other
spring-projects
spring-framework
5345bd4a85cc5f9ba723bec7c558f685ccb22bac.json
Fix failing tests
spring-test/src/main/java/org/springframework/test/web/reactive/server/DefaultControllerSpec.java
@@ -25,8 +25,8 @@ import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import org.springframework.format.FormatterRegistry; -import org.springframework.http.codec.HttpMessageReader; -import org.springframework.http.codec.HttpMessageW...
true
Other
spring-projects
spring-framework
5345bd4a85cc5f9ba723bec7c558f685ccb22bac.json
Fix failing tests
spring-test/src/main/java/org/springframework/test/web/reactive/server/WebTestClient.java
@@ -34,8 +34,8 @@ import org.springframework.http.HttpHeaders; import org.springframework.http.MediaType; import org.springframework.http.client.reactive.ClientHttpRequest; -import org.springframework.http.codec.HttpMessageReader; -import org.springframework.http.codec.HttpMessageWriter; +import org.springframework....
true
Other
spring-projects
spring-framework
0aaa6528dcb07ef76049cf74a4d6aecb4ee6c610.json
Remove JAF references This commit updates the main code base to conform to the dropped JAF dependency in MediaTypeFactory. Specifically, it - Removes JAF detection (JAF_PRESENT constants) - Deprecated useJaf properties, with no direct replacement. - Updated docs to remove JAF references, in favor of MediaTypeFacto...
spring-web/src/main/java/org/springframework/http/converter/ResourceHttpMessageConverter.java
@@ -27,16 +27,14 @@ import org.springframework.http.HttpOutputMessage; import org.springframework.http.MediaType; import org.springframework.http.MediaTypeFactory; -import org.springframework.util.ClassUtils; import org.springframework.util.StreamUtils; /** * Implementation of {@link HttpMessageConverter} that...
true
Other
spring-projects
spring-framework
0aaa6528dcb07ef76049cf74a4d6aecb4ee6c610.json
Remove JAF references This commit updates the main code base to conform to the dropped JAF dependency in MediaTypeFactory. Specifically, it - Removes JAF detection (JAF_PRESENT constants) - Deprecated useJaf properties, with no direct replacement. - Updated docs to remove JAF references, in favor of MediaTypeFacto...
spring-web/src/main/java/org/springframework/http/converter/ResourceRegionHttpMessageConverter.java
@@ -24,14 +24,14 @@ import java.nio.charset.StandardCharsets; import java.util.Collection; +import org.springframework.core.io.Resource; import org.springframework.core.io.support.ResourceRegion; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpInputMessage; import org.springfram...
true
Other
spring-projects
spring-framework
0aaa6528dcb07ef76049cf74a4d6aecb4ee6c610.json
Remove JAF references This commit updates the main code base to conform to the dropped JAF dependency in MediaTypeFactory. Specifically, it - Removes JAF detection (JAF_PRESENT constants) - Deprecated useJaf properties, with no direct replacement. - Updated docs to remove JAF references, in favor of MediaTypeFacto...
spring-web/src/main/java/org/springframework/web/accept/ContentNegotiationManager.java
@@ -143,10 +143,9 @@ public List<String> resolveFileExtensions(MediaType mediaType) { * <p>At startup this method returns extensions explicitly registered with * either {@link PathExtensionContentNegotiationStrategy} or * {@link ParameterContentNegotiationStrategy}. At runtime if there is a - * "path extensio...
true
Other
spring-projects
spring-framework
0aaa6528dcb07ef76049cf74a4d6aecb4ee6c610.json
Remove JAF references This commit updates the main code base to conform to the dropped JAF dependency in MediaTypeFactory. Specifically, it - Removes JAF detection (JAF_PRESENT constants) - Deprecated useJaf properties, with no direct replacement. - Updated docs to remove JAF references, in favor of MediaTypeFacto...
spring-web/src/main/java/org/springframework/web/accept/ContentNegotiationManagerFactoryBean.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2016 the original author or authors. + * 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. @@ -28,6 +28,7 @@ import org.springframework.b...
true