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 | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-beans/src/main/java/org/springframework/beans/TypeConverterDelegate.java | @@ -247,14 +247,14 @@ else if (conversionService != null && typeDescriptor != null) {
// Definitely doesn't match: throw IllegalArgumentException/IllegalStateException
StringBuilder msg = new StringBuilder();
msg.append("Cannot convert value of type '").append(ClassUtils.getDescriptiveType(newValue));
- ... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-beans/src/main/java/org/springframework/beans/factory/annotation/RequiredAnnotationBeanPostProcessor.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.
@@ -217,13 +217,13 @@ private String buildExcep... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanDefinition.java | @@ -1241,7 +1241,7 @@ public int hashCode() {
@Override
public String toString() {
StringBuilder sb = new StringBuilder("class [");
- sb.append(getBeanClassName()).append("]");
+ sb.append(getBeanClassName()).append(']');
sb.append("; scope=").append(this.scope);
sb.append("; abstract=").append(this.abst... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-context-support/src/main/java/org/springframework/cache/jcache/interceptor/AbstractJCacheOperation.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.
@@ -138,7 +138,7 @@ protected ExceptionTypeFilt... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-context/src/main/java/org/springframework/cache/interceptor/CacheEvictOperation.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.
@@ -71,9 +71,9 @@ public void setBeforeInvocati... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-context/src/main/java/org/springframework/cache/interceptor/CacheOperation.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.
@@ -216,13 +216,13 @@ public void setCondition(... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-context/src/main/java/org/springframework/cache/interceptor/CachePutOperation.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.
@@ -66,7 +66,7 @@ protected StringBuilder getOp... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-context/src/main/java/org/springframework/cache/interceptor/CacheableOperation.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.
@@ -79,10 +79,10 @@ protected StringBuilder get... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-context/src/main/java/org/springframework/context/event/ApplicationListenerMethodAdapter.java | @@ -396,7 +396,7 @@ protected String getCondition() {
* @param message error message to append the HandlerMethod details to
*/
protected String getDetailedErrorMessage(Object bean, String message) {
- StringBuilder sb = new StringBuilder(message).append("\n");
+ StringBuilder sb = new StringBuilder(message).a... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-context/src/main/java/org/springframework/context/support/LiveBeansView.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.
@@ -205,12 +205,12 @@ protected String generate... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-core/src/main/java/org/springframework/core/Constants.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.
@@ -324,7 +324,7 @@ public String propertyToCon... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-core/src/main/java/org/springframework/core/annotation/AnnotationAttributes.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.
@@ -394,9 +394,11 @@ public String toString() {... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-core/src/main/java/org/springframework/core/annotation/SynthesizedMergedAnnotationInvocationHandler.java | @@ -177,17 +177,17 @@ private int getValueHashCode(Object value) {
private String annotationToString() {
String string = this.string;
if (string == null) {
- StringBuilder builder = new StringBuilder("@").append(this.type.getName()).append("(");
+ StringBuilder builder = new StringBuilder("@").append(this.t... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-core/src/main/java/org/springframework/core/convert/TypeDescriptor.java | @@ -513,7 +513,7 @@ public int hashCode() {
public String toString() {
StringBuilder builder = new StringBuilder();
for (Annotation ann : getAnnotations()) {
- builder.append("@").append(ann.annotationType().getName()).append(' ');
+ builder.append('@').append(ann.annotationType().getName()).append(' ');
... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-core/src/main/java/org/springframework/util/StopWatch.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.
@@ -302,7 +302,7 @@ public String prettyPrint()... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-core/src/test/java/org/springframework/util/FastByteArrayOutputStreamTests.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.
@@ -194,7 +194,7 @@ void updateMessageDigest() ... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-core/src/test/java/org/springframework/util/StringUtilsTests.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.
@@ -612,7 +612,7 @@ private void doTestCommaDel... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-expression/src/main/java/org/springframework/expression/ExpressionException.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.
@@ -137,7 +137,7 @@ public String toDetailedStr... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-expression/src/main/java/org/springframework/expression/spel/CodeFlow.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.
@@ -432,11 +432,11 @@ else if (targetDescriptor... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-expression/src/main/java/org/springframework/expression/spel/SpelMessage.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.
@@ -284,7 +284,7 @@ public String formatMessage... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-expression/src/main/java/org/springframework/expression/spel/ast/BeanReference.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.
@@ -64,13 +64,13 @@ public TypedValue getValueI... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-expression/src/main/java/org/springframework/expression/spel/ast/ConstructorReference.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.
@@ -208,14 +208,14 @@ public String toStringAST... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-expression/src/main/java/org/springframework/expression/spel/ast/InlineMap.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.
@@ -140,13 +140,13 @@ public String toStringAST... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-expression/src/main/java/org/springframework/expression/spel/ast/Operator.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.
@@ -81,10 +81,10 @@ public String toStringAST()... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-expression/src/main/java/org/springframework/expression/spel/ast/QualifiedIdentifier.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.
@@ -49,7 +49,7 @@ public TypedValue getValueInt... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-expression/src/main/java/org/springframework/expression/spel/ast/TypeReference.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.
@@ -90,7 +90,7 @@ public String toStringAST() {... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-expression/src/main/java/org/springframework/expression/spel/standard/Token.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2017 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.
@@ -88,12 +88,12 @@ public Token asBetweenToken... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-expression/src/test/java/org/springframework/expression/spel/AbstractExpressionTests.java | @@ -245,22 +245,22 @@ protected static String stringValueOf(Object value, boolean isNested) {
sb.append("int[").append(l.length).append("]{");
for (int j = 0; j < l.length; j++) {
if (j > 0) {
- sb.append(",");
+ sb.append(',');
}
sb.append(stringValueOf(l[j]));
}
- ... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-expression/src/test/java/org/springframework/expression/spel/SpelCompilationCoverageTests.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.
@@ -5111,21 +5111,21 @@ private String stringif... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-jdbc/src/main/java/org/springframework/jdbc/core/metadata/CallMetaDataContext.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.
@@ -646,13 +646,13 @@ public String createCallS... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-jdbc/src/main/java/org/springframework/jdbc/core/metadata/TableMetaDataContext.java | @@ -280,7 +280,7 @@ public String createInsertString(String... generatedKeyNames) {
insertStatement.append("INSERT INTO ");
if (getSchemaName() != null) {
insertStatement.append(getSchemaName());
- insertStatement.append(".");
+ insertStatement.append('.');
}
insertStatement.append(getTableName());
... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-jdbc/src/main/java/org/springframework/jdbc/datasource/TransactionAwareDataSourceProxy.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,10 +186,10 @@ public Object invoke(Obje... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-jdbc/src/main/java/org/springframework/jdbc/support/incrementer/AbstractIdentityColumnMaxValueIncrementer.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.
@@ -152,7 +152,7 @@ protected String getDeleteS... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-jms/src/main/java/org/springframework/jms/config/AbstractJmsListenerEndpoint.java | @@ -177,9 +177,9 @@ private void setupMessageListener(MessageListenerContainer container) {
*/
protected StringBuilder getEndpointDescription() {
StringBuilder result = new StringBuilder();
- return result.append(getClass().getSimpleName()).append("[").append(this.id).append("] destination=").
+ return result... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-jms/src/main/java/org/springframework/jms/config/MethodJmsListenerEndpoint.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.
@@ -224,8 +224,8 @@ private String resolve(Stri... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-jms/src/main/java/org/springframework/jms/config/SimpleJmsListenerEndpoint.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2017 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.
@@ -63,7 +63,7 @@ protected MessageListener cre... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-jms/src/main/java/org/springframework/jms/listener/adapter/MessagingMessageListenerAdapter.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2017 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.
@@ -125,7 +125,7 @@ private Object invokeHandle... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/support/MethodArgumentNotValidException.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.
@@ -70,7 +70,7 @@ private static String getVali... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-messaging/src/main/java/org/springframework/messaging/simp/SimpMessageHeaderAccessor.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.
@@ -208,7 +208,7 @@ public String getShortLogMe... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompHeaderAccessor.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.
@@ -452,7 +452,7 @@ public String getDetailedLo... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-messaging/src/main/java/org/springframework/messaging/support/GenericMessage.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.
@@ -112,12 +112,12 @@ public String toString() ... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/StompHeaderAccessorTests.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.
@@ -241,7 +241,7 @@ public void getShortLogMess... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-messaging/src/test/java/org/springframework/messaging/support/MessageHeaderAccessorTests.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.
@@ -320,7 +320,7 @@ public String toString() {
... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-test/src/main/java/org/springframework/mock/http/client/MockClientHttpRequest.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2017 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.
@@ -126,7 +126,7 @@ protected ClientHttpRespons... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-test/src/main/java/org/springframework/test/web/client/AbstractRequestExpectationManager.java | @@ -193,7 +193,7 @@ protected String getRequestDetails() {
if (!this.requests.isEmpty()) {
sb.append(":\n");
for (ClientHttpRequest request : this.requests) {
- sb.append(request.toString()).append("\n");
+ sb.append(request.toString()).append('\n');
}
}
else { | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-tx/src/main/java/org/springframework/transaction/interceptor/DefaultTransactionAttribute.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.
@@ -231,7 +231,7 @@ public void resolveAttribut... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-web/src/main/java/org/springframework/http/codec/ServerSentEventHttpMessageReader.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.
@@ -147,7 +147,7 @@ private Object buildEvent(L... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-web/src/main/java/org/springframework/http/codec/ServerSentEventHttpMessageWriter.java | @@ -141,7 +141,7 @@ private Flux<Publisher<DataBuffer>> encode(Publisher<?> input, ResolvableType el
writeField("retry", retry.toMillis(), sb);
}
if (comment != null) {
- sb.append(':').append(StringUtils.replace(comment, "\n", "\n:")).append("\n");
+ sb.append(':').append(StringUtils.replace(comment... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-web/src/main/java/org/springframework/web/bind/MethodArgumentNotValidException.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.
@@ -64,7 +64,7 @@ public String getMessage() {
... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-web/src/main/java/org/springframework/web/bind/UnsatisfiedServletRequestParameterException.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.
@@ -77,9 +77,9 @@ public String getMessage() {
... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-web/src/main/java/org/springframework/web/bind/support/WebExchangeBindException.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.
@@ -289,7 +289,7 @@ public String getMessage() ... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-web/src/main/java/org/springframework/web/filter/AbstractRequestLoggingFilter.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.
@@ -322,7 +322,7 @@ private String getAfterMess... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-web/src/main/java/org/springframework/web/method/support/ModelAndViewContainer.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.
@@ -333,7 +333,7 @@ public String toString() {
... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-web/src/main/java/org/springframework/web/util/pattern/CaptureVariablePathElement.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.
@@ -159,12 +159,12 @@ public String toString() ... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-web/src/test/java/org/springframework/http/HttpRangeTests.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.
@@ -111,15 +111,15 @@ public void parseRangesVa... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-web/src/test/java/org/springframework/web/multipart/support/DefaultMultipartHttpServletRequestTests.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.
@@ -13,6 +13,7 @@
* See the License for the s... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-web/src/test/java/org/springframework/web/util/JavaScriptUtilsTests.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2004-2019 the original author or authors.
+ * Copyright 2004-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,15 +33,15 @@ public class JavaScriptUtil... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-web/src/test/java/org/springframework/web/util/pattern/PathPatternTests.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.
@@ -1210,7 +1210,7 @@ private PathPattern.PathM... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-webflux/src/main/java/org/springframework/web/reactive/result/method/RequestMappingInfo.java | @@ -380,7 +380,7 @@ public String toString() {
}
if (!this.patternsCondition.isEmpty()) {
Set<PathPattern> patterns = this.patternsCondition.getPatterns();
- builder.append(" ").append(patterns.size() == 1 ? patterns.iterator().next() : patterns);
+ builder.append(' ').append(patterns.size() == 1 ? patter... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-webflux/src/main/java/org/springframework/web/reactive/result/view/BindStatus.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.
@@ -353,7 +353,7 @@ public PropertyEditor findE... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-webflux/src/test/java/org/springframework/web/reactive/FlushingIntegrationTests.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.
@@ -154,7 +154,7 @@ private Flux<String> chunks... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/RequestMappingInfo.java | @@ -509,7 +509,7 @@ public String toString() {
}
// Patterns conditions are never empty and have "" (empty path) at least.
- builder.append(" ").append(getActivePatternsCondition());
+ builder.append(' ').append(getActivePatternsCondition());
if (!this.paramsCondition.isEmpty()) {
builder.append(", p... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/SseEmitter.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.
@@ -35,6 +35,7 @@
*
* @author Rossen Stoyan... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-webmvc/src/main/java/org/springframework/web/servlet/resource/PathResourceResolver.java | @@ -268,7 +268,7 @@ else if (shouldEncodeRelativePath(location) && request != null) {
while (tokenizer.hasMoreTokens()) {
String value = UriUtils.encode(tokenizer.nextToken(), charset);
sb.append(value);
- sb.append("/");
+ sb.append('/');
}
if (!path.endsWith("/")) {
sb.setLength(sb.le... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-webmvc/src/main/java/org/springframework/web/servlet/support/BindStatus.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.
@@ -352,7 +352,7 @@ public PropertyEditor findE... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-webmvc/src/main/java/org/springframework/web/servlet/tags/UrlTag.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.
@@ -286,7 +286,7 @@ String createUrl() throws J... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/handler/HtmlFileTransportHandler.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.
@@ -75,7 +75,7 @@ public class HtmlFileTranspor... | true |
Other | spring-projects | spring-framework | a2ef6badc4c76790128910851fdde0df55ec15f9.json | Use StringBuilder.append(char) where possible
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098 | spring-websocket/src/test/java/org/springframework/web/socket/messaging/StompTextMessageBuilder.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2016 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.
@@ -56,15 +56,15 @@ public StompTextMessageBuil... | true |
Other | spring-projects | spring-framework | 3214786757d34e9f7416057f836af2332e821152.json | Define global Asciidoc attributes once
This commit defines the doc-root and api-spring-framework attributes
once in docs.gradle instead of duplicating them in each *.adoc file.
This commit also introduces a new docs-spring-framework global
attribute. | gradle/docs.gradle | @@ -127,6 +127,8 @@ task extractDocResources(type: Copy, dependsOn: downloadResources) {
}
asciidoctorj {
+ def docRoot = 'https://docs.spring.io'
+ def docsSpringFramework = "${docRoot}/spring-framework/docs/${project.version}"
version = '2.4.1'
fatalWarnings ".*"
options doctype: 'book', eruby: 'erubis'
@@ ... | true |
Other | spring-projects | spring-framework | 3214786757d34e9f7416057f836af2332e821152.json | Define global Asciidoc attributes once
This commit defines the doc-root and api-spring-framework attributes
once in docs.gradle instead of duplicating them in each *.adoc file.
This commit also introduces a new docs-spring-framework global
attribute. | src/docs/asciidoc/appendix.adoc | @@ -1,7 +1,5 @@
[[appendix]]
= Appendix
-:doc-root: https://docs.spring.io
-:api-spring-framework: {doc-root}/spring-framework/docs/{spring-version}/javadoc-api/org/springframework
:toc: left
:toclevels: 4
:tabsize: 4 | true |
Other | spring-projects | spring-framework | 3214786757d34e9f7416057f836af2332e821152.json | Define global Asciidoc attributes once
This commit defines the doc-root and api-spring-framework attributes
once in docs.gradle instead of duplicating them in each *.adoc file.
This commit also introduces a new docs-spring-framework global
attribute. | src/docs/asciidoc/core.adoc | @@ -1,7 +1,5 @@
[[spring-core]]
= Core Technologies
-:doc-root: https://docs.spring.io
-:api-spring-framework: {doc-root}/spring-framework/docs/{spring-version}/javadoc-api/org/springframework
:toc: left
:toclevels: 4
:tabsize: 4 | true |
Other | spring-projects | spring-framework | 3214786757d34e9f7416057f836af2332e821152.json | Define global Asciidoc attributes once
This commit defines the doc-root and api-spring-framework attributes
once in docs.gradle instead of duplicating them in each *.adoc file.
This commit also introduces a new docs-spring-framework global
attribute. | src/docs/asciidoc/core/core-appendix.adoc | @@ -1,6 +1,3 @@
-:doc-root: https://docs.spring.io
-:api-spring-framework: {doc-root}/spring-framework/docs/{spring-version}/javadoc-api/org/springframework
-
= Appendix
| true |
Other | spring-projects | spring-framework | 3214786757d34e9f7416057f836af2332e821152.json | Define global Asciidoc attributes once
This commit defines the doc-root and api-spring-framework attributes
once in docs.gradle instead of duplicating them in each *.adoc file.
This commit also introduces a new docs-spring-framework global
attribute. | src/docs/asciidoc/data-access.adoc | @@ -1,7 +1,5 @@
[[spring-data-tier]]
= Data Access
-:doc-root: https://docs.spring.io
-:api-spring-framework: {doc-root}/spring-framework/docs/{spring-version}/javadoc-api/org/springframework
:toc: left
:toclevels: 4
:tabsize: 4 | true |
Other | spring-projects | spring-framework | 3214786757d34e9f7416057f836af2332e821152.json | Define global Asciidoc attributes once
This commit defines the doc-root and api-spring-framework attributes
once in docs.gradle instead of duplicating them in each *.adoc file.
This commit also introduces a new docs-spring-framework global
attribute. | src/docs/asciidoc/index.adoc | @@ -1,5 +1,4 @@
= Spring Framework Documentation
-:doc-root: https://docs.spring.io
[horizontal]
<<overview.adoc#overview, Overview>> :: history, design philosophy, feedback,
@@ -22,11 +21,11 @@ https://github.com/spring-projects/spring-framework/wiki[*Wiki*] :: What's New,
and other cross-version information.
... | true |
Other | spring-projects | spring-framework | 3214786757d34e9f7416057f836af2332e821152.json | Define global Asciidoc attributes once
This commit defines the doc-root and api-spring-framework attributes
once in docs.gradle instead of duplicating them in each *.adoc file.
This commit also introduces a new docs-spring-framework global
attribute. | src/docs/asciidoc/integration.adoc | @@ -1,7 +1,5 @@
[[spring-integration]]
= Integration
-:doc-root: https://docs.spring.io
-:api-spring-framework: {doc-root}/spring-framework/docs/{spring-version}/javadoc-api/org/springframework
:doc-spring-amqp: {doc-root}/spring-amqp/docs/current/reference
:doc-spring-gemfire: {doc-root}/spring-gemfire/docs/curren... | true |
Other | spring-projects | spring-framework | 3214786757d34e9f7416057f836af2332e821152.json | Define global Asciidoc attributes once
This commit defines the doc-root and api-spring-framework attributes
once in docs.gradle instead of duplicating them in each *.adoc file.
This commit also introduces a new docs-spring-framework global
attribute. | src/docs/asciidoc/languages.adoc | @@ -1,7 +1,5 @@
[[languages]]
= Language Support
-:doc-root: https://docs.spring.io
-:api-spring-framework: {doc-root}/spring-framework/docs/{spring-version}/javadoc-api/org/springframework
:toc: left
:toclevels: 4
:tabsize: 4 | true |
Other | spring-projects | spring-framework | 3214786757d34e9f7416057f836af2332e821152.json | Define global Asciidoc attributes once
This commit defines the doc-root and api-spring-framework attributes
once in docs.gradle instead of duplicating them in each *.adoc file.
This commit also introduces a new docs-spring-framework global
attribute. | src/docs/asciidoc/languages/kotlin.adoc | @@ -42,8 +42,8 @@ Kotlin https://kotlinlang.org/docs/reference/extensions.html[extensions] provide
to extend existing classes with additional functionality. The Spring Framework Kotlin APIs
use these extensions to add new Kotlin-specific conveniences to existing Spring APIs.
-The {doc-root}/spring-framework/docs/{s... | true |
Other | spring-projects | spring-framework | 3214786757d34e9f7416057f836af2332e821152.json | Define global Asciidoc attributes once
This commit defines the doc-root and api-spring-framework attributes
once in docs.gradle instead of duplicating them in each *.adoc file.
This commit also introduces a new docs-spring-framework global
attribute. | src/docs/asciidoc/testing.adoc | @@ -1,7 +1,5 @@
[[testing]]
= Testing
-:doc-root: https://docs.spring.io
-:api-spring-framework: {doc-root}/spring-framework/docs/{spring-version}/javadoc-api/org/springframework
:doc-spring-boot: {doc-root}/spring-boot/docs/current/reference
:toc: left
:toclevels: 4 | true |
Other | spring-projects | spring-framework | 3214786757d34e9f7416057f836af2332e821152.json | Define global Asciidoc attributes once
This commit defines the doc-root and api-spring-framework attributes
once in docs.gradle instead of duplicating them in each *.adoc file.
This commit also introduces a new docs-spring-framework global
attribute. | src/docs/asciidoc/testing/testing-webtestclient.adoc | @@ -1,7 +1,5 @@
[[webtestclient]]
= WebTestClient
-:doc-root: https://docs.spring.io
-:api-spring-framework: {doc-root}/spring-framework/docs/{spring-version}/javadoc-api/org/springframework
`WebTestClient` is an HTTP client designed for testing server applications. It wraps
Spring's <<web-reactive.adoc#webflux-c... | true |
Other | spring-projects | spring-framework | 3214786757d34e9f7416057f836af2332e821152.json | Define global Asciidoc attributes once
This commit defines the doc-root and api-spring-framework attributes
once in docs.gradle instead of duplicating them in each *.adoc file.
This commit also introduces a new docs-spring-framework global
attribute. | src/docs/asciidoc/web-reactive.adoc | @@ -1,7 +1,5 @@
[[spring-web-reactive]]
= Web on Reactive Stack
-:doc-root: https://docs.spring.io
-:api-spring-framework: {doc-root}/spring-framework/docs/{spring-version}/javadoc-api/org/springframework
:toc: left
:toclevels: 4
:tabsize: 4 | true |
Other | spring-projects | spring-framework | 3214786757d34e9f7416057f836af2332e821152.json | Define global Asciidoc attributes once
This commit defines the doc-root and api-spring-framework attributes
once in docs.gradle instead of duplicating them in each *.adoc file.
This commit also introduces a new docs-spring-framework global
attribute. | src/docs/asciidoc/web.adoc | @@ -1,7 +1,5 @@
[[spring-web]]
= Web on Servlet Stack
-:doc-root: https://docs.spring.io
-:api-spring-framework: {doc-root}/spring-framework/docs/{spring-version}/javadoc-api/org/springframework
:toc: left
:toclevels: 4
:tabsize: 4 | true |
Other | spring-projects | spring-framework | 4bb88f3b1d119871edb62cbe564d66f649e3d301.json | Remove logging dependency in BeanUtils
Closes gh-27070 | spring-beans/src/main/java/org/springframework/beans/BeanUtils.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.
@@ -41,8 +41,6 @@
import kotlin.reflect.full.K... | false |
Other | spring-projects | spring-framework | eb964542b48909baf77fd2ed264fc95a5c960826.json | Add doc-root to index.adoc
See gh-27015 | src/docs/asciidoc/index.adoc | @@ -1,4 +1,5 @@
= Spring Framework Documentation
+:doc-root: https://docs.spring.io
[horizontal]
<<overview.adoc#overview, Overview>> :: history, design philosophy, feedback, | false |
Other | spring-projects | spring-framework | a8102e6a41beb0ca7c68ae907baaff0723b6ca86.json | Delete unused code in ConfigurationMethod | spring-context/src/main/java/org/springframework/context/annotation/ConfigurationMethod.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.
@@ -51,18 +51,9 @@ public Location getResourceL... | false |
Other | spring-projects | spring-framework | 71995a90876fd5b0aa39259df35476fcc3b0c5ef.json | Introduce custom header for HTML5 ref docs
This commit disables the automatic header generation from Asciidoc's
default template and replaces it with a custom header that omits the
"Version" label before the revision number. The revision number is also
displayed in a simple span tag in order to reduce the amount of
ve... | gradle/docs.gradle | @@ -155,6 +155,9 @@ asciidoctorj {
asciidoctor {
baseDirFollowsSourceDir()
configurations 'asciidoctorExt'
+ attributes([
+ noheader: '' // custom header in docinfo-header.html
+ ])
sources {
include '*.adoc'
} | true |
Other | spring-projects | spring-framework | 71995a90876fd5b0aa39259df35476fcc3b0c5ef.json | Introduce custom header for HTML5 ref docs
This commit disables the automatic header generation from Asciidoc's
default template and replaces it with a custom header that omits the
"Version" label before the revision number. The revision number is also
displayed in a simple span tag in order to reduce the amount of
ve... | src/docs/asciidoc/docinfo-header.html | @@ -0,0 +1,4 @@
+<div id="header">
+<h1>Spring Framework Documentation</h1>
+<span><strong>{revnumber}</strong></span>
+</div> | true |
Other | spring-projects | spring-framework | 791134c53cfbed6092245dceb7f21678f1820679.json | Link the HTML to the PDF docs and vice-versa
See gh-27015 | src/docs/asciidoc/index.adoc | @@ -6,6 +6,14 @@ independent of release cadence, are maintained externally on the project's
https://github.com/spring-projects/spring-framework/wiki[*Github Wiki*].
****
+ifdef::backend-html5[]
+NOTE: This documentation is also available as {doc-root}/spring-framework/docs/{spring-version}/reference/pdf/index.pdf[P... | false |
Other | spring-projects | spring-framework | db424d0bc5b5a8b6d77062039f260edea02bfb66.json | Replace word "request" with "response" | spring-webflux/src/main/java/org/springframework/web/reactive/function/client/ClientResponse.java | @@ -195,7 +195,7 @@ public interface ClientResponse {
/**
* Return a builder to mutate this response, for example to change
* the status, headers, cookies, and replace or transform the body.
- * @return a builder to mutate the request with
+ * @return a builder to mutate the response with
* @since 5.3
*... | false |
Other | spring-projects | spring-framework | c02ae7bcb86a0aeddc66812d8cadec6cd45a6037.json | Fix noHttp failure | gradle/docs-dokka.gradle | @@ -17,7 +17,7 @@ tasks.findByName("dokkaHtmlPartial")?.configure {
url.set(new URL("https://kotlin.github.io/kotlinx.coroutines/"))
}
externalDocumentationLink {
- url.set(new URL("http://hamcrest.org/JavaHamcrest/javadoc/2.1/"))
+ url.set(new URL("https://hamcrest.org/JavaHamcrest/javadoc/2.1/"))
... | false |
Other | spring-projects | spring-framework | ab41db474e2a94d672fa44f4f66c34c136f7db46.json | Update dokka to 1.5.0
See gh-26870 | build.gradle | @@ -313,6 +313,8 @@ configure([rootProject] + javaProjects) { project ->
pluginManager.withPlugin("kotlin") {
apply plugin: "org.jetbrains.dokka"
+ apply from: "${rootDir}/gradle/docs-dokka.gradle"
+
compileKotlin {
kotlinOptions {
languageVersion = "1.3" | true |
Other | spring-projects | spring-framework | ab41db474e2a94d672fa44f4f66c34c136f7db46.json | Update dokka to 1.5.0
See gh-26870 | gradle/docs-dokka.gradle | @@ -0,0 +1,30 @@
+tasks.findByName("dokkaHtmlPartial")?.configure {
+ outputDirectory.set(new File(buildDir, "docs/kdoc"))
+ dokkaSourceSets {
+ configureEach {
+ sourceRoots.setFrom(file("src/main/kotlin"))
+ classpath.from(sourceSets["main"].runtimeClasspath)
+ externalDo... | true |
Other | spring-projects | spring-framework | ab41db474e2a94d672fa44f4f66c34c136f7db46.json | Update dokka to 1.5.0
See gh-26870 | settings.gradle | @@ -1,7 +1,7 @@
pluginManagement {
repositories {
gradlePluginPortal()
- maven { url 'https://repo.spring.io/plugins-release' }
+ maven { url "https://repo.spring.io/plugins-release" }
}
}
| true |
Other | spring-projects | spring-framework | 8f33450df20352ad6eabe632c082d9b02cb46c9a.json | Fix typo in core-beans.adoc
Closes gh-27377 | src/docs/asciidoc/core/core-beans.adoc | @@ -11188,7 +11188,7 @@ The following table lists features provided by the `BeanFactory` and
| No
| Yes
-| Convenient `MessageSource` access (for internalization)
+| Convenient `MessageSource` access (for internationalization)
| No
| Yes
| false |
Other | spring-projects | spring-framework | a3655c48581dd3977de02f13dd3a7ecc3dcde6c2.json | Add tip related to user destinations in STOMP
See gh-26986 | src/docs/asciidoc/web/websocket.adoc | @@ -1818,12 +1818,16 @@ its own implementation of `WebSocketMessageBrokerConfigurer` that is marked with
An application can send messages that target a specific user, and Spring's STOMP support
recognizes destinations prefixed with `/user/` for this purpose.
For example, a client might subscribe to the `/user/queue/... | false |
Other | spring-projects | spring-framework | 417bce8be5e32ae43c2e3b25de1e24cd03c71e93.json | Add tests for MessageBodyClientHttpResponseWrapper
Closes gh-26984 | spring-web/src/test/java/org/springframework/web/client/MessageBodyClientHttpResponseWrapperTests.java | @@ -0,0 +1,55 @@
+/*
+ * 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
+... | false |
Other | spring-projects | spring-framework | 77a6dce1b58bbd11ec4c7c110c08cb20af38d8d8.json | Review Servlet API version in Spring OXM tests
This commit ensures that Servlet 4.0+ is used in the Spring OXM test
suite, as Servlet 4 specific APIs are used in the tests.
This problem was uncovered while fixing gh-27365 | spring-orm/spring-orm.gradle | @@ -10,7 +10,7 @@ dependencies {
optional(project(":spring-web"))
optional("org.eclipse.persistence:org.eclipse.persistence.jpa")
optional("org.hibernate:hibernate-core")
- optional("javax.servlet:javax.servlet-api:3.1.0")
+ optional("javax.servlet:javax.servlet-api")
testCompile(testFixtures(project(":spring-b... | false |
Other | spring-projects | spring-framework | 532b4b636d6b347df18f897aaa769aa734477f8b.json | Update CI pipeline with JDK16
This commit replaces the JDK15 build with a JDK16 variant.
This also updates the CI image with a new OS version and updated
JDK versions. | ci/images/ci-image/Dockerfile | @@ -1,11 +1,11 @@
-FROM ubuntu:focal-20210119
+FROM ubuntu:focal-20210827
ADD setup.sh /setup.sh
ADD get-jdk-url.sh /get-jdk-url.sh
RUN ./setup.sh java8
ENV JAVA_HOME /opt/openjdk/java8
ENV JDK11 /opt/openjdk/java11
-ENV JDK15 /opt/openjdk/java15
+ENV JDK16 /opt/openjdk/java16
ENV PATH $JAVA_HOME/bin:$PATH | true |
Other | spring-projects | spring-framework | 532b4b636d6b347df18f897aaa769aa734477f8b.json | Update CI pipeline with JDK16
This commit replaces the JDK15 build with a JDK16 variant.
This also updates the CI image with a new OS version and updated
JDK versions. | 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/jdk8u282-b08/OpenJDK8U-jdk_x64_linux_hotspot_8u282b08.tar.gz"
+ echo "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u302-b08/OpenJDK8U-jdk_x64_linux_hotspot_8u302b08.ta... | true |
Other | spring-projects | spring-framework | 532b4b636d6b347df18f897aaa769aa734477f8b.json | Update CI pipeline with JDK16
This commit replaces the JDK15 build with a JDK16 variant.
This also updates the CI image with a new OS version and updated
JDK versions. | ci/images/setup.sh | @@ -22,7 +22,7 @@ curl --output /opt/concourse-release-scripts.jar https://repo.spring.io/release/
mkdir -p /opt/openjdk
pushd /opt/openjdk > /dev/null
-for jdk in java8 java11 java15
+for jdk in java8 java11 java16
do
JDK_URL=$( /get-jdk-url.sh $jdk )
mkdir $jdk | true |
Other | spring-projects | spring-framework | 532b4b636d6b347df18f897aaa769aa734477f8b.json | Update CI pipeline with JDK16
This commit replaces the JDK15 build with a JDK16 variant.
This also updates the CI image with a new OS version and updated
JDK versions. | ci/pipeline.yml | @@ -45,7 +45,7 @@ resource_types:
type: registry-image
source:
repository: springio/artifactory-resource
- tag: 0.0.13
+ tag: 0.0.17
- name: github-status-resource
type: registry-image
source:
@@ -119,14 +119,14 @@ resources:
access_token: ((github-ci-status-token))
branch: ((branch))
... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.