Skip to content

Commit 7db1daf

Browse files
committed
Use expression lambda rather than statement expression
1 parent 6205225 commit 7db1daf

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

core/src/main/java/org/mapfish/print/map/style/json/MapfishStyleParserPlugin.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -452,12 +452,11 @@ public Optional<Style> parseStyle(
452452
return ParserPluginUtils.loadStyleAsURI(
453453
clientHttpRequestFactory,
454454
styleString,
455-
(final byte[] input) -> {
456-
return tryParse(
457-
configuration,
458-
new String(input, Constants.DEFAULT_CHARSET),
459-
clientHttpRequestFactory);
460-
});
455+
(final byte[] input) ->
456+
tryParse(
457+
configuration,
458+
new String(input, Constants.DEFAULT_CHARSET),
459+
clientHttpRequestFactory));
461460
}
462461

463462
private Optional<Style> tryParse(

0 commit comments

Comments
 (0)