aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/www/api/activity/helpers
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-12-21 01:18:05 +0300
committerGravatar Vitaly Takmazov2022-12-21 02:00:31 +0300
commita740c0e1d4e9f89ef7decfe4225e53555121f93b (patch)
tree4a28bcdffc0c4ede163dd4a03a29ab4984fb39a3 /src/main/java/com/juick/www/api/activity/helpers
parent79d1eeadf3cda6790e33c18e669cd8b8c3f12196 (diff)
Switch from `lombok` to Java 17 `record`
Diffstat (limited to 'src/main/java/com/juick/www/api/activity/helpers')
-rw-r--r--src/main/java/com/juick/www/api/activity/helpers/ProfileUriBuilder.java10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/main/java/com/juick/www/api/activity/helpers/ProfileUriBuilder.java b/src/main/java/com/juick/www/api/activity/helpers/ProfileUriBuilder.java
index 8f5e7566..e10c3078 100644
--- a/src/main/java/com/juick/www/api/activity/helpers/ProfileUriBuilder.java
+++ b/src/main/java/com/juick/www/api/activity/helpers/ProfileUriBuilder.java
@@ -20,18 +20,10 @@ package com.juick.www.api.activity.helpers;
import com.juick.model.Message;
import com.juick.model.Tag;
import com.juick.model.User;
-import lombok.AllArgsConstructor;
import org.springframework.web.util.UriComponents;
import org.springframework.web.util.UriComponentsBuilder;
-@AllArgsConstructor
-public class ProfileUriBuilder {
- private String baseUri;
-
- public String getBaseUri() {
- return baseUri;
- }
-
+public record ProfileUriBuilder(String baseUri) {
public String inboxUri() {
UriComponentsBuilder uri = UriComponentsBuilder.fromUriString(baseUri);
return uri.replacePath("/api/inbox").toUriString();