diff options
author | Vitaly Takmazov | 2020-10-08 16:46:05 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2020-10-08 16:46:05 +0300 |
commit | 21439c3e0b7c7396ad859149bcbf2197ac6334e1 (patch) | |
tree | 07d6874956fec3c13cb34e4cfbd1cc391bd34cae /src/main/java/com/juick/www/api | |
parent | 7229f06e0bc5c61dc17cb539c7b54273b66b16b6 (diff) |
Apply some IDEA suggestions
Diffstat (limited to 'src/main/java/com/juick/www/api')
-rw-r--r-- | src/main/java/com/juick/www/api/Post.java | 2 | ||||
-rw-r--r-- | src/main/java/com/juick/www/api/Service.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/juick/www/api/Post.java b/src/main/java/com/juick/www/api/Post.java index 886ae774..c94c7b30 100644 --- a/src/main/java/com/juick/www/api/Post.java +++ b/src/main/java/com/juick/www/api/Post.java @@ -155,7 +155,7 @@ public class Post { @PostMapping("/api/like") @ResponseStatus(value = HttpStatus.OK) - public Status doPostRecomm(@Visitor User visitor, @RequestParam Integer mid) throws Exception { + public Status doPostRecommendation(@Visitor User visitor, @RequestParam Integer mid) throws Exception { Optional<Message> message = messagesService.getMessage(mid); if (message.isEmpty()) { throw new HttpNotFoundException(); diff --git a/src/main/java/com/juick/www/api/Service.java b/src/main/java/com/juick/www/api/Service.java index cb385075..67e2fd01 100644 --- a/src/main/java/com/juick/www/api/Service.java +++ b/src/main/java/com/juick/www/api/Service.java @@ -83,7 +83,7 @@ public class Service { @Inject private ServerManager serverManager; - private Session session = Session.getDefaultInstance(new Properties()); + private final Session session = Session.getDefaultInstance(new Properties()); @ApiIgnore @PostMapping("/api/mail") |