Commit fd12e696 authored by Stephane Nicoll's avatar Stephane Nicoll

Polish "Replace redundant call to class isInstance() with instanceof"

Closes gh-15554
parent 7424f488
/* /*
* 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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
......
...@@ -70,7 +70,7 @@ public class HypermediaAutoConfigurationTests { ...@@ -70,7 +70,7 @@ public class HypermediaAutoConfigurationTests {
LinkDiscoverers discoverers = this.context.getBean(LinkDiscoverers.class); LinkDiscoverers discoverers = this.context.getBean(LinkDiscoverers.class);
assertThat(discoverers).isNotNull(); assertThat(discoverers).isNotNull();
LinkDiscoverer discoverer = discoverers.getLinkDiscovererFor(MediaTypes.HAL_JSON); LinkDiscoverer discoverer = discoverers.getLinkDiscovererFor(MediaTypes.HAL_JSON);
assertThat(discoverer instanceof HalLinkDiscoverer).isTrue(); assertThat(discoverer).isInstanceOf(HalLinkDiscoverer.class);
} }
@Test @Test
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment