Skip to content

Commit e8df7f8

Browse files
authored
Taxi fare refactor (eugenp#2328)
1 parent 7f22e3d commit e8df7f8

17 files changed

Lines changed: 34 additions & 232 deletions

File tree

‎spring-rest/difference-uri-url-rest/pom.xml‎

Lines changed: 0 additions & 32 deletions
This file was deleted.

‎spring-rest/difference-uri-url-rest/src/main/java/com/baeldung/springboot/rest/Greeting.java‎

Lines changed: 0 additions & 21 deletions
This file was deleted.

‎spring-rest/difference-uri-url-rest/src/main/java/com/baeldung/springboot/rest/GreetingController.java‎

Lines changed: 0 additions & 21 deletions
This file was deleted.

‎spring-rest/difference-uri-url-rest/src/main/java/com/baeldung/springboot/rest/SpringBootWebApplication.java‎

Lines changed: 0 additions & 27 deletions
This file was deleted.

‎spring-rest/difference-uri-url-rest/src/main/java/com/baeldung/springboot/rest/client/ApplicationClient.java‎

Lines changed: 0 additions & 27 deletions
This file was deleted.

‎spring-rest/difference-uri-url-rest/src/main/java/com/baeldung/springboot/rest/client/Greeting.java‎

Lines changed: 0 additions & 33 deletions
This file was deleted.

‎spring-rest/difference-uri-url-rest/src/test/java/com/baeldung/springboot/rest/test/DifferenceURIURLRESTTest.java‎

Lines changed: 0 additions & 32 deletions
This file was deleted.

‎spring-rest/src/main/java/com/baeldung/produceimage/controller/DataProducerController.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class DataProducerController {
1717
return "Hello world";
1818
}
1919

20-
@GetMapping(value = "/get-image")
20+
@GetMapping("/get-image")
2121
public @ResponseBody byte[] getImage() throws IOException {
2222
final InputStream in = getClass().getResourceAsStream("/com/baeldung/produceimage/image.jpg");
2323
return IOUtils.toByteArray(in);

‎spring-rest/src/main/java/com/baeldung/web/log/app/Application.java‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@ public class Application extends SpringBootServletInitializer {
1414
public static void main(final String[] args) {
1515
SpringApplication.run(Application.class, args);
1616
}
17-
1817
}

‎spring-rest/src/main/java/com/baeldung/web/log/app/TaxiFareRequestInterceptor.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
@Component
1515
public class TaxiFareRequestInterceptor extends HandlerInterceptorAdapter {
1616

17-
Logger LOGGER = LoggerFactory.getLogger(TaxiFareRequestInterceptor.class);
17+
private final static Logger LOGGER = LoggerFactory.getLogger(TaxiFareRequestInterceptor.class);
1818

1919
@Override
2020
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
21-
String postData = null;
21+
String postData;
2222
HttpServletRequest requestCacheWrapperObject = null;
2323
try {
2424
// Uncomment to produce the stream closed issue

0 commit comments

Comments
 (0)