Go to file
Sam Brannen 2fd39839f8 Improve toString() for synthesized annotations
Although the initial report in gh-28015 only covered inconsistencies
for arrays and strings in the toString() implementations for
annotations between the JDK (after Java 9) and Spring, it has since
come to our attention that there was further room for improvement.

This commit therefore addresses the following in toString() output for
synthesized annotations.

- characters are now wrapped in single quotes.

- bytes are now properly formatted as "(byte) 0x##".

- long, float, and double values are now appended with "L", "f", and
  "d", respectively. The use of lowercase for "f" and "d" is solely to
  align with the choice made by the JDK team.

However, this commit does not address the following issues which we may
choose to address at a later point in time.

- non-ASCII, non-visible, and non-printable characters within a
  character or String literal are not escaped.

- formatting for float and double values does not take into account
  whether a value is not a number (NaN) or infinite.

Closes gh-28015
2022-02-10 17:14:37 +01:00
.github Update link for reporting security issues 2021-01-26 21:39:29 +00:00
buildSrc Upgrade to JApicmp Gradle Plugin 0.3.0 2021-09-15 14:40:42 +02:00
ci Upgrade Ubuntu version in CI image 2022-02-03 08:48:52 +01:00
framework-bom
gradle Indent with tabs instead of spaces 2021-10-13 20:04:40 +02:00
integration-tests Use modern language features in tests 2022-02-03 14:50:10 +01:00
spring-aop Fix Javadoc since for AopProxyUtils.isLambda() 2022-02-05 13:59:01 +01:00
spring-aspects Stop resolving CachingConfigurer instances eagerly 2021-12-15 10:52:09 +01:00
spring-beans Add convenience factory method for Managed[List|Set|Map] 2022-02-10 12:37:19 +01:00
spring-context Deprecate AsyncTaskExecutor.execute(Runnable task, long startTimeout) 2022-02-04 23:21:00 +01:00
spring-context-indexer Partially revert e1200f34e7 2022-01-04 16:20:55 +01:00
spring-context-support Deprecate AsyncTaskExecutor.execute(Runnable task, long startTimeout) 2022-02-04 23:21:00 +01:00
spring-core Improve toString() for synthesized annotations 2022-02-10 17:14:37 +01:00
spring-expression Find interface method even for late-bound interface declaration in subclass 2022-02-04 23:21:27 +01:00
spring-instrument
spring-jcl Polishing 2021-09-28 18:15:56 +02:00
spring-jdbc Use modern language features in tests 2022-02-03 14:50:10 +01:00
spring-jms Use modern language features in tests 2022-02-03 14:50:10 +01:00
spring-messaging Use modern language features in tests 2022-02-03 14:50:10 +01:00
spring-orm Use modern language features in tests 2022-02-03 14:50:10 +01:00
spring-oxm Use idiomatic AssertJ assertions for true, false, and null 2022-01-10 14:15:55 +01:00
spring-r2dbc Partially upgrade to H2 database 2.0.206 2022-01-07 15:50:44 +01:00
spring-test Use canonical names for types in synthesized annotation toString 2022-02-10 16:59:00 +01:00
spring-tx Deprecate AsyncTaskExecutor.execute(Runnable task, long startTimeout) 2022-02-04 23:21:00 +01:00
spring-web Use modern language features in tests 2022-02-03 14:50:10 +01:00
spring-webflux Use modern language features in tests 2022-02-03 14:50:10 +01:00
spring-webmvc Add convenience factory method for Managed[List|Set|Map] 2022-02-10 12:37:19 +01:00
spring-websocket Use modern language features in tests 2022-02-03 14:50:10 +01:00
src Update Eclipse template to @since 5.3.16 2022-02-10 13:43:02 +01:00
.editorconfig
.gitattributes
.gitignore Add vscode folder to .gitignore 2021-02-23 17:43:39 +01:00
.mailmap
CODE_OF_CONDUCT.adoc
CONTRIBUTING.md Avoid creating unnessary wrapper for empty map 2021-06-11 16:36:04 +01:00
LICENSE.txt
README.md Add section of CI builds 2021-03-03 11:42:35 +01:00
SECURITY.md Update "Reporting a Vulnerability" link 2021-10-20 14:48:51 +02:00
build.gradle Upgrade to Checkstyle 9.3, HtmlUnit 2.58, Apache HttpClient 5.1.3 2022-02-04 23:51:23 +01:00
gradle.properties Next development version (v5.3.16-SNAPSHOT) 2022-01-13 11:22:39 +00:00
gradlew Upgrade to Gradle 7.2 2021-09-13 09:37:35 +02:00
gradlew.bat
import-into-eclipse.md About notes about AJDT and Kotlin not supported in Eclipse 4.21 2021-09-21 14:23:02 +02:00
import-into-idea.md
settings.gradle Download gradle-enterprise-conventions plugin from "release" repo 2022-01-17 18:03:27 +01:00

README.md

Spring Framework Build Status Revved up by Gradle Enterprise

This is the home of the Spring Framework: the foundation for all Spring projects. Collectively the Spring Framework and the family of Spring projects are often referred to simply as "Spring".

Spring provides everything required beyond the Java programming language for creating enterprise applications for a wide range of scenarios and architectures. Please read the Overview section as reference for a more complete introduction.

Code of Conduct

This project is governed by the Spring Code of Conduct. By participating, you are expected to uphold this code of conduct. Please report unacceptable behavior to spring-code-of-conduct@pivotal.io.

Access to Binaries

For access to artifacts or a distribution zip, see the Spring Framework Artifacts wiki page.

Documentation

The Spring Framework maintains reference documentation (published and source), Github wiki pages, and an API reference. There are also guides and tutorials across Spring projects.

Micro-Benchmarks

See the Micro-Benchmarks Wiki page.

Build from Source

See the Build from Source Wiki page and the CONTRIBUTING.md file.

Continuous Integration Builds

Information regarding CI builds can be found in the Spring Framework Concourse pipeline documentation.

Stay in Touch

Follow @SpringCentral, @SpringFramework, and its team members on Twitter. In-depth articles can be found at The Spring Blog, and releases are announced via our news feed.

License

The Spring Framework is released under version 2.0 of the Apache License.