Skip to content

Commit dffe4a6

Browse files
committed
Url.asMap(): improve the comments.
No code changes.
1 parent dfc7b23 commit dffe4a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ private Url() {
124124
}
125125

126126
public static Map<String, String> asMap(boolean serveContentFromSingleHost) {
127-
// There is not all urls but only those which used on views
127+
// Not all URLs are listed here but only those that are being used on views
128128
Map<String, String> map = new HashMap<>();
129129
map.put("PUBLIC_URL", PUBLIC_URL);
130130
map.put("AUTHENTICATION_PAGE", AUTHENTICATION_PAGE);
@@ -166,7 +166,7 @@ public static Map<String, String> asMap(boolean serveContentFromSingleHost) {
166166
map.put("SERIES_ADD_JS", SERIES_ADD_JS);
167167
map.put("COLLECTION_INFO_JS", COLLECTION_INFO_JS);
168168
} else {
169-
// Use separate domain for our own resources
169+
// Use a separate domain for our own resources
170170
map.put("GET_IMAGE_PAGE", STATIC_RESOURCES_URL + GET_IMAGE_PAGE);
171171
map.put("GET_IMAGE_PREVIEW_PAGE", STATIC_RESOURCES_URL + GET_IMAGE_PREVIEW_PAGE);
172172
map.put("FAVICON_ICO", STATIC_RESOURCES_URL + FAVICON_ICO);
@@ -175,7 +175,7 @@ public static Map<String, String> asMap(boolean serveContentFromSingleHost) {
175175
map.put("SERIES_ADD_JS", STATIC_RESOURCES_URL + SERIES_ADD_JS);
176176
map.put("COLLECTION_INFO_JS", STATIC_RESOURCES_URL + COLLECTION_INFO_JS);
177177

178-
// Use CDN for external resources like frameworks
178+
// Use CDN for the external resources like libraries
179179
map.put("BOOTSTRAP_CSS", BOOTSTRAP_CSS_CDN);
180180
map.put("BOOTSTRAP_JS", BOOTSTRAP_JS_CDN);
181181
map.put("JQUERY_JS", JQUERY_JS_CDN);

0 commit comments

Comments
 (0)