Skip to content

Commit aea2026

Browse files
committed
fix spacing issues
1 parent da559d6 commit aea2026

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/main/java/com/opentok/OpenTok.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ public Session createSession(SessionProperties properties) throws OpenTokExcepti
284284
return new Session(readXml(xpathQuery, xmlResponse), apiKey, apiSecret);
285285
}
286286
} catch (XPathExpressionException e) {
287-
throw new OpenTokException("Cannot create session. Could not read the response: "+xmlResponse);
287+
throw new OpenTokException("Cannot create session. Could not read the response: " + xmlResponse);
288288
}
289289
}
290290

src/main/java/com/opentok/SessionProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public static class Builder {
3232

3333
public Builder location(String location) throws InvalidArgumentException {
3434
if (!InetAddressValidator.getInstance().isValidInet4Address(location)) {
35-
throw new InvalidArgumentException("Location must be a valid IPv4 address. location="+location);
35+
throw new InvalidArgumentException("Location must be a valid IPv4 address. location = " + location);
3636
}
3737
this.location = location;
3838
return this;

src/main/java/com/opentok/TokenOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public Builder data(String data) throws InvalidArgumentException {
5454
this.data = data;
5555
} else {
5656
throw new InvalidArgumentException(
57-
"The given connection data is too long, limit is 1000 characters: "+data.length());
57+
"The given connection data is too long, limit is 1000 characters: " + data.length());
5858
}
5959
return this;
6060
}

src/main/java/com/opentok/util/HttpClient.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public String createSession(Map<String, Collection<String>> params) {
6262
public String getArchive(String archiveId) {
6363
String responseString = null;
6464
Future<Response> request = null;
65-
String url = this.apiUrl+"/v2/partner/"+this.apiKey+"/archive/"+archiveId;
65+
String url = this.apiUrl + "/v2/partner/" + this.apiKey + "/archive/" + archiveId;
6666

6767
try {
6868
request = this.prepareGet(url).execute();
@@ -93,7 +93,7 @@ public String getArchives(int offset, int count) {
9393
String responseString = null;
9494
Future<Response> request = null;
9595
// TODO: maybe use a StringBuilder?
96-
String url = this.apiUrl+"/v2/partner/"+this.apiKey+"/archive";
96+
String url = this.apiUrl + "/v2/partner/" + this.apiKey + "/archive";
9797
if (offset != 0 || count != 1000) {
9898
url += "?";
9999
if (offset != 0) {
@@ -134,7 +134,7 @@ public String startArchive(String sessionId, String name) {
134134
Future<Response> request = null;
135135
String requestBody = null;
136136
// TODO: maybe use a StringBuilder?
137-
String url = this.apiUrl+"/v2/partner/"+this.apiKey+"/archive";
137+
String url = this.apiUrl + "/v2/partner/" + this.apiKey + "/archive";
138138

139139
ObjectMapper mapper = new ObjectMapper();
140140
HashMap<String, String> jsonBody = new HashMap<String, String>();
@@ -179,7 +179,7 @@ public String stopArchive(String archiveId) {
179179
String responseString = null;
180180
Future<Response> request = null;
181181
// TODO: maybe use a StringBuilder?
182-
String url = this.apiUrl+"/v2/partner/"+this.apiKey+"/archive/stop";
182+
String url = this.apiUrl + "/v2/partner/" + this.apiKey + "/archive/stop";
183183

184184
try {
185185
request = this.preparePost(url).execute();
@@ -208,7 +208,7 @@ public String stopArchive(String archiveId) {
208208
public String deleteArchive(String archiveId) {
209209
String responseString = null;
210210
Future<Response> request = null;
211-
String url = this.apiUrl+"/v2/partner/"+this.apiKey+"/archive/"+archiveId;
211+
String url = this.apiUrl + "/v2/partner/" + this.apiKey + "/archive/" + archiveId;
212212

213213
try {
214214
request = this.prepareDelete(url).execute();

0 commit comments

Comments
 (0)