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
7424f488
Commit
7424f488
authored
Dec 21, 2018
by
igor-suhorukov
Committed by
Stephane Nicoll
Dec 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace redundant call to class isInstance() with instanceof
See gh-15554
parent
372b6605
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
OnManagementPortCondition.java
...e/autoconfigure/web/server/OnManagementPortCondition.java
+1
-1
ConditionMessage.java
...mework/boot/autoconfigure/condition/ConditionMessage.java
+1
-1
HypermediaAutoConfigurationTests.java
...toconfigure/hateoas/HypermediaAutoConfigurationTests.java
+1
-1
LogbackLoggingSystem.java
...gframework/boot/logging/logback/LogbackLoggingSystem.java
+1
-1
No files found.
spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/web/server/OnManagementPortCondition.java
View file @
7424f488
...
...
@@ -68,7 +68,7 @@ class OnManagementPortCondition extends SpringBootCondition {
context
.
getClassLoader
()))
{
return
false
;
}
return
WebApplicationContext
.
class
.
isInstance
(
resourceLoader
)
;
return
resourceLoader
instanceof
WebApplicationContext
;
}
}
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionMessage.java
View file @
7424f488
...
...
@@ -61,7 +61,7 @@ public final class ConditionMessage {
@Override
public
boolean
equals
(
Object
obj
)
{
if
(
obj
==
null
||
!
ConditionMessage
.
class
.
isInstance
(
obj
))
{
if
(
!(
obj
instanceof
ConditionMessage
))
{
return
false
;
}
if
(
obj
==
this
)
{
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/hateoas/HypermediaAutoConfigurationTests.java
View file @
7424f488
...
...
@@ -70,7 +70,7 @@ public class HypermediaAutoConfigurationTests {
LinkDiscoverers
discoverers
=
this
.
context
.
getBean
(
LinkDiscoverers
.
class
);
assertThat
(
discoverers
).
isNotNull
();
LinkDiscoverer
discoverer
=
discoverers
.
getLinkDiscovererFor
(
MediaTypes
.
HAL_JSON
);
assertThat
(
HalLinkDiscoverer
.
class
.
isInstance
(
discoverer
)
).
isTrue
();
assertThat
(
discoverer
instanceof
HalLinkDiscoverer
).
isTrue
();
}
@Test
...
...
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/logback/LogbackLoggingSystem.java
View file @
7424f488
...
...
@@ -198,7 +198,7 @@ public class LogbackLoggingSystem extends Slf4JLoggingSystem {
}
java
.
util
.
logging
.
Logger
rootLogger
=
LogManager
.
getLogManager
().
getLogger
(
""
);
Handler
[]
handlers
=
rootLogger
.
getHandlers
();
return
handlers
.
length
==
1
&&
SLF4JBridgeHandler
.
class
.
isInstance
(
handlers
[
0
])
;
return
handlers
.
length
==
1
&&
handlers
[
0
]
instanceof
SLF4JBridgeHandler
;
}
private
void
addLevelChangePropagator
(
LoggerContext
loggerContext
)
{
...
...
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