diff options
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") |