Skip to content

Commit 798522d

Browse files
committed
Format with Eclipse Oxygen SR2
1 parent 1f8bc39 commit 798522d

File tree

62 files changed

+138
-144
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+138
-144
lines changed

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/CrshAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ private static class BeanFactoryFilteringPluginDiscovery
377377

378378
BeanFactoryFilteringPluginDiscovery(ClassLoader classLoader,
379379
ListableBeanFactory beanFactory, String[] disabledPlugins)
380-
throws NullPointerException {
380+
throws NullPointerException {
381381
super(classLoader);
382382
this.beanFactory = beanFactory;
383383
this.disabledPlugins = disabledPlugins;

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/MetricsFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ protected boolean shouldNotFilterAsyncDispatch() {
9898
@Override
9999
protected void doFilterInternal(HttpServletRequest request,
100100
HttpServletResponse response, FilterChain chain)
101-
throws ServletException, IOException {
101+
throws ServletException, IOException {
102102
StopWatch stopWatch = createStopWatchIfNecessary(request);
103103
String path = new UrlPathHelper().getPathWithinApplication(request);
104104
int status = HttpStatus.INTERNAL_SERVER_ERROR.value();

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/PublicMetricsAutoConfiguration.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,9 @@ public SystemPublicMetrics systemPublicMetrics() {
8989

9090
@Bean
9191
public MetricReaderPublicMetrics metricReaderPublicMetrics() {
92-
return new MetricReaderPublicMetrics(
93-
new CompositeMetricReader(this.metricReaders == null ? new MetricReader[0]
94-
: this.metricReaders
95-
.toArray(new MetricReader[this.metricReaders.size()])));
92+
return new MetricReaderPublicMetrics(new CompositeMetricReader(
93+
this.metricReaders == null ? new MetricReader[0] : this.metricReaders
94+
.toArray(new MetricReader[this.metricReaders.size()])));
9695
}
9796

9897
@Bean

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/cloudfoundry/CloudFoundryActuatorAutoConfiguration.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,8 @@ private CloudFoundrySecurityService getCloudFoundrySecurityService(
8989
String cloudControllerUrl = environment.getProperty("vcap.application.cf_api");
9090
boolean skipSslValidation = cloudFoundryProperties
9191
.getProperty("skip-ssl-validation", Boolean.class, false);
92-
return cloudControllerUrl == null ? null
93-
: new CloudFoundrySecurityService(restTemplateBuilder, cloudControllerUrl,
94-
skipSslValidation);
92+
return cloudControllerUrl == null ? null : new CloudFoundrySecurityService(
93+
restTemplateBuilder, cloudControllerUrl, skipSslValidation);
9594
}
9695

9796
private CorsConfiguration getCorsConfiguration() {

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/HeapdumpMvcEndpoint.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ protected HeapdumpMvcEndpoint(long timeout) {
7676
@RequestMapping(method = RequestMethod.GET, produces = MediaType.APPLICATION_OCTET_STREAM_VALUE)
7777
public void invoke(@RequestParam(defaultValue = "true") boolean live,
7878
HttpServletRequest request, HttpServletResponse response)
79-
throws IOException, ServletException {
79+
throws IOException, ServletException {
8080
if (!isEnabled()) {
8181
response.setStatus(HttpStatus.NOT_FOUND.value());
8282
return;
@@ -100,7 +100,7 @@ public void invoke(@RequestParam(defaultValue = "true") boolean live,
100100

101101
private void dumpHeap(boolean live, HttpServletRequest request,
102102
HttpServletResponse response)
103-
throws IOException, ServletException, InterruptedException {
103+
throws IOException, ServletException, InterruptedException {
104104
if (this.heapDumper == null) {
105105
this.heapDumper = createHeapDumper();
106106
}

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/trace/WebRequestTraceFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public void setOrder(int order) {
101101
@Override
102102
protected void doFilterInternal(HttpServletRequest request,
103103
HttpServletResponse response, FilterChain filterChain)
104-
throws ServletException, IOException {
104+
throws ServletException, IOException {
105105
long startTime = System.nanoTime();
106106
Map<String, Object> trace = getTrace(request);
107107
logTrace(request, trace);

spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/MetricFilterAutoConfigurationTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ public static class RedirectFilter extends OncePerRequestFilter {
548548
@Override
549549
protected void doFilterInternal(HttpServletRequest request,
550550
HttpServletResponse response, FilterChain chain)
551-
throws ServletException, IOException {
551+
throws ServletException, IOException {
552552
// send redirect before filter chain is executed, like Spring Security sending
553553
// us back to a login page
554554
response.sendRedirect("http://example.com");
@@ -563,7 +563,7 @@ public static class ServiceUnavailableFilter extends OncePerRequestFilter {
563563
@Override
564564
protected void doFilterInternal(HttpServletRequest request,
565565
HttpServletResponse response, FilterChain chain)
566-
throws ServletException, IOException {
566+
throws ServletException, IOException {
567567

568568
response.sendError(HttpStatus.SERVICE_UNAVAILABLE.value());
569569
}

spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/jmx/EndpointMBeanExporterTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ private ObjectName getObjectName(String beanKey, GenericApplicationContext conte
306306

307307
private ObjectName getObjectName(String domain, String beanKey,
308308
boolean includeIdentity, ApplicationContext applicationContext)
309-
throws MalformedObjectNameException {
309+
throws MalformedObjectNameException {
310310
if (includeIdentity) {
311311
return ObjectNameManager.getInstance(String.format(
312312
"%s:type=Endpoint,name=%s,identity=%s", domain, beanKey, ObjectUtils

spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/mvc/AuditEventsMvcEndpointTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ public void invokeFilterByDateAfter() throws Exception {
104104

105105
@Test
106106
public void invokeFilterByPrincipalAndDateAfter() throws Exception {
107-
this.mvc.perform(get("/auditevents").param("principal", "user").param("after",
108-
"2016-11-01T10:00:00+0000"))
107+
this.mvc.perform(get("/auditevents")
108+
.param("principal", "user").param("after", "2016-11-01T10:00:00+0000"))
109109
.andExpect(status().isOk())
110110
.andExpect(content().string(
111111
containsString("\"principal\":\"user\",\"type\":\"login\"")))

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/batch/BatchAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public JobExplorer jobExplorer(DataSource dataSource) throws Exception {
124124
@ConditionalOnMissingBean(JobOperator.class)
125125
public SimpleJobOperator jobOperator(JobExplorer jobExplorer, JobLauncher jobLauncher,
126126
ListableJobLocator jobRegistry, JobRepository jobRepository)
127-
throws Exception {
127+
throws Exception {
128128
SimpleJobOperator factory = new SimpleJobOperator();
129129
factory.setJobExplorer(jobExplorer);
130130
factory.setJobLauncher(jobLauncher);

0 commit comments

Comments
 (0)