Skip to content

Commit c454288

Browse files
committed
samples: javaformat on api-key sample
Signed-off-by: Daniel Garnier-Moiroux <[email protected]>
1 parent 6dc11c5 commit c454288

File tree

1 file changed

+5
-5
lines changed
  • samples/sample-mcp-server-api-key/src/main/java/org/springaicommunity/mcp/security/sample/server/apikey

1 file changed

+5
-5
lines changed

samples/sample-mcp-server-api-key/src/main/java/org/springaicommunity/mcp/security/sample/server/apikey/WeatherService.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ public record Current(LocalDateTime time, int interval, double temperature_2m) {
5050
public WeatherResponse getTemperature(@ToolParam(description = "The location latitude") double latitude,
5151
@ToolParam(description = "The location longitude") double longitude) {
5252

53-
return restClient.get()
54-
.uri("https://api.open-meteo.com/v1/forecast?latitude={latitude}&longitude={longitude}&current=temperature_2m",
55-
latitude, longitude)
56-
.retrieve()
57-
.body(WeatherResponse.class);
53+
return restClient.get()
54+
.uri("https://api.open-meteo.com/v1/forecast?latitude={latitude}&longitude={longitude}&current=temperature_2m",
55+
latitude, longitude)
56+
.retrieve()
57+
.body(WeatherResponse.class);
5858

5959
}
6060

0 commit comments

Comments
 (0)