Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

Commit

Permalink
checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
A-Little-Excited committed Apr 22, 2024
1 parent 2c8e9bf commit 64a7619
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@
public class MetaConfig {

@Value("${spring.datasource.username}")
private String USERNAME;
private static String USERNAME;
@Value("${spring.datasource.password}")
private String PASSWORD;
private static String PASSWORD;
@Value("${spring.datasource.url}")
private String URL;
private static String URL;
@Value("${spring.datasource.driver-class-name}")
private String DRIVER_CLASS_NAME;
private static String DRIVER_CLASS_NAME;

@Bean
public JsonDocumentParser jsonDocumentParser() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public class FileController {
public Map<String, String> uploadFile(@NotNull final MultipartFile file) {
Objects.requireNonNull(file);

Map<String, Object> fieldMap = new HashMap<>();
final Map<String, Object> fieldMap = new HashMap<>();
fieldMap.put(MetaData.FILE_NAME, file.getName());
fieldMap.put(MetaData.FILE_TYPE, file.getContentType());

Expand All @@ -84,7 +84,7 @@ public Map<String, String> uploadFile(@NotNull final MultipartFile file) {
}

@GetMapping(value = "/download", produces = MediaType.APPLICATION_OCTET_STREAM_VALUE)
public InputStream downloadFile(@NotNull final String fileId, HttpServletResponse response) {
public InputStream downloadFile(@NotNull final String fileId, @NotNull final HttpServletResponse response) {
Objects.requireNonNull(fileId);

response.setHeader(
Expand Down

0 comments on commit 64a7619

Please sign in to comment.