Skip to content

Commit 22a7ad1

Browse files
vjkoskelaBrandonArp
authored andcommitted
Upgrades to stablize tests and fixes based on the upgrades. (#59)
1 parent cf83d3d commit 22a7ad1

File tree

18 files changed

+35
-41
lines changed

18 files changed

+35
-41
lines changed

.jdkw

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
JDKW_VERSION=8u112
2-
JDKW_BUILD=b15
1+
JDKW_VERSION=8u121
2+
JDKW_BUILD=b13
3+
JDKW_TOKEN=e9e7ea248e2c4826b92b3f075a80e441

pom.xml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<parent>
1919
<groupId>com.arpnetworking.build</groupId>
2020
<artifactId>arpnetworking-parent-pom</artifactId>
21-
<version>1.0.29</version>
21+
<version>1.0.30</version>
2222
<relativePath />
2323
</parent>
2424

@@ -83,7 +83,7 @@
8383
<commons.io.version>2.4</commons.io.version>
8484
<commons.math3.version>3.3</commons.math3.version>
8585
<findbugs.annotations.version>3.0.1</findbugs.annotations.version>
86-
<guava.version>18.0</guava.version>
86+
<guava.version>21.0</guava.version>
8787
<guice.version>4.0</guice.version>
8888
<hamcrest.version>2.0.0.0</hamcrest.version>
8989
<jackson.version>2.7.3</jackson.version>
@@ -435,6 +435,13 @@
435435
<artifactId>guava</artifactId>
436436
<version>${guava.version}</version>
437437
</dependency>
438+
<dependency>
439+
<!-- Temporary: see https://github.com/google/guava/issues/2721 -->
440+
<groupId>com.google.errorprone</groupId>
441+
<artifactId>error_prone_annotations</artifactId>
442+
<version>2.0.15</version>
443+
<scope>provided</scope>
444+
</dependency>
438445
<dependency>
439446
<groupId>com.google.inject</groupId>
440447
<artifactId>guice</artifactId>

src/main/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM openjdk:8u111-jre-alpine
15+
FROM openjdk:8u121-jre-alpine
1616

1717
MAINTAINER arpnetworking
1818

src/main/java/com/arpnetworking/configuration/jackson/HoconFileSource.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import com.arpnetworking.steno.Logger;
2121
import com.arpnetworking.steno.LoggerFactory;
2222
import com.fasterxml.jackson.databind.JsonNode;
23-
import com.google.common.base.Throwables;
2423
import com.typesafe.config.Config;
2524
import com.typesafe.config.ConfigFactory;
2625
import com.typesafe.config.ConfigRenderOptions;
@@ -73,7 +72,7 @@ private HoconFileSource(final Builder builder) {
7372
final String hoconAsJson = config.resolve().root().render(ConfigRenderOptions.concise());
7473
jsonNode = _objectMapper.readTree(hoconAsJson);
7574
} catch (final IOException e) {
76-
throw Throwables.propagate(e);
75+
throw new RuntimeException(e);
7776
}
7877
} else if (builder._file.exists()) {
7978
LOGGER.warn()

src/main/java/com/arpnetworking/configuration/jackson/JsonNodeFileSource.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import com.arpnetworking.steno.Logger;
2121
import com.arpnetworking.steno.LoggerFactory;
2222
import com.fasterxml.jackson.databind.JsonNode;
23-
import com.google.common.base.Throwables;
2423
import net.sf.oval.constraint.NotNull;
2524

2625
import java.io.File;
@@ -62,7 +61,7 @@ private JsonNodeFileSource(final Builder builder) {
6261
try {
6362
jsonNode = _objectMapper.readTree(_file);
6463
} catch (final IOException e) {
65-
throw Throwables.propagate(e);
64+
throw new RuntimeException(e);
6665
}
6766
} else if (builder._file.exists()) {
6867
LOGGER.warn()

src/main/java/com/arpnetworking/configuration/jackson/JsonNodeLiteralSource.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import com.arpnetworking.logback.annotations.LogValue;
1919
import com.arpnetworking.steno.LogValueMapFactory;
2020
import com.fasterxml.jackson.databind.JsonNode;
21-
import com.google.common.base.Throwables;
2221
import net.sf.oval.constraint.NotNull;
2322

2423
import java.io.IOException;
@@ -58,7 +57,7 @@ private JsonNodeLiteralSource(final Builder builder) {
5857
try {
5958
jsonNode = _objectMapper.readTree(_source);
6059
} catch (final IOException e) {
61-
throw Throwables.propagate(e);
60+
throw new RuntimeException(e);
6261
}
6362
_jsonNode = Optional.ofNullable(jsonNode);
6463
}

src/main/java/com/arpnetworking/configuration/jackson/JsonNodePaginatedUriSource.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import com.arpnetworking.steno.Logger;
2121
import com.arpnetworking.steno.LoggerFactory;
2222
import com.fasterxml.jackson.databind.JsonNode;
23-
import com.google.common.base.Throwables;
2423
import net.sf.oval.constraint.NotEmpty;
2524
import net.sf.oval.constraint.NotNull;
2625
import org.apache.http.client.utils.URIBuilder;
@@ -97,7 +96,7 @@ private JsonNodePaginatedUriSource(final Builder builder) {
9796
}
9897
}
9998
} catch (final URISyntaxException e) {
100-
throw Throwables.propagate(e);
99+
throw new RuntimeException(e);
101100
}
102101

