Wrap ternary operator within parentheses

See gh-31076
This commit is contained in:
70825
2023-08-19 15:35:33 +09:00
committed by Stephane Nicoll
parent a55b50b512
commit 6712c044b1
4 changed files with 7 additions and 7 deletions

View File

@@ -76,7 +76,7 @@ public class ResourceDecoder extends AbstractDataBufferDecoder<Resource> {
}
Class<?> clazz = elementType.toClass();
String filename = hints != null ? (String) hints.get(FILENAME_HINT) : null;
String filename = (hints != null ? (String) hints.get(FILENAME_HINT) : null);
if (clazz == InputStreamResource.class) {
return new InputStreamResource(new ByteArrayInputStream(bytes)) {
@Override