Skip to content

Commit aa9dceb

Browse files
committed
fix(registry): keep url registry http helpers package private
1 parent 9e83930 commit aa9dceb

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

‎src/main/java/io/github/intisy/docker/registry/UrlRegistryHttp.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ private String tokenFor(String url) {
5151
* @implNote derives the pull scope from the request path, so that one client can walk several
5252
* repositories without the caller tracking tokens.
5353
*/
54-
public static String scopeFor(String url) {
54+
static String scopeFor(String url) {
5555
int v2 = url.indexOf("/v2/");
5656
if (v2 < 0) {
5757
return "";
@@ -88,7 +88,7 @@ private String fetchToken(AuthChallenge challenge, String scope) throws IOExcept
8888
* @implNote a two-field read rather than a gson dependency at this layer, so the transport
8989
* stays free of any model. The token document has exactly one field this needs.
9090
*/
91-
public static String jsonStringField(String json, String field) {
91+
static String jsonStringField(String json, String field) {
9292
String needle = "\"" + field + "\"";
9393
int at = json.indexOf(needle);
9494
if (at < 0) {

src/test/java/io/github/intisy/docker/unit/UrlRegistryHttpTest.java renamed to src/test/java/io/github/intisy/docker/registry/UrlRegistryHttpTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
package io.github.intisy.docker.unit;
1+
package io.github.intisy.docker.registry;
22

3-
import io.github.intisy.docker.registry.UrlRegistryHttp;
43
import org.junit.jupiter.api.Tag;
54
import org.junit.jupiter.api.Test;
65

0 commit comments

Comments
 (0)