February 21, 2024
0.8.2
(fix):
File upload endpoints no longer fail to compile because the reference to
the mime type variable is present.
(fix):
File upload endpoints no longer fail to compile because the reference to
the mime type variable is present.
1 // Code that failed to compile 2 String fileMimeType = Files.probeContentType(file.toPath()); 3 MediaType fileMediaType = fileMimeType != null ? MediaType.parse(mimeType) : null; // mimeType undefined 4 // Code that now compiles 5 MediaType fileMediaType = fileMimeType != null ? MediaType.parse(fileMimeType) : null;