diff options
author | Vitaly Takmazov | 2022-12-24 03:15:44 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2022-12-24 03:15:44 +0300 |
commit | 2a858017b7d9a620d1083b69b7ca038c34a5ba89 (patch) | |
tree | 3b192b9ab0aee2a38bbd3243a2977409ae6a033e /src/main/java/com/juick/www/controllers/Settings.java | |
parent | 54f27794e7fee1113115baafe1b86fdbcde8e7c2 (diff) |
`Collectors.toList()` -> `toList()`
Diffstat (limited to 'src/main/java/com/juick/www/controllers/Settings.java')
-rw-r--r-- | src/main/java/com/juick/www/controllers/Settings.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/www/controllers/Settings.java b/src/main/java/com/juick/www/controllers/Settings.java index 0b486766..b990bf41 100644 --- a/src/main/java/com/juick/www/controllers/Settings.java +++ b/src/main/java/com/juick/www/controllers/Settings.java @@ -107,7 +107,7 @@ public class Settings { model.addAttribute("emails", userService.getEmails(visitor)); model.addAttribute("jids", userService.getAllJIDs(visitor)); List<String> hours = IntStream.rangeClosed(0, 23).boxed() - .map(i -> StringUtils.leftPad(String.format("%d", i), 2, "0")).collect(Collectors.toList()); + .map(i -> StringUtils.leftPad(String.format("%d", i), 2, "0")).toList(); model.addAttribute("hours", hours); model.addAttribute("fbstatus", userService.getFbCrossPostStatus(visitor.getUid())); model.addAttribute("twitter_name", userService.getTwitterName(visitor.getUid())); |