Skip to content

Commit 3a47faa

Browse files
Bump com.google.guava:guava from 33.3.0-jre to 33.4.8-jre (#785)
* Bump com.google.guava:guava from 33.3.0-jre to 33.4.8-jre Bumps [com.google.guava:guava](https://github.com/google/guava) from 33.3.0-jre to 33.4.8-jre. - [Release notes](https://github.com/google/guava/releases) - [Commits](https://github.com/google/guava/commits) --- updated-dependencies: - dependency-name: com.google.guava:guava dependency-version: 33.4.8-jre dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * fix Charsets deprecation --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Brandon Arp <[email protected]>
1 parent ab0baf4 commit 3a47faa

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

app/models/view/VersionInfo.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
import com.arpnetworking.commons.jackson.databind.ObjectMapperFactory;
2020
import com.arpnetworking.steno.Logger;
2121
import com.arpnetworking.steno.LoggerFactory;
22-
import com.google.common.base.Charsets;
2322
import com.google.common.io.Resources;
2423
import net.sf.oval.constraint.NotEmpty;
2524
import net.sf.oval.constraint.NotNull;
2625

2726
import java.io.IOException;
27+
import java.nio.charset.StandardCharsets;
2828

2929
/**
3030
* Represents the model for the version of the service currently running.
@@ -67,7 +67,7 @@ private VersionInfo(final Builder builder) {
6767
try {
6868
versionInfo =
6969
ObjectMapperFactory.getInstance().readValue(
70-
Resources.toString(Resources.getResource("version.json"), Charsets.UTF_8),
70+
Resources.toString(Resources.getResource("version.json"), StandardCharsets.UTF_8),
7171
VersionInfo.class);
7272
} catch (final IOException e) {
7373
LOGGER.error()

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
<ebean.version>14.0.2</ebean.version>
8888
<flyway.core.version>10.18.0</flyway.core.version>
8989
<flyway.play.version>9.1.0</flyway.play.version>
90-
<guava.version>33.3.0-jre</guava.version>
90+
<guava.version>33.4.8-jre</guava.version>
9191
<guice.version>6.0.0</guice.version>
9292
<guice.assisted.version>6.0.0</guice.assisted.version>
9393
<hikaricp.version>6.3.0</hikaricp.version>

test/java/com/arpnetworking/metrics/portal/hosts/impl/ConsulClientTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616
package com.arpnetworking.metrics.portal.hosts.impl;
1717

18-
import com.google.common.base.Charsets;
1918
import com.google.common.collect.ImmutableList;
2019
import com.google.common.io.Resources;
2120
import org.junit.Test;
@@ -26,6 +25,7 @@
2625

2726
import java.io.IOException;
2827
import java.net.URI;
28+
import java.nio.charset.StandardCharsets;
2929
import java.util.List;
3030
import java.util.concurrent.CompletableFuture;
3131
import java.util.concurrent.CompletionStage;
@@ -53,7 +53,7 @@ public void testCatalogNodes() throws IOException, ExecutionException, Interrupt
5353
Mockito.doReturn(
5454
Resources.toString(
5555
Resources.getResource(this.getClass(), "consul_v0.6_catalog_nodes.json"),
56-
Charsets.UTF_8))
56+
StandardCharsets.UTF_8))
5757
.when(response)
5858
.getBody();
5959

test/java/com/arpnetworking/metrics/portal/hosts/impl/ForemanClientTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616
package com.arpnetworking.metrics.portal.hosts.impl;
1717

18-
import com.google.common.base.Charsets;
1918
import com.google.common.io.Resources;
2019
import org.junit.Test;
2120
import play.libs.ws.WSClient;
@@ -24,6 +23,7 @@
2423

2524
import java.io.IOException;
2625
import java.net.URI;
26+
import java.nio.charset.StandardCharsets;
2727
import java.util.concurrent.CompletableFuture;
2828
import java.util.concurrent.CompletionStage;
2929
import java.util.concurrent.ExecutionException;
@@ -52,7 +52,7 @@ public void testHostsResponseFromForeman1dot8() throws IOException, ExecutionExc
5252
doReturn(
5353
Resources.toString(
5454
Resources.getResource(this.getClass(), "foreman_v1.8_hosts_response.json"),
55-
Charsets.UTF_8))
55+
StandardCharsets.UTF_8))
5656
.when(response)
5757
.getBody();
5858

test/java/com/arpnetworking/utility/test/ResourceHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
package com.arpnetworking.utility.test;
1717

1818
import com.arpnetworking.commons.jackson.databind.ObjectMapperFactory;
19-
import com.google.common.base.Charsets;
2019
import com.google.common.io.Resources;
2120

2221
import java.io.IOException;
2322
import java.net.URL;
23+
import java.nio.charset.StandardCharsets;
2424

2525
/**
2626
* Helper to load resources.
@@ -57,7 +57,7 @@ public static String loadResource(final Object object, final String suffix) thro
5757
*/
5858
public static String loadResource(final Class<?> testClass, final String suffix) throws IOException {
5959
final URL resourceUrl = resourceURL(testClass, suffix);
60-
return Resources.toString(resourceUrl, Charsets.UTF_8);
60+
return Resources.toString(resourceUrl, StandardCharsets.UTF_8);
6161
}
6262

6363
/**

0 commit comments

Comments
 (0)