Skip to content

Commit

Permalink
Enable ErrorProne JavaTimeDefaultTimeZone
Browse files Browse the repository at this point in the history
  • Loading branch information
ebyhr committed Oct 2, 2024
1 parent b1dc5a7 commit a8f9783
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
@Path("/webapp")
public class GatewayWebAppResource
{
private static final LocalDateTime START_TIME = LocalDateTime.now();
private static final LocalDateTime START_TIME = LocalDateTime.now(ZoneId.systemDefault());
private static final DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSSXXX");
private final GatewayBackendManager gatewayBackendManager;
private final QueryHistoryManager queryHistoryManager;
Expand Down
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
-Xep:DefaultCharset:ERROR \
-Xep:EqualsGetClass:OFF \
-Xep:InvalidThrows:ERROR \
-Xep:JavaTimeDefaultTimeZone:ERROR \
-Xep:MissingOverride:ERROR \
-Xep:StringCaseLocaleUsage:ERROR \
-Xep:UnnecessaryParentheses:ERROR \
Expand Down

0 comments on commit a8f9783

Please sign in to comment.