Уменьшение колва строк

This commit is contained in:
sasha0552 2019-04-10 03:59:48 +06:00
parent 20158a3942
commit 8b6359255a

View file

@ -51,14 +51,7 @@ protected String updAccessToken(final String accessToken, final String username)
final String encodedUsername = IOHelper.urlEncode(Objects.toString(username));
final String encodedAccessToken = IOHelper.urlEncode(Objects.toString(accessToken));
final URL formattedUrl = new URL(
CommonHelper.replace(url,
"type",
type,
"username",
encodedUsername,
"uuid",
encodedAccessToken));
CommonHelper.replace(url, "type", type, "username", encodedUsername, "uuid", encodedAccessToken));
return IOHelper.request(formattedUrl);
}
@ -67,14 +60,7 @@ protected String updServerID(final UUID uuid, final String serverID) throws IOEx
final String encodedUUID = IOHelper.urlEncode(Objects.toString(uuid));
final String encodedID = IOHelper.urlEncode(serverID);
final URL formattedUrl = new URL(
CommonHelper.replace(url,
"type",
type,
"uuid",
encodedUUID,
"ServerID",
encodedID));
CommonHelper.replace(url, "type", type, "uuid", encodedUUID, "ServerID", encodedID));
return IOHelper.request(formattedUrl);
}
@ -83,14 +69,7 @@ protected String updUUID(final UUID uuid, final String username) throws IOExcept
final String encodedUsername = IOHelper.urlEncode(Objects.toString(username));
final String encodedUUID = IOHelper.urlEncode(Objects.toString(uuid));
final URL formattedUrl = new URL(
CommonHelper.replace(url,
"type",
type,
"username",
encodedUsername,
"uuid",
encodedUUID));
CommonHelper.replace(url, "type", type, "username", encodedUsername, "uuid", encodedUUID));
return IOHelper.request(formattedUrl);
}