Skip to content

Commit d2b14c4

Browse files
author
Ajay Kannan
committed
---
yaml --- r: 2511 b: refs/heads/update-datastore c: fc2ab10 h: refs/heads/master i: 2509: f879055 2507: c4bdf80 2503: fcfcefe 2495: 88f21ea
1 parent 834fbed commit d2b14c4

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/gh-pages: 4e0561bb4504bf647db669a14417b2b2c87ba45d
55
refs/heads/bigquery: 762fa5830e6c398c0396177e3e7fd243bd62cfc3
66
refs/heads/pubsub-alpha: 1a0e970f265af871e02274085b9662b3fe29058b
77
refs/heads/resource-manager: ebf4adc5ee835cd2086c4ac5b4e78d01a5a005a7
8-
refs/heads/update-datastore: a27282e2804617ea020614467ad9e59e9f7b9462
8+
refs/heads/update-datastore: fc2ab109391b3c3f7fd6caeeed71e27f2c0d4692
99
refs/tags/0.0.9: 22f1839238f66c39e67ed4dfdcd273b1ae2e8444
1010
refs/tags/v0.0.10: 207ebd2a3472fddee69fe1298eb90429e3306efd
1111
refs/tags/v0.0.11: ffbfba48a6426ff63c08ff2117e58681f251fbf2

branches/update-datastore/gcloud-java-datastore/src/main/java/com/google/gcloud/spi/DefaultDatastoreRpc.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@
4242
import org.json.JSONTokener;
4343

4444
import java.net.InetAddress;
45-
import java.net.MalformedURLException;
4645
import java.net.URL;
47-
import java.net.UnknownHostException;
4846
import java.util.HashMap;
4947
import java.util.Map;
5048

@@ -95,7 +93,7 @@ private static boolean isLocalHost(String host) {
9593
}
9694
InetAddress hostAddr = InetAddress.getByName(new URL(normalizedHost).getHost());
9795
return hostAddr.isAnyLocalAddress() || hostAddr.isLoopbackAddress();
98-
} catch (UnknownHostException | MalformedURLException e) {
96+
} catch (Exception e) {
9997
// ignore
10098
}
10199
}

0 commit comments

Comments
 (0)