aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/www
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2020-10-08 16:46:05 +0300
committerGravatar Vitaly Takmazov2020-10-08 16:46:05 +0300
commit21439c3e0b7c7396ad859149bcbf2197ac6334e1 (patch)
tree07d6874956fec3c13cb34e4cfbd1cc391bd34cae /src/main/java/com/juick/www
parent7229f06e0bc5c61dc17cb539c7b54273b66b16b6 (diff)
Apply some IDEA suggestions
Diffstat (limited to 'src/main/java/com/juick/www')
-rw-r--r--src/main/java/com/juick/www/api/Post.java2
-rw-r--r--src/main/java/com/juick/www/api/Service.java2
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")