Skip to content

Commit

Permalink
style: Upgrade google code format to 1.22 (supporting java 21 style)
Browse files Browse the repository at this point in the history
  • Loading branch information
JPPortier committed Jun 26, 2024
1 parent a9b3b84 commit 20d4505
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
9 changes: 2 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -316,14 +316,9 @@
<includes>
<include>**/*.java</include>
</includes>
<excludes>
<!-- java 21 style not yet supported -->
<exclude>sample-app/src/main/java/com/sinch/sample/webhooks/sms/SmsController.java</exclude>
<exclude>sample-app/src/main/java/com/sinch/sample/webhooks/verification/VerificationController.java</exclude>
<exclude>sample-app/src/main/java/com/sinch/sample/webhooks/voice/VoiceController.java</exclude>
</excludes>

<googleJavaFormat>
<version>1.18.1</version>
<version>1.22.0</version>
<style>GOOGLE</style>
<reflowLongStrings>true</reflowLongStrings>
</googleJavaFormat>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,4 @@ public void smsDeliveryEvent(
default -> throw new IllegalStateException("Unexpected value: " + event);
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ public VoiceController(SinchClient sinchClient, VoiceService service) {
value = "/VoiceEvent",
consumes = MediaType.APPLICATION_JSON_VALUE,
produces = MediaType.APPLICATION_JSON_VALUE)
public String VoiceEvent(
@RequestHeader Map<String, String> headers, @RequestBody String body) {
public String VoiceEvent(@RequestHeader Map<String, String> headers, @RequestBody String body) {

LOGGER.finest("Received body:" + body);
LOGGER.finest("Received headers: " + headers);
Expand Down

0 comments on commit 20d4505

Please sign in to comment.