Reformat code
This commit is contained in:
@@ -226,7 +226,7 @@ public class EndpointWebMvcChildContextConfiguration {
|
||||
// the same place)
|
||||
this.server.customize(container);
|
||||
// Then reset the error pages
|
||||
container.setErrorPages(Collections.<ErrorPage> emptySet());
|
||||
container.setErrorPages(Collections.<ErrorPage>emptySet());
|
||||
// and add the management-specific bits
|
||||
container.setPort(this.managementServerProperties.getPort());
|
||||
container.setAddress(this.managementServerProperties.getAddress());
|
||||
|
||||
@@ -241,7 +241,7 @@ public class ManagementWebSecurityAutoConfiguration {
|
||||
}
|
||||
if (this.endpointHandlerMapping == null) {
|
||||
this.endpointHandlerMapping = new EndpointHandlerMapping(
|
||||
Collections.<MvcEndpoint> emptySet());
|
||||
Collections.<MvcEndpoint>emptySet());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,7 +67,8 @@ public abstract class AbstractJmxCacheStatisticsProvider<C extends Cache> implem
|
||||
* {@code null} if none is found.
|
||||
* @param cache the cache to handle
|
||||
* @return the object name of the cache statistics MBean
|
||||
* @throws MalformedObjectNameException if the {@link ObjectName} for that cache is invalid
|
||||
* @throws MalformedObjectNameException if the {@link ObjectName} for that cache is
|
||||
* invalid
|
||||
*/
|
||||
protected abstract ObjectName getObjectName(C cache)
|
||||
throws MalformedObjectNameException;
|
||||
|
||||
@@ -39,8 +39,8 @@ import org.springframework.web.client.RestTemplate;
|
||||
* HTTP endpoint provided by the server. Data are buffered according to the
|
||||
* {@link #setBufferSize(int) bufferSize} property, and only flushed automatically when
|
||||
* the buffer size is reached. Users should either manually {@link #flush()} after writing
|
||||
* a batch of data if that makes sense, or consider adding a {@link Scheduled
|
||||
* Scheduled} task to flush periodically.
|
||||
* a batch of data if that makes sense, or consider adding a {@link Scheduled Scheduled}
|
||||
* task to flush periodically.
|
||||
*
|
||||
* @author Dave Syer
|
||||
* @since 1.3.0
|
||||
|
||||
@@ -72,7 +72,7 @@ public class MetricExportersTests {
|
||||
public void exporter() {
|
||||
this.export.setUpDefaults();
|
||||
this.exporters = new MetricExporters(this.export);
|
||||
this.exporters.setExporters(Collections.<String, Exporter> singletonMap("foo",
|
||||
this.exporters.setExporters(Collections.<String, Exporter>singletonMap("foo",
|
||||
new MetricCopyExporter(this.reader, this.writer)));
|
||||
this.exporters.configureTasks(new ScheduledTaskRegistrar());
|
||||
assertNotNull(this.exporters.getExporters());
|
||||
|
||||
Reference in New Issue
Block a user