Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
45d85778
Commit
45d85778
authored
Nov 01, 2019
by
Johnny Lim
Committed by
Stephane Nicoll
Nov 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
See gh-18838
parent
7d5c468e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
7 deletions
+6
-7
JettyWebServerFactoryCustomizer.java
...nfigure/web/embedded/JettyWebServerFactoryCustomizer.java
+4
-4
SingleConfigurationTableEntry.java
...boot/configurationdocs/SingleConfigurationTableEntry.java
+1
-1
PropertyDescriptorResolver.java
...ot/configurationprocessor/PropertyDescriptorResolver.java
+0
-1
DeducedImmutableClassProperties.java
...tionsample/immutable/DeducedImmutableClassProperties.java
+1
-1
No files found.
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/embedded/JettyWebServerFactoryCustomizer.java
View file @
45d85778
...
@@ -124,19 +124,19 @@ public class JettyWebServerFactoryCustomizer
...
@@ -124,19 +124,19 @@ public class JettyWebServerFactoryCustomizer
@Override
@Override
public
void
customize
(
Server
server
)
{
public
void
customize
(
Server
server
)
{
setHandlerMaxHttpFormPostSize
(
maxHttpFormPostSize
,
server
.
getHandlers
());
setHandlerMaxHttpFormPostSize
(
server
.
getHandlers
());
}
}
private
void
setHandlerMaxHttpFormPostSize
(
int
maxHttpPostSize
,
Handler
...
handlers
)
{
private
void
setHandlerMaxHttpFormPostSize
(
Handler
...
handlers
)
{
for
(
Handler
handler
:
handlers
)
{
for
(
Handler
handler
:
handlers
)
{
if
(
handler
instanceof
ContextHandler
)
{
if
(
handler
instanceof
ContextHandler
)
{
((
ContextHandler
)
handler
).
setMaxFormContentSize
(
maxHttpFormPostSize
);
((
ContextHandler
)
handler
).
setMaxFormContentSize
(
maxHttpFormPostSize
);
}
}
else
if
(
handler
instanceof
HandlerWrapper
)
{
else
if
(
handler
instanceof
HandlerWrapper
)
{
setHandlerMaxHttpFormPostSize
(
maxHttpFormPostSize
,
((
HandlerWrapper
)
handler
).
getHandler
());
setHandlerMaxHttpFormPostSize
(((
HandlerWrapper
)
handler
).
getHandler
());
}
}
else
if
(
handler
instanceof
HandlerCollection
)
{
else
if
(
handler
instanceof
HandlerCollection
)
{
setHandlerMaxHttpFormPostSize
(
maxHttpFormPostSize
,
((
HandlerCollection
)
handler
).
getHandlers
());
setHandlerMaxHttpFormPostSize
(((
HandlerCollection
)
handler
).
getHandlers
());
}
}
}
}
}
}
...
...
spring-boot-project/spring-boot-tools/spring-boot-configuration-docs/src/main/java/org/springframework/boot/configurationdocs/SingleConfigurationTableEntry.java
View file @
45d85778
...
@@ -62,11 +62,11 @@ class SingleConfigurationTableEntry extends ConfigurationTableEntry {
...
@@ -62,11 +62,11 @@ class SingleConfigurationTableEntry extends ConfigurationTableEntry {
private
void
writeDefaultValue
(
AsciidocBuilder
builder
)
{
private
void
writeDefaultValue
(
AsciidocBuilder
builder
)
{
String
defaultValue
=
(
this
.
defaultValue
!=
null
)
?
this
.
defaultValue
:
""
;
String
defaultValue
=
(
this
.
defaultValue
!=
null
)
?
this
.
defaultValue
:
""
;
defaultValue
=
defaultValue
.
replace
(
"\\"
,
"\\\\"
).
replace
(
"|"
,
"\\|"
);
if
(
defaultValue
.
isEmpty
())
{
if
(
defaultValue
.
isEmpty
())
{
builder
.
appendln
(
"|"
);
builder
.
appendln
(
"|"
);
}
}
else
{
else
{
defaultValue
=
defaultValue
.
replace
(
"\\"
,
"\\\\"
).
replace
(
"|"
,
"\\|"
);
builder
.
appendln
(
"|`+"
,
defaultValue
,
"+`"
);
builder
.
appendln
(
"|`+"
,
defaultValue
,
"+`"
);
}
}
}
}
...
...
spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/PropertyDescriptorResolver.java
View file @
45d85778
...
@@ -185,7 +185,6 @@ class PropertyDescriptorResolver {
...
@@ -185,7 +185,6 @@ class PropertyDescriptorResolver {
return
isConstructorBoundType
((
TypeElement
)
type
.
getEnclosingElement
(),
env
);
return
isConstructorBoundType
((
TypeElement
)
type
.
getEnclosingElement
(),
env
);
}
}
return
false
;
return
false
;
}
}
}
}
...
...
spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationsample/immutable/DeducedImmutableClassProperties.java
View file @
45d85778
...
@@ -40,7 +40,7 @@ public class DeducedImmutableClassProperties {
...
@@ -40,7 +40,7 @@ public class DeducedImmutableClassProperties {
public
static
class
Nested
{
public
static
class
Nested
{
private
String
name
;
private
final
String
name
;
public
Nested
(
String
name
)
{
public
Nested
(
String
name
)
{
this
.
name
=
name
;
this
.
name
=
name
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment