Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 9acc87ab authored by Pawel GUTOWSKI's avatar Pawel GUTOWSKI
Browse files

EDELIVERY-3184 minor refactoring

parent 95c85506
No related branches found
No related tags found
No related merge requests found
......@@ -61,16 +61,16 @@ public class Identifiers {
}
public static String asUrlEncodedString(ParticipantIdentifierType participantId) {
try {
return URLEncoder.encode(asString(participantId), UTF_8.name());
} catch (UnsupportedEncodingException e) {
throw new IllegalStateException(e);
}
return urlEncode(asString(participantId));
}
public static String asUrlEncodedString(DocumentIdentifier docId) {
return urlEncode(asString(docId));
}
private static String urlEncode(String s) {
try {
return URLEncoder.encode(asString(docId), UTF_8.name());
return URLEncoder.encode(s, UTF_8.name());
} catch (UnsupportedEncodingException e) {
throw new IllegalStateException(e);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment