Skip to content

Commit 74e9371

Browse files
committed
Wait, fix some typos before 1.0.9
1 parent 810951c commit 74e9371

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

src/main/java/com/algorithmia/client/HttpClientHelpers.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import com.google.gson.reflect.TypeToken;
3232

3333
import static com.algorithmia.algo.Algorithm.AlgorithmOutputType;
34+
3435
/**
3536
* Various HTTP actions, using our HttpClient class, and automatically adding authorization
3637
*/
@@ -95,15 +96,15 @@ public AlgoResponseHandler(AlgorithmOutputType outputType) {
9596
@Override
9697
protected AlgoResponse buildResult(HttpContext context) throws APIException {
9798
if (outputType.equals(AlgorithmOutputType.RAW)) {
98-
return parseRawOutpout(response);
99+
return parseRawOutput(response);
99100
} else {
100101
JsonElement json = parseResponseJson(response);
101102
return jsonToAlgoResponse(json, outputType);
102103
}
103104
}
104105
}
105106

106-
public static AlgoResponse parseRawOutpout(HttpResponse response) throws APIException {
107+
private static AlgoResponse parseRawOutput(HttpResponse response) throws APIException {
107108
throwIfNotOk(response);
108109
try {
109110
final HttpEntity entity = response.getEntity();
@@ -126,7 +127,7 @@ public static AlgoResponse jsonToAlgoResponse(JsonElement json, AlgorithmOutputT
126127
stacktrace = error.get("stacktrace").getAsString();
127128
}
128129
return new AlgoFailure(new AlgorithmException(msg, null, stacktrace));
129-
} else if (AlgorithmOutputType.DEFAULT.equals(outputType)){
130+
} else if (AlgorithmOutputType.DEFAULT.equals(outputType)) {
130131
JsonObject metaJson = obj.getAsJsonObject("metadata");
131132
Double duration = metaJson.get("duration").getAsDouble();
132133
com.algorithmia.algo.ContentType contentType = com.algorithmia.algo.ContentType.fromString(metaJson.get("content_type").getAsString());

src/main/java/com/algorithmia/data/DataObject.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ public boolean isDirectory() {
5757
*/
5858
public String getUrl() {
5959
try {
60-
return AlgorithmiaConf.apiAddress() + "/v1/data/" + URLEncoder.encode(path, "UTF-8");
60+
return AlgorithmiaConf.apiAddress() + "/v1/data/" + URLEncoder.encode(path, "UTF-8");
6161
} catch (UnsupportedEncodingException e) {
62-
throw new RuntimeException(e);
62+
throw new RuntimeException(e);
6363
}
6464
}
6565

0 commit comments

Comments
 (0)