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
553b1842
Commit
553b1842
authored
Mar 26, 2018
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish "Use Supplier variants of Assert methods"
Closes gh-12630
parent
3b0f6e71
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
HazelcastProperties.java
...ork/boot/autoconfigure/hazelcast/HazelcastProperties.java
+2
-2
ArchiveCommand.java
...ingframework/boot/cli/command/archive/ArchiveCommand.java
+3
-2
ClassLoaderFile.java
...rk/boot/devtools/restart/classloader/ClassLoaderFile.java
+2
-1
No files found.
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/hazelcast/HazelcastProperties.java
View file @
553b1842
...
@@ -52,8 +52,8 @@ public class HazelcastProperties {
...
@@ -52,8 +52,8 @@ public class HazelcastProperties {
if
(
this
.
config
==
null
)
{
if
(
this
.
config
==
null
)
{
return
null
;
return
null
;
}
}
Assert
.
isTrue
(
this
.
config
.
exists
(),
()
->
"Hazelcast configuration does not
exist '
"
Assert
.
isTrue
(
this
.
config
.
exists
(),
()
->
"Hazelcast configuration does not "
+
this
.
config
.
getDescription
()
+
"'"
);
+
"exist '"
+
this
.
config
.
getDescription
()
+
"'"
);
return
this
.
config
;
return
this
.
config
;
}
}
...
...
spring-boot-project/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/archive/ArchiveCommand.java
View file @
553b1842
...
@@ -124,8 +124,9 @@ abstract class ArchiveCommand extends OptionParsingCommand {
...
@@ -124,8 +124,9 @@ abstract class ArchiveCommand extends OptionParsingCommand {
protected
ExitStatus
run
(
OptionSet
options
)
throws
Exception
{
protected
ExitStatus
run
(
OptionSet
options
)
throws
Exception
{
List
<?>
nonOptionArguments
=
new
ArrayList
<
Object
>(
List
<?>
nonOptionArguments
=
new
ArrayList
<
Object
>(
options
.
nonOptionArguments
());
options
.
nonOptionArguments
());
Assert
.
isTrue
(
nonOptionArguments
.
size
()
>=
2
,
()
->
"The name of the resulting "
Assert
.
isTrue
(
nonOptionArguments
.
size
()
>=
2
,
()
->
"The name of the "
+
this
.
type
+
" and at least one source file must be specified"
);
+
"resulting"
+
this
.
type
+
" and at least one source file must be "
+
"specified"
);
File
output
=
new
File
((
String
)
nonOptionArguments
.
remove
(
0
));
File
output
=
new
File
((
String
)
nonOptionArguments
.
remove
(
0
));
Assert
.
isTrue
(
Assert
.
isTrue
(
...
...
spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/classloader/ClassLoaderFile.java
View file @
553b1842
...
@@ -56,7 +56,8 @@ public class ClassLoaderFile implements Serializable {
...
@@ -56,7 +56,8 @@ public class ClassLoaderFile implements Serializable {
public
ClassLoaderFile
(
Kind
kind
,
long
lastModified
,
byte
[]
contents
)
{
public
ClassLoaderFile
(
Kind
kind
,
long
lastModified
,
byte
[]
contents
)
{
Assert
.
notNull
(
kind
,
"Kind must not be null"
);
Assert
.
notNull
(
kind
,
"Kind must not be null"
);
Assert
.
isTrue
(
kind
==
Kind
.
DELETED
?
contents
==
null
:
contents
!=
null
,
Assert
.
isTrue
(
kind
==
Kind
.
DELETED
?
contents
==
null
:
contents
!=
null
,
()
->
"Contents must "
+
(
kind
==
Kind
.
DELETED
?
""
:
"not "
)
+
"be null"
);
()
->
"Contents must "
+
(
kind
==
Kind
.
DELETED
?
""
:
"not "
)
+
"be null"
);
this
.
kind
=
kind
;
this
.
kind
=
kind
;
this
.
lastModified
=
lastModified
;
this
.
lastModified
=
lastModified
;
this
.
contents
=
contents
;
this
.
contents
=
contents
;
...
...
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