Skip to content

Commit dd12890

Browse files
committed
Removed redundant Exception throwing
1 parent aae2fed commit dd12890

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/org/aarboard/nextcloud/api/provisioning/QuotaDeserializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
public class QuotaDeserializer extends JsonDeserializer<Optional<Long>> {
1313

1414
@Override
15-
public Optional<Long> deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {
15+
public Optional<Long> deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException {
1616
Long result = null;
1717
String quota = jsonParser.getValueAsString();
1818
if (NumberUtils.isCreatable(quota)) {

src/main/java/org/aarboard/nextcloud/api/utils/ConnectorCommon.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ private URI buildUrl(String subPath, List<NameValuePair> queryParams, boolean us
150150
}
151151
}
152152

153-
private <R> CompletableFuture<R> executeRequest(final ResponseParser<R> parser, HttpRequestBase request) throws IOException, ClientProtocolException {
153+
private <R> CompletableFuture<R> executeRequest(final ResponseParser<R> parser, HttpRequestBase request) throws IOException {
154154
// https://docs.nextcloud.com/server/14/developer_manual/core/ocs-share-api.html
155155
request.addHeader("OCS-APIRequest", "true");
156156
request.addHeader("Content-Type", "application/x-www-form-urlencoded");

0 commit comments

Comments
 (0)