Skip to content

Commit 9e4ec9f

Browse files
committed
refactor(ParticipantUrl): extract exposeUrlsToView() method.
Addressed to #927 No functional changes.
1 parent da04e87 commit 9e4ec9f

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/main/java/ru/mystamps/web/Url.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@ public static Map<String, String> asMap(boolean production) {
122122
CategoryUrl.exposeUrlsToView(map);
123123
CountryUrl.exposeUrlsToView(map);
124124
CollectionUrl.exposeUrlsToView(map);
125+
ParticipantUrl.exposeUrlsToView(map);
125126

126127
map.put("ADD_IMAGE_SERIES_PAGE", ADD_IMAGE_SERIES_PAGE);
127-
map.put("ADD_PARTICIPANT_PAGE", ParticipantUrl.ADD_PARTICIPANT_PAGE);
128128
map.put("ADD_SERIES_ASK_PAGE", ADD_SERIES_ASK_PAGE);
129129
map.put("ADD_SERIES_PAGE", ADD_SERIES_PAGE);
130130
map.put("BOOTSTRAP_LANGUAGE", BOOTSTRAP_LANGUAGE);

src/main/java/ru/mystamps/web/feature/participant/ParticipantUrl.java

+6
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
*/
1818
package ru.mystamps.web.feature.participant;
1919

20+
import java.util.Map;
21+
2022
/**
2123
* Participant-related URLs.
2224
*
@@ -31,4 +33,8 @@ public final class ParticipantUrl {
3133
private ParticipantUrl() {
3234
}
3335

36+
public static void exposeUrlsToView(Map<String, String> urls) {
37+
urls.put("ADD_PARTICIPANT_PAGE", ADD_PARTICIPANT_PAGE);
38+
}
39+
3440
}

0 commit comments

Comments
 (0)