103102
_mergingSource = mergingSourceBuilder.build();

src/main/java/com/arpnetworking/configuration/jackson/JsonNodeUriSource.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import com.arpnetworking.logback.annotations.LogValue;
1919
import com.arpnetworking.steno.LogValueMapFactory;
2020
import com.fasterxml.jackson.databind.JsonNode;
21-
import com.google.common.base.Throwables;
2221
import net.sf.oval.constraint.NotNull;
2322
import org.apache.http.Header;
2423
import org.apache.http.HttpResponse;
@@ -83,7 +82,7 @@ private JsonNodeUriSource(final Builder builder) {
8382
final HttpResponse response = CLIENT.execute(request);
8483
jsonNode = _objectMapper.readTree(response.getEntity().getContent());
8584
} catch (final IOException e) {
86-
throw Throwables.propagate(e);
85+
throw new RuntimeException(e);
8786
} finally {
8887
if (request != null) {
8988
request.releaseConnection();

src/main/java/com/arpnetworking/configuration/triggers/FileTrigger.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import com.arpnetworking.steno.LogValueMapFactory;
2222
import com.arpnetworking.steno.Logger;
2323
import com.arpnetworking.steno.LoggerFactory;
24-
import com.google.common.base.Throwables;
2524
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
2625
import net.sf.oval.constraint.NotNull;
2726

@@ -128,7 +127,7 @@ private FileTrigger(final Builder builder) {
128127
try {
129128
_md5 = MessageDigest.getInstance("MD5");
130129
} catch (final NoSuchAlgorithmException e) {
131-
throw Throwables.propagate(e);
130+
throw new RuntimeException(e);
132131
}
133132
}
134133

src/main/java/com/arpnetworking/metrics/common/tailer/FilePositionStore.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import com.fasterxml.jackson.annotation.JsonIgnore;
2525
import com.fasterxml.jackson.core.type.TypeReference;
2626
import com.fasterxml.jackson.databind.ObjectMapper;
27-
import com.google.common.base.Throwables;
2827
import com.google.common.collect.Maps;
2928
import net.sf.oval.constraint.Min;
3029
import net.sf.oval.constraint.NotNull;
@@ -141,7 +140,7 @@ private void flush() {
141140
.addData("file", _file)
142141
.log();
143142
} catch (final IOException ioe) {
144-
throw Throwables.propagate(ioe);
143+
throw new RuntimeException(ioe);
145144
} finally {
146145
_lastFlush = now;
147146
}

0 commit comments

Comments
 (0)