Skip to content

Commit

Permalink
Remove usage of deprecated methods
Browse files Browse the repository at this point in the history
Signed-off-by: Taylor Smock <[email protected]>
  • Loading branch information
tsmock committed Aug 13, 2024
1 parent 2a98796 commit 5d26ad5
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 16 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/reports.yaml

This file was deleted.

1 change: 1 addition & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<project name="openqa" default="dist" basedir=".">
<property name="plugin.src.dir" value="src/main/java"/>
<property name="plugin.test.dir" value="src/test"/>
<property name="java.lang.version" value="11" />

<!-- edit the properties of this plugin in the file `gradle.properties` -->
<property file="${basedir}/gradle.properties"/>
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/com/kaart/openqa/OpenQACache.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import org.apache.commons.jcs3.engine.behavior.IElementAttributes;
import org.openstreetmap.josm.data.cache.JCSCacheManager;
import org.openstreetmap.josm.tools.HttpClient;
import org.openstreetmap.josm.tools.Utils;

/**
* The class for cache
Expand Down Expand Up @@ -50,7 +49,7 @@ public static InputStream getUrl(String url, Duration timeToKeep) {
client = HttpClient.create(URI.create(url).toURL());
HttpClient.Response response = client.connect();
try (InputStream is = response.getContent()) {
return Utils.readBytesFromStream(is);
return is.readAllBytes();
}
} catch (IOException e) {
throw new UncheckedIOException(e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ public String getNodeToolTip(OsmoseNode node) {
JsonArray jsonArray = reader.readArray();
users = new ArrayList<>(jsonArray.size());
for (JsonString user : jsonArray.getValuesAs(JsonString.class)) {
if (!Utils.isBlank(user.getString())) {
if (!user.getString().isBlank()) {
users.add(getUserName(user.getString()));
}
}
Expand Down

0 comments on commit 5d26ad5

Please sign in to comment.