Polish "Replace redundant call to class isInstance() with instanceof"
Closes gh-15554
This commit is contained in:
parent
7424f48803
commit
fd12e696b0
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2017 the original author or authors.
|
||||
* Copyright 2012-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
|
@ -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(discoverer instanceof HalLinkDiscoverer).isTrue();
|
||||
assertThat(discoverer).isInstanceOf(HalLinkDiscoverer.class);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue