Skip to content

Commit

Permalink
remove lombok due to issues with gradle/JDK10 projectlombok/lombok#1716
Browse files Browse the repository at this point in the history
  • Loading branch information
EugenMayer committed Sep 25, 2018
1 parent 5b6b657 commit 69bab8e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ dependencies {
compile 'org.springframework.boot:spring-boot-starter-web'
compile "io.springfox:springfox-swagger2:$swaggerVersion"
compile "io.springfox:springfox-swagger-ui:$swaggerVersion"
compileOnly 'org.projectlombok:lombok'
// disabling lombock due to https://github.com/rzwitserloot/lombok/issues/1716
//compileOnly 'org.projectlombok:lombok'
providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'
testCompile 'org.springframework.boot:spring-boot-starter-test'
// including 5.1.0 for now since 5.0.9 has the "Illegal reflection warning" with Java 10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
@RestController
@RequestMapping("/conversion")
public class ConversionRestController {
//, produces = MediaType.APPLICATION_OCTET_STREAM_VALUE
// produces = MediaType.APPLICATION_OCTET_STREAM_VALUE

@Autowired
private ConverterService converterService;

@RequestMapping(path = "", method = RequestMethod.POST)
public ResponseEntity<?> convert(@RequestParam(name="format", defaultValue = "pdf") final String targetFormatExt, @RequestParam("data") final MultipartFile inputMultipartFile) throws IOException, OfficeException {
public ResponseEntity<?> convert(@RequestParam(name="format", defaultValue = "pdf") final String targetFormatExt, @RequestParam("file") final MultipartFile inputMultipartFile) throws IOException, OfficeException {
if (!converterService.validateFormat(targetFormatExt)) {
return ResponseEntity.status(HttpStatus.PRECONDITION_FAILED).build();
}
Expand Down

This file was deleted.

0 comments on commit 69bab8e

Please sign in to comment.