Sam Brannen
7025b7aac2
Provide example for calculating Integer.MIN_VALUE with SpEL's power operator
2024-02-02 14:43:56 +01:00
Sam Brannen
1e432ff95d
Improve documentation for overloaded operators in SpEL
...
See gh-32182
2024-02-02 14:39:09 +01:00
Juergen Hoeller
ae17b11b70
Preserve overridden toString result in HandlerMethod copy constructor
...
Closes gh-32184
2024-02-01 19:14:11 +01:00
Juergen Hoeller
1a783f41aa
Use target class for candidate retrieval but not for method matching
...
Closes gh-32181
See gh-21843
2024-02-01 18:59:45 +01:00
Sam Brannen
521fbfdb85
Update copyright headers in contribution
2024-02-01 17:58:06 +01:00
Siddik ACIL
87377d6f3e
Fix modelAttribitePredicate typos
...
This commit replaces occurrences of modelAttribitePredicate with modelAttributePredicate
in HandlerMethodValidationException and the associated validator.
Closes gh-32183
2024-02-01 17:56:07 +01:00
Sam Brannen
af2934c09b
Document support for overloading operators in SpEL in reference manual
...
Closes gh-32182
2024-02-01 17:24:25 +01:00
Sam Brannen
17ee82e004
Organize and clean up SpEL documentation tests
2024-02-01 16:22:14 +01:00
Sam Brannen
a82108ec73
Clarify semantics of SpEL's between operator
...
See gh-32140
2024-02-01 14:58:21 +01:00
Stéphane Nicoll
d4401cc69a
Polish
2024-02-01 14:40:02 +01:00
Sam Brannen
2367314b52
Polish SpEL chapter
2024-02-01 13:57:25 +01:00
Sam Brannen
80a3c1923f
Link to Jakarta EL instead of mentioning Unified EL in SpEL overview
...
As a bit of trivia, Jakarta EL was originally Unified EL, which was
originally JSP EL, which was originally SPEL.
SPEL: Simplest Possible Expression Language
SpEL: Spring Expression Language
So one could say that SPEL inspired SpEL.
2024-02-01 13:50:14 +01:00
Sam Brannen
c989cba963
Add Checkstyle rule to enforce use of class literals for primitives & void
...
This commit introduces a globally applied Checkstyle rule which
enforces the use of class literals for primitive types and void by
forbidding the use of the TYPE constants in Boolean, Character, Byte,
Short, Integer, Long, Float, Double, and Void.
For example, if MyClass uses one of the TYPE constants, the build will
now fail with a message similar to the following.
[ERROR] <...>/MyClass.java:39: Please use class literals for primitives and void -- for example, int.class instead of Integer.TYPE.
2024-02-01 12:51:35 +01:00
Juergen Hoeller
3d4d68c26f
Run listener/send task locally as fallback on RejectedExecutionException
...
Closes gh-32171
2024-02-01 11:07:02 +01:00
Stéphane Nicoll
b61552b9df
Merge pull request #32176 from quaff
...
* pr/32176:
Fix assertion in BeanWrapperAutoGrowingTests
Closes gh-32176
2024-02-01 09:35:01 +01:00
Yanming Zhou
615973cce4
Fix assertion in BeanWrapperAutoGrowingTests
...
See gh-32176
2024-02-01 09:34:32 +01:00
Juergen Hoeller
00577ed80a
Polishing
2024-01-31 17:12:20 +01:00
Juergen Hoeller
9b2b485444
Disabled test for auto-growing nested map values
...
See gh-32154
2024-01-31 17:12:12 +01:00
Juergen Hoeller
d586513d66
Introduce SqlBinaryValue/SqlCharacterValue as alternative to SqlLobValue
...
Includes direct byte array support via setBytes in StatementCreatorUtils.
Closes gh-32161
2024-01-31 17:12:05 +01:00
Sam Brannen
2b52582dff
Polishing
2024-01-31 16:41:15 +01:00
Stéphane Nicoll
67958656e4
Polish
2024-01-31 15:01:03 +01:00
Stéphane Nicoll
a4db0e7448
Merge pull request #32164 from quaff
...
* pr/32164:
Polish contribution
Polish StatementCreatorUtilsTests
Closes gh-32164
2024-01-31 08:57:53 +01:00
Stéphane Nicoll
ef2cae36ac
Polish contribution
...
See gh-32164
2024-01-31 08:57:11 +01:00
Yanming Zhou
efaf41862c
Polish StatementCreatorUtilsTests
...
See gh-32164
2024-01-31 08:56:59 +01:00
Juergen Hoeller
af5acb6d34
Avoid pre-conversion attempt in case of overloaded write methods
...
Closes gh-32159
See gh-31872
2024-01-30 21:57:14 +01:00
Sam Brannen
067638ae6e
Introduce ClassUtils.isVoidType() utility method
2024-01-30 16:27:34 +01:00
Sam Brannen
398cc01650
Polishing
2024-01-30 16:24:55 +01:00
Stéphane Nicoll
3a518b60e7
Merge pull request #32157 from jee14
...
* pr/32157:
Upgrade copyright year of changed file
Wrap ternary operator within parantheses
Closes gh-32157
2024-01-30 15:59:39 +01:00
Stéphane Nicoll
298f308ce1
Upgrade copyright year of changed file
...
See gh-32157
2024-01-30 15:59:06 +01:00
jee14
6ffb74def3
Wrap ternary operator within parantheses
...
See gh-32157
2024-01-30 15:57:51 +01:00
Stéphane Nicoll
b55a4d3908
Prevent AOT from failing with spring-orm without JPA
...
This commit improves PersistenceManagedTypesBeanRegistrationAotProcessor
so that it does not attempt to load JPA classes when checking for the
presence of a PersistenceManagedTypes bean. To make it more clear a
check on the presence for JPA has been added to prevent the nested
classes to be loaded regardless of the presence of the bean.
Closes gh-32155
2024-01-30 15:43:07 +01:00
Sam Brannen
db535863dd
Consistently use class literals for primitive types
...
To improve consistency and avoid confusion regarding primitive types
and their wrapper types, this commit ensures that we always use class
literals for primitive types.
For example, instead of using the `Void.TYPE` constant, we now
consistently use `void.class`.
2024-01-30 15:26:12 +01:00
Stéphane Nicoll
95a3f3bb6e
Upgrade CI to Java 22ea+33
2024-01-29 21:19:53 +01:00
Sam Brannen
84cce6018c
Document the between operator in SpEL
...
Closes gh-32140
2024-01-29 18:34:12 +01:00
Sam Brannen
e97fc7be38
Improve documentation for alternative textual operators in SpEL
2024-01-29 17:47:46 +01:00
Sam Brannen
9eae0ba50e
Clean up warnings in build
2024-01-29 17:47:46 +01:00
Sam Brannen
f3c8102882
Polish SpEL Tokenizer
2024-01-29 17:47:46 +01:00
Juergen Hoeller
005d5ef922
Polishing
2024-01-29 16:53:35 +01:00
Juergen Hoeller
5dc26460fb
Eagerly initialize ZERO_NANOS constant
2024-01-29 16:48:08 +01:00
Sam Brannen
542502b2b6
Upgrade to AssertJ 3.25.2
2024-01-29 16:08:04 +01:00
Sam Brannen
f6d8443781
Fix logic in SupplierUtils
2024-01-29 16:07:44 +01:00
Juergen Hoeller
a44341ece3
Consistent method declaration order in Call/TableMetaDataProvider
2024-01-29 15:25:55 +01:00
Juergen Hoeller
969b18b0e8
Polishing
2024-01-29 15:25:43 +01:00
Juergen Hoeller
2e9d6a1d4e
Polishing
2024-01-29 13:04:42 +01:00
Juergen Hoeller
7e5efdd8dd
Reuse MapPropertySource for DynamicValuesPropertySource implementation
...
Closes gh-32110
2024-01-29 13:04:02 +01:00
Juergen Hoeller
08e6df8832
Revise shutdown phase log message and executor shutdown documentation
...
Closes gh-32109
2024-01-29 13:03:20 +01:00
Juergen Hoeller
a738e4d5fd
Explicit documentation note on cron-vs-quartz parsing convention
...
Closes gh-32128
2024-01-29 13:02:43 +01:00
Sébastien Deleuze
9c4b4ab81e
Update basics.adoc
...
Closes gh-32145
2024-01-29 09:08:37 +01:00
Sam Brannen
0ee2d41528
Delete obsolete test utility method
...
Commit dc6ce30663 made this method obsolete.
2024-01-28 18:44:56 +01:00
Sam Brannen
dc6ce30663
Polishing
2024-01-28 18:31:31 +01:00