Andy Wilkinson
0e77445a9a
Polish "Optimize BeanPropertyName.toDashedForm()"
...
See gh-15779
2019-01-28 11:37:55 +00:00
dreis2211
3c8d9d00e5
Optimize BeanPropertyName.toDashedForm()
...
See gh-15779
2019-01-28 11:37:49 +00:00
Andy Wilkinson
47b378e373
Derive StringBuilder's size from number of elements
...
Previously, when ConfigurationPropertyName was building the String
returned from toString() it would use a StringBuilder with the
default initial capacity of 16. For properties with several
elements this was likely to be too small resulting in the builder's
buffer being resized.
This commit sizes the StringBuilder as a multiple of the number of
elements in the name, attempting to strike a balance between
allocating a StringBuilder with an initial capacity that's too
large and wastes memory and an initial capacity that's too small
and requires resizing.
See gh-15760
2019-01-28 11:34:28 +00:00
Andy Wilkinson
39e2aaa41c
Size the ElementsParser based on expected number of elements
...
Previously, the ElementsParser would be created using its default
capacity of 6 even when parsing a String that is expected to
produce a single element.
This commit updates ConfigurationPropertyName to create an
ElementsParser with a capacity of 1 when parsing a String that should
contain only a single element.
See gh-15760
2019-01-28 11:34:28 +00:00
Andy Wilkinson
8ec6c372e4
Do not expand ElementsParser until size equals storage length
...
Previously, ElementsParser would expand its internal storage when the
size of the storage was <= the end index of the element being parsed,
irrespective of how many elements had been stored. This led to
expansion of the storage, even for a source that contains a single
element, if the end of the element was at an index greater than the
size of the storage.
This commit updates ElementsParser to resize its storage when the size
(the number of elements that have been stored) is equal to the size of
the storage.
See gh-15760
2019-01-28 11:34:28 +00:00
Andy Wilkinson
2956b86035
Avoid creating ConfigurationPropertyName just to get its Elements
...
See gh-15760
2019-01-28 11:34:28 +00:00
dreis2211
d4ab101223
Use Assertions.contentOf() where possible
...
Closes gh-15793
2019-01-28 10:08:57 +01:00
Andy Wilkinson
babe98f064
Merge branch '2.1.x'
2019-01-22 11:54:05 +00:00
Andy Wilkinson
a172e146de
Polish "Always fail fast when SSL is enabled without a key store"
...
Closes gh-15709
2019-01-22 11:51:29 +00:00
Raheela
62c8ac6ee8
Always fail fast when SSL is enabled without a key store
...
See gh-15709
2019-01-22 11:50:19 +00:00
Stephane Nicoll
33f2bd4d61
Merge branch '2.1.x'
2019-01-14 08:13:37 -05:00
Stephane Nicoll
485bdc9901
Polish "Remove redundant interface modifiers"
...
Closes gh-15694
2019-01-14 08:13:08 -05:00
igor-suhorukov
2d873c78fe
Remove redundant interface modifiers
...
See gh-15694
2019-01-14 08:12:41 -05:00
Stephane Nicoll
6baa6b291e
Polish contribution
...
Closes gh-15695
2019-01-14 08:11:20 -05:00
Johnny Lim
af3ed9ff9f
Polish
...
See gh-15695
2019-01-14 08:09:32 -05:00
Phillip Webb
2f77ef7722
Merge branch '2.1.x'
2019-01-11 16:45:05 -08:00
Phillip Webb
9e58942698
Update copyright year for changed files
2019-01-11 16:42:02 -08:00
Phillip Webb
6a901199f5
Polish
2019-01-11 16:42:02 -08:00
Andy Wilkinson
784f192cf3
Merge branch '2.1.x'
2019-01-11 10:34:48 +00:00
Andy Wilkinson
6307cb5943
Disable Tomcat’s reference clearing
...
Closes gh-15101
2019-01-11 10:34:14 +00:00
Stephane Nicoll
8d1d3fb087
Polish "Avoid string concatenation inside StringBuilder append()"
...
Closes gh-15589
2019-01-11 08:30:12 +01:00
igor-suhorukov
59ac85d371
Avoid string concatenation inside StringBuilder append()
...
See gh-15589
2019-01-11 08:28:19 +01:00
Madhura Bhave
2ab0925222
Merge branch '2.1.x'
2019-01-10 13:04:42 -08:00
Madhura Bhave
b345fc8574
Fix validation when key matching the prefix is set
...
Fixes gh-15597
2019-01-10 13:04:12 -08:00
Brian Clozel
ead9b51c9b
Merge branch '2.1.x'
2019-01-08 14:26:37 +01:00
Brian Clozel
c40e61c117
Merge branch '2.0.x' into 2.1.x
2019-01-08 14:26:03 +01:00
Brian Clozel
0e13fd039d
Configure HTTP compression for HTTP/2 with Tomcat
...
This commit ensures that the compression options are also applied on the
`Http2Protocol` when http/2 is enabled with Tomcat.
Closes gh-15591
2019-01-08 14:14:10 +01:00
Stephane Nicoll
2b304e3d69
Merge branch '2.1.x'
2019-01-08 11:31:17 +01:00
Stephane Nicoll
ca7f338a39
Polish "Remove redundant throws Exception"
...
Closes gh-15647
2019-01-08 11:27:28 +01:00
Stephane Nicoll
5ea9ac0ac6
Merge branch '2.1.x'
2019-01-08 11:14:32 +01:00
Stephane Nicoll
02581c005a
Polish "Fix typo"
...
Closes gh-15642
2019-01-08 11:12:05 +01:00
Michael Simons
7a2313892c
Fix typo
...
See gh-15642
2019-01-08 11:11:34 +01:00
Stephane Nicoll
442225bbf1
Merge branch '2.1.x'
2019-01-03 10:27:13 +01:00
Stephane Nicoll
4729d170a8
Polish "Ensure checking customizer ordering"
...
Closes gh-15603
2019-01-03 10:26:09 +01:00
Tadaya Tsuyukubo
b34e752db6
Ensure checking customizer ordering
...
See gh-15603
2019-01-03 10:25:49 +01:00
Madhura Bhave
aee65441a7
Merge branch '2.1.x'
2019-01-02 10:54:43 -08:00
Madhura Bhave
d1e1a82b32
Support binding to collection with EnumSet values
...
Fixes gh-15539
2019-01-02 10:52:31 -08:00
dreis2211
0f5f6f15dc
Use hasFieldOrPropertyWithValue where possible
...
Closes gh-15582
2018-12-30 09:48:27 +01:00
Stephane Nicoll
8e8910b2ff
Merge branch '2.0.x' into 2.1.x
2018-12-28 18:20:43 +01:00
Stephane Nicoll
805ff6000a
Polish "Replace indexOf() with a call to the contains()"
...
Closes gh-15559
2018-12-24 09:52:29 +01:00
igor-suhorukov
b370b1f03a
Replace indexOf() with a call to the contains()
...
See gh-15559
2018-12-24 09:52:15 +01:00
igor-suhorukov
7424f48803
Replace redundant call to class isInstance() with instanceof
...
See gh-15554
2018-12-23 15:50:22 +01:00
Stephane Nicoll
0d67f7ae9a
Merge branch '2.1.x'
2018-12-20 18:02:46 +01:00
Stephane Nicoll
b039982273
Merge branch '2.0.x' into 2.1.x
2018-12-20 18:02:38 +01:00
dreis2211
9ffb4f69cd
Polish javadoc of ConfigurableUndertowWebServerFactory method
...
Closes gh-15536
2018-12-20 18:01:38 +01:00
Stephane Nicoll
9d67400afa
Merge branch '2.1.x'
2018-12-20 17:54:08 +01:00
igor-suhorukov
e578d30722
Replace anonymous inner class with lambda
...
See gh-15438
2018-12-20 17:47:29 +01:00
Andy Wilkinson
3a7406fe3a
Merge branch '2.0.x' into 2.1.x
2018-12-20 15:58:03 +00:00
Andy Wilkinson
0741c90489
Avoid blocking on a Mono indefinitely
...
Closes gh-15535
2018-12-20 15:31:39 +00:00
Andy Wilkinson
9d2d6d5812
Merge branch '2.1.x'
2018-12-20 15:30:51 +00:00