Applied checkstyle rules

This commit is contained in:
Marcin Grzejszczak
2019-02-08 18:20:59 +01:00
parent 8610626e60
commit 8ce80e6e7f
1259 changed files with 31751 additions and 20606 deletions

View File

@@ -1,3 +1,19 @@
/*
* Copyright 2013-2019 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example;
import java.net.URI;
@@ -21,15 +37,15 @@ import org.springframework.web.client.RestTemplate;
@Import({ Service.class, Controller.class })
public class WiremockTestsApplication {
public static void main(String[] args) {
SpringApplication.run(WiremockTestsApplication.class, args);
}
@Bean
public RestTemplate restTemplate() {
return new RestTemplate();
}
public static void main(String[] args) {
SpringApplication.run(WiremockTestsApplication.class, args);
}
}
@RestController
@@ -37,7 +53,7 @@ class Controller {
private final Service service;
public Controller(Service service) {
Controller(Service service) {
this.service = service;
}
@@ -56,7 +72,7 @@ class Service {
private RestTemplate restTemplate;
public Service(RestTemplate restTemplate) {
Service(RestTemplate restTemplate) {
this.restTemplate = restTemplate;
}