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 | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-messaging/src/test/java/org/springframework/messaging/handler/invocation/MethodMessageHandlerTests.java | @@ -190,6 +190,7 @@ public void registerHandler(Object handler) {
super.detectHandlerMethods(handler);
}
+ @Override
public void registerHandlerMethod(Object handler, Method method, String mapping) {
super.registerHandlerMethod(handler, method, mapping);
} | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-orm/src/test/java/org/springframework/orm/jpa/LocalContainerEntityManagerFactoryBeanTests.java | @@ -316,11 +316,13 @@ public ProviderUtil getProviderUtil() {
}
// JPA 2.1 method
+ @Override
public void generateSchema(PersistenceUnitInfo persistenceUnitInfo, Map map) {
throw new UnsupportedOperationException();
}
// JPA 2.1 method
+ @Override
public boolean generateSchema(String persist... | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-orm/src/test/java/org/springframework/orm/jpa/LocalEntityManagerFactoryBeanTests.java | @@ -102,11 +102,13 @@ public ProviderUtil getProviderUtil() {
}
// JPA 2.1 method
+ @Override
public void generateSchema(PersistenceUnitInfo persistenceUnitInfo, Map map) {
throw new UnsupportedOperationException();
}
// JPA 2.1 method
+ @Override
public boolean generateSchema(String persist... | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-orm/src/test/java/org/springframework/orm/jpa/hibernate/HibernateMultiEntityManagerFactoryIntegrationTests.java | @@ -46,6 +46,7 @@ protected String[] getConfigLocations() {
}
+ @Override
@Test
public void testEntityManagerFactoryImplementsEntityManagerFactoryInfo() {
boolean condition = this.entityManagerFactory instanceof EntityManagerFactoryInfo; | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-orm/src/test/java/org/springframework/orm/jpa/hibernate/HibernateNativeEntityManagerFactoryIntegrationTests.java | @@ -53,6 +53,7 @@ protected String[] getConfigLocations() {
}
+ @Override
@Test
public void testEntityManagerFactoryImplementsEntityManagerFactoryInfo() {
boolean condition = entityManagerFactory instanceof EntityManagerFactoryInfo; | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-test/src/main/java/org/springframework/test/context/support/DefaultTestContext.java | @@ -118,6 +118,7 @@ public boolean hasApplicationContext() {
* loader delegate is not <em>active</em> (i.e., has been closed)
* @see CacheAwareContextLoaderDelegate#loadContext
*/
+ @Override
public ApplicationContext getApplicationContext() {
ApplicationContext context = this.cacheAwareContextLoaderDeleg... | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-test/src/main/java/org/springframework/test/web/servlet/htmlunit/HtmlUnitRequestBuilder.java | @@ -106,6 +106,7 @@ public HtmlUnitRequestBuilder(Map<String, MockHttpSession> sessions, WebClient w
}
+ @Override
public MockHttpServletRequest buildRequest(ServletContext servletContext) {
Charset charset = getCharset();
String httpMethod = this.webRequest.getHttpMethod().name(); | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-test/src/main/java/org/springframework/test/web/servlet/htmlunit/MockMvcWebConnection.java | @@ -125,6 +125,7 @@ public void setWebClient(WebClient webClient) {
}
+ @Override
public WebResponse getResponse(WebRequest webRequest) throws IOException {
long startTime = System.currentTimeMillis();
HtmlUnitRequestBuilder requestBuilder = new HtmlUnitRequestBuilder(this.sessions, this.webClient, webReq... | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-test/src/main/java/org/springframework/test/web/servlet/setup/AbstractMockMvcBuilder.java | @@ -67,6 +67,7 @@
private final List<MockMvcConfigurer> configurers = new ArrayList<>(4);
+ @Override
public final <T extends B> T addFilters(Filter... filters) {
Assert.notNull(filters, "filters cannot be null");
for (Filter f : filters) {
@@ -76,6 +77,7 @@ public final <T extends B> T addFilters(Filter.... | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-test/src/test/java/org/springframework/test/context/junit4/RollbackOverrideDefaultRollbackFalseRollbackAnnotationTransactionalTests.java | @@ -46,6 +46,7 @@ public class RollbackOverrideDefaultRollbackFalseRollbackAnnotationTransactional
private static JdbcTemplate jdbcTemplate;
+ @Override
@Autowired
public void setDataSource(DataSource dataSource) {
jdbcTemplate = new JdbcTemplate(dataSource); | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-test/src/test/java/org/springframework/test/context/junit4/RollbackOverrideDefaultRollbackTrueTransactionalTests.java | @@ -44,6 +44,7 @@
private static JdbcTemplate jdbcTemplate;
+ @Override
@Autowired
public void setDataSource(DataSource dataSource) {
jdbcTemplate = new JdbcTemplate(dataSource); | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-test/src/test/java/org/springframework/test/util/subpackage/PersonEntity.java | @@ -38,6 +38,7 @@ public class PersonEntity extends PersistentEntity implements Person {
private Number favoriteNumber;
+ @Override
public String getName() {
return this.name;
}
@@ -47,6 +48,7 @@ private void setName(final String name) {
this.name = name;
}
+ @Override
public int getAge() {
ret... | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-test/src/test/java/org/springframework/test/web/servlet/request/MockHttpServletRequestBuilderTests.java | @@ -538,6 +538,7 @@ public RequestAttributePostProcessor value(String value) {
return this;
}
+ @Override
public MockHttpServletRequest postProcessRequest(MockHttpServletRequest request) {
request.setAttribute(attr, value);
return request; | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-test/src/test/java/org/springframework/test/web/servlet/samples/spr/EncodedUriTests.java | @@ -115,6 +115,7 @@ public String getCircuit(@PathVariable String id, Model model) {
@Component
private static class HandlerMappingConfigurer implements BeanPostProcessor, PriorityOrdered {
+ @Override
public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {
if (... | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-test/src/test/java/org/springframework/test/web/servlet/samples/standalone/AsyncTests.java | @@ -249,6 +249,7 @@ public DeferredResult<Person> getDeferredResultWithImmediateValue() {
public DeferredResult<Person> getDeferredResultWithDelayedError() {
final DeferredResult<Person> deferredResult = new DeferredResult<>();
new Thread() {
+ @Override
public void run() {
try {
Thread.... | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-web/src/main/java/org/springframework/http/converter/AbstractGenericHttpMessageConverter.java | @@ -80,6 +80,7 @@ public boolean canWrite(@Nullable Type type, Class<?> clazz, @Nullable MediaType
* This implementation sets the default headers by calling {@link #addDefaultHeaders},
* and then calls {@link #writeInternal}.
*/
+ @Override
public final void write(final T t, @Nullable final Type type, @Nulla... | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-web/src/main/java/org/springframework/http/server/DefaultPathContainer.java | @@ -295,6 +295,7 @@ public int hashCode() {
return this.value.hashCode();
}
+ @Override
public String toString() {
return "[value='" + this.value + "']";
} | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-web/src/main/java/org/springframework/http/server/reactive/AbstractServerHttpRequest.java | @@ -83,6 +83,7 @@ public AbstractServerHttpRequest(URI uri, @Nullable String contextPath, HttpHead
}
+ @Override
public String getId() {
if (this.id == null) {
this.id = initId(); | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-web/src/main/java/org/springframework/http/server/reactive/ServletServerHttpRequest.java | @@ -177,6 +177,7 @@ public InetSocketAddress getRemoteAddress() {
return new InetSocketAddress(this.request.getRemoteHost(), this.request.getRemotePort());
}
+ @Override
@Nullable
protected SslInfo initSslInfo() {
X509Certificate[] certificates = getX509Certificates(); | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-web/src/main/java/org/springframework/web/bind/support/SpringWebConstraintValidatorFactory.java | @@ -45,6 +45,7 @@ public class SpringWebConstraintValidatorFactory implements ConstraintValidatorF
}
// Bean Validation 1.1 releaseInstance method
+ @Override
public void releaseInstance(ConstraintValidator<?, ?> instance) {
getWebApplicationContext().getAutowireCapableBeanFactory().destroyBean(instance);
... | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-web/src/main/java/org/springframework/web/context/request/async/WebAsyncTask.java | @@ -118,6 +118,7 @@ public Long getTimeout() {
* <p>This factory reference will automatically be set when
* {@code WebAsyncTask} is used within a Spring MVC controller.
*/
+ @Override
public void setBeanFactory(BeanFactory beanFactory) {
this.beanFactory = beanFactory;
} | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-web/src/main/java/org/springframework/web/context/support/AnnotationConfigWebApplicationContext.java | @@ -147,6 +147,7 @@ protected ScopeMetadataResolver getScopeMetadataResolver() {
* @see #setConfigLocation(String)
* @see #refresh()
*/
+ @Override
public void register(Class<?>... annotatedClasses) {
Assert.notEmpty(annotatedClasses, "At least one annotated class must be specified");
Collections.addAl... | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-web/src/main/java/org/springframework/web/context/support/GroovyWebApplicationContext.java | @@ -154,22 +154,27 @@ protected String[] getDefaultConfigLocations() {
// Implementation of the GroovyObject interface
+ @Override
public void setMetaClass(MetaClass metaClass) {
this.metaClass = metaClass;
}
+ @Override
public MetaClass getMetaClass() {
return this.metaClass;
}
+ @Override
pu... | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-web/src/main/java/org/springframework/web/server/session/InMemoryWebSessionStore.java | @@ -140,6 +140,7 @@ public Mono<Void> removeSession(String id) {
return Mono.empty();
}
+ @Override
public Mono<WebSession> updateLastAccessTime(WebSession session) {
return Mono.fromSupplier(() -> {
Assert.isInstanceOf(InMemoryWebSession.class, session); | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-web/src/main/java/org/springframework/web/util/ContentCachingResponseWrapper.java | @@ -127,6 +127,7 @@ public void setContentLength(int len) {
}
// Overrides Servlet 3.1 setContentLengthLong(long) at runtime
+ @Override
public void setContentLengthLong(long len) {
if (len > Integer.MAX_VALUE) {
throw new IllegalArgumentException("Content-Length exceeds ContentCachingResponseWrapper's m... | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-web/src/main/java/org/springframework/web/util/DefaultUriBuilderFactory.java | @@ -195,16 +195,19 @@ public boolean shouldParsePath() {
// UriTemplateHandler
+ @Override
public URI expand(String uriTemplate, Map<String, ?> uriVars) {
return uriString(uriTemplate).build(uriVars);
}
+ @Override
public URI expand(String uriTemplate, Object... uriVars) {
return uriString(uriTempla... | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-web/src/main/java/org/springframework/web/util/pattern/CaptureTheRestPathElement.java | @@ -112,6 +112,7 @@ public int getCaptureCount() {
}
+ @Override
public String toString() {
return "CaptureTheRest(/{*" + this.variableName + "})";
} | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-web/src/main/java/org/springframework/web/util/pattern/CaptureVariablePathElement.java | @@ -150,11 +150,13 @@ public int getScore() {
}
+ @Override
public String toString() {
return "CaptureVariable({" + this.variableName +
(this.constraintPattern != null ? ":" + this.constraintPattern.pattern() : "") + "})";
}
+ @Override
public char[] getChars() {
StringBuilder b = new StringBui... | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-web/src/main/java/org/springframework/web/util/pattern/LiteralPathElement.java | @@ -113,11 +113,13 @@ public int getNormalizedLength() {
return this.len;
}
+ @Override
public char[] getChars() {
return this.text;
}
+ @Override
public String toString() {
return "Literal(" + String.valueOf(this.text) + ")";
} | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-web/src/main/java/org/springframework/web/util/pattern/RegexPathElement.java | @@ -203,6 +203,7 @@ public int getScore() {
}
+ @Override
public String toString() {
return "Regex(" + String.valueOf(this.regex) + ")";
} | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-web/src/main/java/org/springframework/web/util/pattern/SeparatorPathElement.java | @@ -62,10 +62,12 @@ public int getNormalizedLength() {
return 1;
}
+ @Override
public String toString() {
return "Separator(" + this.separator + ")";
}
+ @Override
public char[] getChars() {
return new char[] {this.separator};
} | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-web/src/main/java/org/springframework/web/util/pattern/SingleCharWildcardedPathElement.java | @@ -126,6 +126,7 @@ public int getNormalizedLength() {
}
+ @Override
public String toString() {
return "SingleCharWildcarded(" + String.valueOf(this.text) + ")";
} | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-web/src/main/java/org/springframework/web/util/pattern/WildcardPathElement.java | @@ -97,6 +97,7 @@ public int getScore() {
}
+ @Override
public String toString() {
return "Wildcard(*)";
} | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-web/src/main/java/org/springframework/web/util/pattern/WildcardTheRestPathElement.java | @@ -53,6 +53,7 @@ public int getWildcardCount() {
}
+ @Override
public String toString() {
return "WildcardTheRest(" + this.separator + "**)";
} | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-web/src/test/java/org/springframework/http/converter/json/MappingJackson2HttpMessageConverterTests.java | @@ -455,10 +455,12 @@ public static class MyBase implements MyInterface{
private String string;
+ @Override
public String getString() {
return string;
}
+ @Override
public void setString(String string) {
this.string = string;
} | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-web/src/test/java/org/springframework/http/converter/json/SpringHandlerInstantiatorTests.java | @@ -228,6 +228,7 @@ public JavaType typeFromId(DatabindContext context, String id) {
}
// New in Jackson 2.7
+ @Override
public String getDescForKnownTypeIds() {
return null;
} | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-webflux/src/main/java/org/springframework/web/reactive/result/condition/ConsumesRequestCondition.java | @@ -132,6 +132,7 @@ public Set<MediaType> getConsumableMediaTypes() {
/**
* Whether the condition has any media type expressions.
*/
+ @Override
public boolean isEmpty() {
return this.expressions.isEmpty();
} | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-webmvc/src/main/java/org/springframework/web/servlet/config/ViewResolversBeanDefinitionParser.java | @@ -69,6 +69,7 @@ public class ViewResolversBeanDefinitionParser implements BeanDefinitionParser {
public static final String VIEW_RESOLVER_BEAN_NAME = "mvcViewResolver";
+ @Override
public BeanDefinition parse(Element element, ParserContext context) {
Object source = context.extractSource(element);
conte... | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-webmvc/src/main/java/org/springframework/web/servlet/resource/DefaultResourceTransformerChain.java | @@ -78,6 +78,7 @@ public DefaultResourceTransformerChain(ResourceResolverChain resolverChain,
}
+ @Override
public ResourceResolverChain getResolverChain() {
return this.resolverChain;
} | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-webmvc/src/main/java/org/springframework/web/servlet/view/groovy/GroovyMarkupConfigurer.java | @@ -121,6 +121,7 @@ public void setTemplateEngine(MarkupTemplateEngine templateEngine) {
this.templateEngine = templateEngine;
}
+ @Override
public MarkupTemplateEngine getTemplateEngine() {
Assert.state(this.templateEngine != null, "No MarkupTemplateEngine set");
return this.templateEngine; | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/MvcUriComponentsBuilderTests.java | @@ -578,6 +578,7 @@ public String showCreate(@PathVariable Integer userId) {
static class PersonCrudController extends AbstractCrudController<Person, Long> {
+ @Override
@RequestMapping(path = "/{id}", method = RequestMethod.GET)
public Person get(@PathVariable Long id) {
return new Person(); | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ServletAnnotationControllerHandlerMethodTests.java | @@ -3230,11 +3230,13 @@ public ModelAndView method(MyEntity object) {
@RequestMapping(path = ApiConstants.ARTICLES_PATH)
public static class ArticleController implements ApiConstants, ResourceEndpoint<Article, ArticlePredicate> {
+ @Override
@GetMapping(params = "page")
public Collection<Article> find(Stri... | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-websocket/src/main/java/org/springframework/web/socket/AbstractWebSocketMessage.java | @@ -60,13 +60,15 @@
/**
* Return the message payload (never {@code null}).
*/
+ @Override
public T getPayload() {
return this.payload;
}
/**
* Whether this is the last part of a message sent as a series of partial messages.
*/
+ @Override
public boolean isLast() {
return this.last;
} | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-websocket/src/main/java/org/springframework/web/socket/adapter/standard/StandardWebSocketSession.java | @@ -139,6 +139,7 @@ public List<WebSocketExtension> getExtensions() {
return this.extensions;
}
+ @Override
public Principal getPrincipal() {
return this.user;
} | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-websocket/src/main/java/org/springframework/web/socket/config/WebSocketMessageBrokerStats.java | @@ -209,6 +209,7 @@ private String getExecutorStatsInfo(Executor executor) {
return str.substring(str.indexOf("pool"), str.length() - 1);
}
+ @Override
public String toString() {
return "WebSocketSession[" + getWebSocketSessionStatsInfo() + "]" +
", stompSubProtocol[" + getStompSubProtocolStatsInfo() +... | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-websocket/src/main/java/org/springframework/web/socket/messaging/DefaultSimpUserRegistry.java | @@ -169,6 +169,7 @@ public int getUserCount() {
return this.users.size();
}
+ @Override
public Set<SimpSubscription> findSubscriptions(SimpSubscriptionMatcher matcher) {
Set<SimpSubscription> result = new HashSet<>();
for (LocalSimpSession session : this.sessions.values()) { | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-websocket/src/main/java/org/springframework/web/socket/messaging/StompSubProtocolHandler.java | @@ -221,6 +221,7 @@ public Stats getStats() {
/**
* Handle incoming WebSocket messages from clients.
*/
+ @Override
public void handleMessageFromClient(WebSocketSession session,
WebSocketMessage<?> webSocketMessage, MessageChannel outputChannel) {
@@ -716,6 +717,7 @@ public int getTotalDisconnect() {
... | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-websocket/src/main/java/org/springframework/web/socket/messaging/SubProtocolWebSocketHandler.java | @@ -187,6 +187,7 @@ public SubProtocolHandler getDefaultProtocolHandler() {
/**
* Return all supported protocols.
*/
+ @Override
public List<String> getSubProtocols() {
return new ArrayList<>(this.protocolHandlerLookup.keySet());
}
@@ -676,6 +677,7 @@ else if (session instanceof StreamingSockJsSession) {... | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-websocket/src/main/java/org/springframework/web/socket/sockjs/client/AbstractXhrTransport.java | @@ -82,6 +82,7 @@ public void setXhrStreamingDisabled(boolean disabled) {
/**
* Whether XHR streaming is disabled or not.
*/
+ @Override
public boolean isXhrStreamingDisabled() {
return this.xhrStreamingDisabled;
} | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/TransportHandlingSockJsService.java | @@ -135,6 +135,7 @@ public void setMessageCodec(SockJsMessageCodec messageCodec) {
this.messageCodec = messageCodec;
}
+ @Override
public SockJsMessageCodec getMessageCodec() {
Assert.state(this.messageCodec != null, "A SockJsMessageCodec is required but not available: " +
"Add Jackson to the classpath... | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/session/AbstractHttpSockJsSession.java | @@ -137,6 +137,7 @@ public void setAcceptedProtocol(@Nullable String protocol) {
/**
* Return the selected sub-protocol to use.
*/
+ @Override
@Nullable
public String getAcceptedProtocol() {
return this.acceptedProtocol; | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/session/AbstractSockJsSession.java | @@ -162,6 +162,7 @@ public Map<String, Object> getAttributes() {
// Message sending
+ @Override
public final void sendMessage(WebSocketMessage<?> message) throws IOException {
Assert.state(!isClosed(), "Cannot send a message when session is closed");
Assert.isInstanceOf(TextMessage.class, message, "SockJS... | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-websocket/src/test/java/org/springframework/web/socket/handler/TestWebSocketSession.java | @@ -137,6 +137,7 @@ public void setRemoteAddress(InetSocketAddress remoteAddress) {
this.remoteAddress = remoteAddress;
}
+ @Override
public String getAcceptedProtocol() {
return this.protocol;
} | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-websocket/src/test/java/org/springframework/web/socket/server/support/HandshakeInterceptorChainTests.java | @@ -53,6 +53,7 @@ public class HandshakeInterceptorChainTests extends AbstractHttpRequestTests {
private Map<String, Object> attributes;
+ @Override
@BeforeEach
public void setup() {
super.setup(); | true |
Other | spring-projects | spring-framework | ad6231ad2989ca5428bb51afdf48a9112710ce1d.json | Add missing @Override annotations | spring-websocket/src/test/java/org/springframework/web/socket/sockjs/transport/session/StubSockJsServiceConfig.java | @@ -74,6 +74,7 @@ public void setMessageCodec(SockJsMessageCodec messageCodec) {
this.messageCodec = messageCodec;
}
+ @Override
public int getHttpMessageCacheSize() {
return this.httpMessageCacheSize;
} | true |
Other | spring-projects | spring-framework | e80a23d6ad93eaab11a1869ef1407e729138e672.json | Fix CheckStyle violations | spring-web/src/main/java/org/springframework/web/util/ServletRequestPathUtils.java | @@ -184,7 +184,7 @@ public static boolean hasCachedPath(ServletRequest request) {
* supports a servletPath as an additional prefix to be omitted from
* {@link #pathWithinApplication()}.
*/
- private static class ServletRequestPath implements RequestPath {
+ private static final class ServletRequestPath impleme... | true |
Other | spring-projects | spring-framework | e80a23d6ad93eaab11a1869ef1407e729138e672.json | Fix CheckStyle violations | spring-web/src/testFixtures/java/org/springframework/web/testfixture/servlet/MockHttpServletMapping.java | @@ -77,4 +77,4 @@ public String toString() {
"mappingMatch=" + mappingMatch + "]";
}
-}
\ No newline at end of file
+} | true |
Other | spring-projects | spring-framework | ec5f99f981b33e28cbc96f78b1fb560166fd9c1a.json | Add mutate() to RequestMappingInfo
Closes gh-26428 | spring-webflux/src/main/java/org/springframework/web/reactive/result/method/RequestMappingInfo.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2020 the original author or authors.
+ * Copyright 2002-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -89,29 +89,27 @@ public final class RequestM... | true |
Other | spring-projects | spring-framework | ec5f99f981b33e28cbc96f78b1fb560166fd9c1a.json | Add mutate() to RequestMappingInfo
Closes gh-26428 | spring-webflux/src/test/java/org/springframework/web/reactive/result/condition/RequestMappingInfoTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2020 the original author or authors.
+ * Copyright 2002-2021 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.
@@ -38,6 +38,7 @@
import static java.util.Arra... | true |
Other | spring-projects | spring-framework | ec5f99f981b33e28cbc96f78b1fb560166fd9c1a.json | Add mutate() to RequestMappingInfo
Closes gh-26428 | spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/RequestMappingInfo.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2020 the original author or authors.
+ * Copyright 2002-2021 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.
@@ -105,6 +105,8 @@ public final class RequestM... | true |
Other | spring-projects | spring-framework | ec5f99f981b33e28cbc96f78b1fb560166fd9c1a.json | Add mutate() to RequestMappingInfo
Closes gh-26428 | spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/RequestMappingInfoTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2020 the original author or authors.
+ * Copyright 2002-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -26,11 +26,11 @@
import org.junit.jupiter.a... | true |
Other | spring-projects | spring-framework | 080ba5d4484eaa7b430a0352b355feef0f7eade5.json | Upgrade JDK versions in CI pipeline | ci/images/get-jdk-url.sh | @@ -3,13 +3,13 @@ set -e
case "$1" in
java8)
- echo "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u275-b01/OpenJDK8U-jdk_x64_linux_hotspot_8u275b01.tar.gz"
+ echo "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u282-b08/OpenJDK8U-jdk_x64_linux_hotspot_8u282b0... | false |
Other | spring-projects | spring-framework | d96448fde94a98a1e59f24e7afa86a6a737292a6.json | Fix typo in URI Encoding section of reference docs
Closes gh-26436 | src/docs/asciidoc/web/web-uris.adoc | @@ -318,7 +318,7 @@ the approach to encoding, based on one of the below encoding modes:
the first option in the earlier list, to pre-encode the URI template and strictly encode URI variables when
expanded.
* `VALUES_ONLY`: Does not encode the URI template and, instead, applies strict encoding
-to URI variables throu... | false |
Other | spring-projects | spring-framework | bad8954e65b5c27d40d19fe98a0e12f8986114d6.json | Append unique number to log prefix for Undertow
Closes gh-26430 | spring-web/src/main/java/org/springframework/http/server/reactive/UndertowServerHttpRequest.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2020 the original author or authors.
+ * Copyright 2002-2021 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.net.URI;
import... | false |
Other | spring-projects | spring-framework | 5a4a677fbd05373d4a63c9b161128cb61cbc9feb.json | Fix contextPath request matching with PathPatterns
Prior to this commit, `SimpleUrlHandlerMapping` and other
implementations of `AbstractUrlHandlerMapping` would not strip the
Servlet context path from the request path before performing path
matching with PathPattern instances.
This resulted in requests not matching ... | spring-webmvc/src/main/java/org/springframework/web/servlet/handler/AbstractUrlHandlerMapping.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2020 the original author or authors.
+ * Copyright 2002-2021 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.
@@ -186,7 +186,7 @@ protected Object lookupHand... | true |
Other | spring-projects | spring-framework | 5a4a677fbd05373d4a63c9b161128cb61cbc9feb.json | Fix contextPath request matching with PathPatterns
Prior to this commit, `SimpleUrlHandlerMapping` and other
implementations of `AbstractUrlHandlerMapping` would not strip the
Servlet context path from the request path before performing path
matching with PathPattern instances.
This resulted in requests not matching ... | spring-webmvc/src/test/java/org/springframework/web/servlet/handler/SimpleUrlHandlerMappingTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2020 the original author or authors.
+ * Copyright 2002-2021 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.
@@ -108,6 +108,12 @@ void checkMappings(String ... | true |
Other | spring-projects | spring-framework | 584dabbb3980dbed5272f79a61aa996d390e528c.json | Add all non-file parts as request parameters
Closes gh-26400 | spring-test/src/main/java/org/springframework/test/web/servlet/request/MockMultipartHttpServletRequestBuilder.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2020 the original author or authors.
+ * Copyright 2002-2021 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.
@@ -17,6 +17,7 @@
package org.springframework.... | true |
Other | spring-projects | spring-framework | 584dabbb3980dbed5272f79a61aa996d390e528c.json | Add all non-file parts as request parameters
Closes gh-26400 | spring-test/src/test/java/org/springframework/test/web/servlet/request/MockMultipartHttpServletRequestBuilderTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2020 the original author or authors.
+ * Copyright 2002-2021 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.
@@ -50,7 +50,7 @@ void addFileAndParts() throws... | true |
Other | spring-projects | spring-framework | 469eb8146e3ac278b396a43c1b7cd8432e6f64e4.json | Add a missing space in exception message
Closes gh-26385 | spring-web/src/main/java/org/springframework/web/cors/CorsConfiguration.java | @@ -451,7 +451,7 @@ public void validateAllowCredentials() {
this.allowedOrigins != null && this.allowedOrigins.contains(ALL)) {
throw new IllegalArgumentException(
- "When allowCredentials is true, allowedOrigins cannot contain the special value \"*\"" +
+ "When allowCredentials is true, allowedOrig... | false |
Other | spring-projects | spring-framework | 35225e5794d9a144eae544b64ebad58120766815.json | Add verify(Duration) to MockRestServiceServer
Closes gh-22618 | spring-test/src/main/java/org/springframework/test/web/client/AbstractRequestExpectationManager.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2020 the original author or authors.
+ * Copyright 2002-2021 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.
@@ -18,6 +18,8 @@
import java.io.IOException... | true |
Other | spring-projects | spring-framework | 35225e5794d9a144eae544b64ebad58120766815.json | Add verify(Duration) to MockRestServiceServer
Closes gh-22618 | spring-test/src/main/java/org/springframework/test/web/client/MockRestServiceServer.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2019 the original author or authors.
+ * Copyright 2002-2021 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.
@@ -18,6 +18,7 @@
import java.io.IOException... | true |
Other | spring-projects | spring-framework | 35225e5794d9a144eae544b64ebad58120766815.json | Add verify(Duration) to MockRestServiceServer
Closes gh-22618 | spring-test/src/main/java/org/springframework/test/web/client/RequestExpectationManager.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2018 the original author or authors.
+ * Copyright 2002-2021 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.
@@ -17,6 +17,7 @@
package org.springframework.... | true |
Other | spring-projects | spring-framework | 35225e5794d9a144eae544b64ebad58120766815.json | Add verify(Duration) to MockRestServiceServer
Closes gh-22618 | spring-test/src/test/java/org/springframework/test/web/client/MockRestServiceServerTests.java | @@ -17,13 +17,15 @@
package org.springframework.test.web.client;
import java.net.SocketException;
+import java.time.Duration;
import org.junit.jupiter.api.Test;
import org.springframework.test.web.client.MockRestServiceServer.MockRestServiceServerBuilder;
import org.springframework.web.client.RestTemplate;
... | true |
Other | spring-projects | spring-framework | a7413ea76bf41319d5a9eb24650addb78950900d.json | Add recommendation for original multipart filename
See gh-26299 | spring-web/src/main/java/org/springframework/http/codec/multipart/FilePart.java | @@ -36,7 +36,9 @@ public interface FilePart extends Part {
* <p><strong>Note:</strong> Please keep in mind this filename is supplied
* by the client and should not be used blindly. In addition to not using
* the directory portion, the file name could also contain characters such
- * as ".." and others that ca... | true |
Other | spring-projects | spring-framework | a7413ea76bf41319d5a9eb24650addb78950900d.json | Add recommendation for original multipart filename
See gh-26299 | spring-web/src/main/java/org/springframework/web/multipart/MultipartFile.java | @@ -56,7 +56,9 @@ public interface MultipartFile extends InputStreamSource {
* <p><strong>Note:</strong> Please keep in mind this filename is supplied
* by the client and should not be used blindly. In addition to not using
* the directory portion, the file name could also contain characters such
- * as ".." ... | true |
Other | spring-projects | spring-framework | a7413ea76bf41319d5a9eb24650addb78950900d.json | Add recommendation for original multipart filename
See gh-26299 | src/docs/asciidoc/web/webflux.adoc | @@ -3002,8 +3002,8 @@ for the body. This allows a variety of async responses with `ResponseEntity` as
asynchronously at a later point. This allows the response status and headers to vary
depending on the outcome of asynchronous request handling.
* `Mono<ResponseEntity<Mono<T>>>` or `Mono<ResponseEntity<Flux<T>>>... | true |
Other | spring-projects | spring-framework | b07a6b32830b33763299a17a9e8f0f74e2e34ab3.json | Upgrade Shadow plugin to version 6.1.0 | build.gradle | @@ -8,6 +8,7 @@ plugins {
id 'de.undercouch.download' version '4.1.1'
id "io.freefair.aspectj" version '5.1.1' apply false
id "com.github.ben-manes.versions" version '0.28.0'
+ id "com.github.johnrengelman.shadow" version "6.1.0" apply false
id "me.champeau.gradle.jmh" version "0.5.2" apply false
id "org.jetb... | true |
Other | spring-projects | spring-framework | b07a6b32830b33763299a17a9e8f0f74e2e34ab3.json | Upgrade Shadow plugin to version 6.1.0 | spring-core/spring-core.gradle | @@ -1,15 +1,11 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
-plugins {
- id "com.github.johnrengelman.shadow" version "5.2.0"
-}
-
description = "Spring Core"
apply plugin: "kotlin"
// spring-core includes asm and repackages cglib, inlining both into the spring-core jar.
-// cglib itse... | true |
Other | spring-projects | spring-framework | 72a9d0ff4bc68f91495a6524fa7ec15cab8e9e48.json | Upgrade JMH plugin to 0.5.2 | build.gradle | @@ -8,7 +8,7 @@ plugins {
id 'de.undercouch.download' version '4.1.1'
id "io.freefair.aspectj" version '5.1.1' apply false
id "com.github.ben-manes.versions" version '0.28.0'
- id "me.champeau.gradle.jmh" version "0.5.0" apply false
+ id "me.champeau.gradle.jmh" version "0.5.2" apply false
id "org.jetbrains.kot... | false |
Other | spring-projects | spring-framework | 2d53570f4cc148250378b852e671fcb0369f754b.json | Prevent kotlinx.serialization usage on interfaces
Remove support for open polymorphic serialization in
kotlinx.serialization web converters and codecs in order
to prevent serialization handling suitable for Jackson
or other general purpose Java JSON libraries.
This will probably need further refinements for collectio... | spring-web/src/main/java/org/springframework/http/codec/json/KotlinSerializationJsonDecoder.java | @@ -21,6 +21,7 @@
import kotlinx.serialization.KSerializer;
import kotlinx.serialization.SerializersKt;
+import kotlinx.serialization.descriptors.PolymorphicKind;
import kotlinx.serialization.json.Json;
import org.reactivestreams.Publisher;
import reactor.core.publisher.Flux;
@@ -39,7 +40,9 @@
* Decode a byte ... | true |
Other | spring-projects | spring-framework | 2d53570f4cc148250378b852e671fcb0369f754b.json | Prevent kotlinx.serialization usage on interfaces
Remove support for open polymorphic serialization in
kotlinx.serialization web converters and codecs in order
to prevent serialization handling suitable for Jackson
or other general purpose Java JSON libraries.
This will probably need further refinements for collectio... | spring-web/src/main/java/org/springframework/http/codec/json/KotlinSerializationJsonEncoder.java | @@ -22,6 +22,7 @@
import kotlinx.serialization.KSerializer;
import kotlinx.serialization.SerializersKt;
+import kotlinx.serialization.descriptors.PolymorphicKind;
import kotlinx.serialization.json.Json;
import org.reactivestreams.Publisher;
import reactor.core.publisher.Flux;
@@ -42,7 +43,9 @@
* Encode from an... | true |
Other | spring-projects | spring-framework | 2d53570f4cc148250378b852e671fcb0369f754b.json | Prevent kotlinx.serialization usage on interfaces
Remove support for open polymorphic serialization in
kotlinx.serialization web converters and codecs in order
to prevent serialization handling suitable for Jackson
or other general purpose Java JSON libraries.
This will probably need further refinements for collectio... | spring-web/src/main/java/org/springframework/http/converter/json/KotlinSerializationJsonHttpMessageConverter.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2020 the original author or authors.
+ * Copyright 2002-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -25,6 +25,7 @@
import kotlinx.serialization... | true |
Other | spring-projects | spring-framework | 2d53570f4cc148250378b852e671fcb0369f754b.json | Prevent kotlinx.serialization usage on interfaces
Remove support for open polymorphic serialization in
kotlinx.serialization web converters and codecs in order
to prevent serialization handling suitable for Jackson
or other general purpose Java JSON libraries.
This will probably need further refinements for collectio... | spring-web/src/test/kotlin/org/springframework/http/codec/json/KotlinSerializationJsonDecoderTests.kt | @@ -19,6 +19,7 @@ package org.springframework.http.codec.json
import kotlinx.serialization.Serializable
import org.assertj.core.api.Assertions
import org.junit.jupiter.api.Test
+import org.springframework.core.Ordered
import org.springframework.core.ResolvableType
import org.springframework.core.io.buffer.DataBuff... | true |
Other | spring-projects | spring-framework | 2d53570f4cc148250378b852e671fcb0369f754b.json | Prevent kotlinx.serialization usage on interfaces
Remove support for open polymorphic serialization in
kotlinx.serialization web converters and codecs in order
to prevent serialization handling suitable for Jackson
or other general purpose Java JSON libraries.
This will probably need further refinements for collectio... | spring-web/src/test/kotlin/org/springframework/http/codec/json/KotlinSerializationJsonEncoderTests.kt | @@ -19,6 +19,7 @@ package org.springframework.http.codec.json
import kotlinx.serialization.Serializable
import org.assertj.core.api.Assertions
import org.junit.jupiter.api.Test
+import org.springframework.core.Ordered
import org.springframework.core.ResolvableType
import org.springframework.core.io.buffer.DataBuff... | true |
Other | spring-projects | spring-framework | 2d53570f4cc148250378b852e671fcb0369f754b.json | Prevent kotlinx.serialization usage on interfaces
Remove support for open polymorphic serialization in
kotlinx.serialization web converters and codecs in order
to prevent serialization handling suitable for Jackson
or other general purpose Java JSON libraries.
This will probably need further refinements for collectio... | spring-web/src/test/kotlin/org/springframework/http/converter/json/KotlinSerializationJsonHttpMessageConverterTests.kt | @@ -20,6 +20,7 @@ import kotlinx.serialization.Serializable
import org.assertj.core.api.Assertions.assertThat
import org.assertj.core.api.Assertions.assertThatExceptionOfType
import org.junit.jupiter.api.Test
+import org.springframework.core.Ordered
import org.springframework.http.MediaType
import org.springframew... | true |
Other | spring-projects | spring-framework | 234b4719c6551a0761eb3fae6d1a6e4806d7638b.json | Use default bounded elastic scheduler
Instead of using a new bounded elastic scheduler per
DefaultPartHttpMessageReader instance, which creates daemon threads that
are not shut down, we now use the shared bounded elastic scheduler.
Closes gh-26347 | spring-web/src/main/java/org/springframework/http/codec/multipart/DefaultPartHttpMessageReader.java | @@ -74,8 +74,7 @@ public class DefaultPartHttpMessageReader extends LoggingCodecSupport implements
private boolean streaming;
- private Scheduler blockingOperationScheduler = Schedulers.newBoundedElastic(Schedulers.DEFAULT_BOUNDED_ELASTIC_SIZE,
- Schedulers.DEFAULT_BOUNDED_ELASTIC_QUEUESIZE, IDENTIFIER, 60, tru... | false |
Other | spring-projects | spring-framework | d387d9ae1e8c7569c92f8e5d8571ebb901a6cfb9.json | Allow quartz expression in cron expression lists
This commit introduces support for lists of quartz cron fields, such
as "1L, LW" or "TUE#1, TUE#3, TUE#5".
Closes gh-26289 | spring-context/src/main/java/org/springframework/scheduling/support/BitsCronField.java | @@ -19,14 +19,13 @@
import java.time.DateTimeException;
import java.time.temporal.Temporal;
import java.time.temporal.ValueRange;
-import java.util.BitSet;
import org.springframework.lang.Nullable;
import org.springframework.util.Assert;
import org.springframework.util.StringUtils;
/**
- * Efficient {@link B... | true |
Other | spring-projects | spring-framework | d387d9ae1e8c7569c92f8e5d8571ebb901a6cfb9.json | Allow quartz expression in cron expression lists
This commit introduces support for lists of quartz cron fields, such
as "1L, LW" or "TUE#1, TUE#3, TUE#5".
Closes gh-26289 | spring-context/src/main/java/org/springframework/scheduling/support/CompositeCronField.java | @@ -0,0 +1,97 @@
+/*
+ * Copyright 2002-2021 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
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Other | spring-projects | spring-framework | d387d9ae1e8c7569c92f8e5d8571ebb901a6cfb9.json | Allow quartz expression in cron expression lists
This commit introduces support for lists of quartz cron fields, such
as "1L, LW" or "TUE#1, TUE#3, TUE#5".
Closes gh-26289 | spring-context/src/main/java/org/springframework/scheduling/support/CronField.java | @@ -20,8 +20,10 @@
import java.time.temporal.ChronoField;
import java.time.temporal.Temporal;
import java.time.temporal.ValueRange;
+import java.util.function.BiFunction;
import org.springframework.lang.Nullable;
+import org.springframework.util.Assert;
import org.springframework.util.StringUtils;
/**
@@ -77,... | true |
Other | spring-projects | spring-framework | d387d9ae1e8c7569c92f8e5d8571ebb901a6cfb9.json | Allow quartz expression in cron expression lists
This commit introduces support for lists of quartz cron fields, such
as "1L, LW" or "TUE#1, TUE#3, TUE#5".
Closes gh-26289 | spring-context/src/main/java/org/springframework/scheduling/support/QuartzCronField.java | @@ -78,6 +78,12 @@ private QuartzCronField(Type type, Type rollForwardType, TemporalAdjuster adjust
this.rollForwardType = rollForwardType;
}
+ /**
+ * Returns whether the given value is a Quartz day-of-month field.
+ */
+ public static boolean isQuartzDaysOfMonthField(String value) {
+ return value.contains(... | true |
Other | spring-projects | spring-framework | d387d9ae1e8c7569c92f8e5d8571ebb901a6cfb9.json | Allow quartz expression in cron expression lists
This commit introduces support for lists of quartz cron fields, such
as "1L, LW" or "TUE#1, TUE#3, TUE#5".
Closes gh-26289 | spring-context/src/test/java/org/springframework/scheduling/support/CronExpressionTests.java | @@ -31,6 +31,7 @@
import static java.time.DayOfWeek.FRIDAY;
import static java.time.DayOfWeek.MONDAY;
import static java.time.DayOfWeek.SUNDAY;
+import static java.time.DayOfWeek.THURSDAY;
import static java.time.DayOfWeek.TUESDAY;
import static java.time.DayOfWeek.WEDNESDAY;
import static java.time.temporal.Temp... | true |
Other | spring-projects | spring-framework | 138f6bfd84d0a1d8aa13e8d1ea6832c5be1c8055.json | Update Javadoc of FilePart#filename
See gh-26299 | spring-web/src/main/java/org/springframework/http/codec/multipart/FilePart.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2018 the original author or authors.
+ * Copyright 2002-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -33,6 +33,14 @@ public interface FilePart ex... | true |
Other | spring-projects | spring-framework | 138f6bfd84d0a1d8aa13e8d1ea6832c5be1c8055.json | Update Javadoc of FilePart#filename
See gh-26299 | spring-web/src/main/java/org/springframework/web/multipart/MultipartFile.java | @@ -55,13 +55,13 @@ public interface MultipartFile extends InputStreamSource {
* but it typically will not with any other than Opera.
* <p><strong>Note:</strong> Please keep in mind this filename is supplied
* by the client and should not be used blindly. In addition to not using
- * the directory portion, th... | true |
Other | spring-projects | spring-framework | d50375da8e399d5d84e0270e9a7692724d37794b.json | Add more static imports to MockMvc snippets
Closes gh-26311 | src/docs/asciidoc/testing.adoc | @@ -7045,6 +7045,8 @@ To perform requests that use any HTTP method, as the following example shows:
[source,java,indent=0,subs="verbatim,quotes",role="primary"]
.Java
----
+ // static import of MockMvcRequestBuilders.*
+
mockMvc.perform(post("/hotels/{id}", 42).accept(MediaType.APPLICATION_JSON));
----
@@ -7176... | false |
Other | spring-projects | spring-framework | a2b8ea5173a13269340f7585fb9a2b73160fa794.json | Remove the black border from code samples
See gh-21778 | src/docs/asciidoc/css/stylesheet.css | @@ -25,3 +25,7 @@
background-color: #282c34;
color: #e6e1dc;
}
+
+.listingblock pre.highlightjs {
+ padding: 0;
+} | false |
Other | spring-projects | spring-framework | 4e5c780b9917efcff63d8c7dff482700c18dd3db.json | Move TestSourcesPlugin to a Java Gradle plugin
This commit moves the existing "test sources" Gradle plugin from Groovy
to Java and updates the "buildSrc" build file to prepare for additional
plugins in the Spring Framework build.
The plugin itself looks, for a given Spring Framework module, at all the
project depende... | build.gradle | @@ -12,6 +12,7 @@ buildscript {
// 3rd party plugin repositories can be configured in settings.gradle
plugins {
+ id 'org.springframework.build.test-sources' apply false
id "io.spring.dependency-management" version "1.0.7.RELEASE" apply false
id "org.jetbrains.kotlin.jvm" version "1.3.41" apply false
id "org.... | true |
Other | spring-projects | spring-framework | 4e5c780b9917efcff63d8c7dff482700c18dd3db.json | Move TestSourcesPlugin to a Java Gradle plugin
This commit moves the existing "test sources" Gradle plugin from Groovy
to Java and updates the "buildSrc" build file to prepare for additional
plugins in the Spring Framework build.
The plugin itself looks, for a given Spring Framework module, at all the
project depende... | buildSrc/build.gradle | @@ -0,0 +1,21 @@
+plugins {
+ id 'java-gradle-plugin'
+}
+
+repositories {
+ mavenCentral()
+}
+
+dependencies {
+ testImplementation 'junit:junit:4.12'
+ testImplementation 'org.assertj:assertj-core:3.11.1'
+}
+
+gradlePlugin {
+ plugins {
+ testSourcesPlugin {
+ id = "org.springframework.build.test-sources"
+ im... | true |
Other | spring-projects | spring-framework | 4e5c780b9917efcff63d8c7dff482700c18dd3db.json | Move TestSourcesPlugin to a Java Gradle plugin
This commit moves the existing "test sources" Gradle plugin from Groovy
to Java and updates the "buildSrc" build file to prepare for additional
plugins in the Spring Framework build.
The plugin itself looks, for a given Spring Framework module, at all the
project depende... | buildSrc/spring-build-src.gradle | @@ -1,10 +0,0 @@
-description = "Exposes gradle buildSrc for IDE support"
-
-apply plugin: "groovy"
-
-dependencies {
- compile gradleApi()
- compile localGroovy()
-}
-
-configurations.archives.artifacts.clear() | true |
Other | spring-projects | spring-framework | 4e5c780b9917efcff63d8c7dff482700c18dd3db.json | Move TestSourcesPlugin to a Java Gradle plugin
This commit moves the existing "test sources" Gradle plugin from Groovy
to Java and updates the "buildSrc" build file to prepare for additional
plugins in the Spring Framework build.
The plugin itself looks, for a given Spring Framework module, at all the
project depende... | buildSrc/src/main/groovy/org/springframework/build/gradle/TestSourceSetDependenciesPlugin.groovy | @@ -1,55 +0,0 @@
-/*
- * Copyright 2002-2014 the original author or authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
-... | true |
Other | spring-projects | spring-framework | 4e5c780b9917efcff63d8c7dff482700c18dd3db.json | Move TestSourcesPlugin to a Java Gradle plugin
This commit moves the existing "test sources" Gradle plugin from Groovy
to Java and updates the "buildSrc" build file to prepare for additional
plugins in the Spring Framework build.
The plugin itself looks, for a given Spring Framework module, at all the
project depende... | buildSrc/src/main/java/org/springframework/build/testsources/TestSourcesPlugin.java | @@ -0,0 +1,92 @@
+/*
+ * Copyright 2002-2019 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
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.