- Update dependencies.

- Code polishing.
This commit is contained in:
Lampros Smyrnaios 2023-07-05 13:16:48 +03:00
parent eb42185991
commit 3cb8e7a5f6
2 changed files with 10 additions and 10 deletions

17
pom.xml
View File

@ -6,7 +6,7 @@
<parent> <parent>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId> <artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.12</version> <version>2.7.13</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
@ -16,7 +16,7 @@
<packaging>jar</packaging> <packaging>jar</packaging>
<properties> <properties>
<spring.boot.version>2.7.12</spring.boot.version> <spring.boot.version>2.7.13</spring.boot.version>
</properties> </properties>
<dependencies> <dependencies>
@ -159,7 +159,7 @@
<dependency> <dependency>
<groupId>commons-io</groupId> <groupId>commons-io</groupId>
<artifactId>commons-io</artifactId> <artifactId>commons-io</artifactId>
<version>2.12.0</version> <version>2.13.0</version>
</dependency> </dependency>
<dependency> <dependency>
@ -175,10 +175,11 @@
<version>2.7.3</version> <version>2.7.3</version>
</dependency> </dependency>
<!-- https://mvnrepository.com/artifact/org.glassfish.jersey.core/jersey-client -->
<dependency> <dependency>
<groupId>com.sun.jersey</groupId> <groupId>org.glassfish.jersey.core</groupId>
<artifactId>jersey-client</artifactId> <artifactId>jersey-client</artifactId>
<version>1.19.4</version> <version>2.40</version>
</dependency> </dependency>
@ -192,7 +193,7 @@
<dependency> <dependency>
<groupId>org.json</groupId> <groupId>org.json</groupId>
<artifactId>json</artifactId> <artifactId>json</artifactId>
<version>20230227</version> <version>20230618</version>
</dependency> </dependency>
<dependency> <dependency>
@ -244,7 +245,7 @@
<dependency> <dependency>
<groupId>org.springframework.session</groupId> <groupId>org.springframework.session</groupId>
<artifactId>spring-session-data-redis</artifactId> <artifactId>spring-session-data-redis</artifactId>
<version>2.7.1</version> <version>2.7.2</version>
</dependency> </dependency>
<!-- https://mvnrepository.com/artifact/redis.clients/jedis --> <!-- https://mvnrepository.com/artifact/redis.clients/jedis -->
@ -327,7 +328,7 @@
<dependency> <dependency>
<groupId>org.springframework.session</groupId> <groupId>org.springframework.session</groupId>
<artifactId>spring-session-bom</artifactId> <artifactId>spring-session-bom</artifactId>
<version>2021.2.1</version> <version>2021.2.2</version>
<type>pom</type> <type>pom</type>
<scope>import</scope> <scope>import</scope>
</dependency> </dependency>

View File

@ -70,7 +70,7 @@ public class SushiliteR5ServiceImpl implements SushiliteR5Service {
uri, uri,
HttpMethod.GET, HttpMethod.GET,
null, null,
new ParameterizedTypeReference<Object>() {}); new ParameterizedTypeReference<Object>() {}); // THis "Object" must be a valid json-object.
} catch (RestClientException rce) { } catch (RestClientException rce) {
String errorMsg = "Failed to get a response from sushiliteR5!"; String errorMsg = "Failed to get a response from sushiliteR5!";
String message = rce.getMessage(); String message = rce.getMessage();
@ -92,7 +92,6 @@ public class SushiliteR5ServiceImpl implements SushiliteR5Service {
logger.error("The \"reportResponseWrapper\" for sushi was null!"); logger.error("The \"reportResponseWrapper\" for sushi was null!");
return ResponseEntity.internalServerError().build(); return ResponseEntity.internalServerError().build();
} }
logger.trace(reportResult.toString()); logger.trace(reportResult.toString());
return ResponseEntity.ok(reportResult); return ResponseEntity.ok(reportResult);