Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
AstrorEnales committed Oct 17, 2024
1 parent 1572a0d commit b3de571
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 20 deletions.
26 changes: 11 additions & 15 deletions src/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
<dependency>
<groupId>io.javalin</groupId>
<artifactId>javalin</artifactId>
<version>6.1.4</version>
<version>6.3.0</version>
</dependency>
<dependency>
<groupId>info.picocli</groupId>
Expand All @@ -105,32 +105,28 @@
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j</artifactId>
<version>5.15.0</version>
</dependency>
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-dbms</artifactId>
<version>5.15.0</version>
</dependency>
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-bolt</artifactId>
<version>5.15.0</version>
<version>5.23.0</version>
</dependency>
<dependency>
<groupId>org.neo4j.procedure</groupId>
<artifactId>apoc-extended</artifactId>
<version>5.15.0</version>
<version>5.23.0</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.neo4j.procedure</groupId>
<artifactId>apoc-common</artifactId>
<version>5.15.0</version>
<version>5.23.0</version>
</dependency>
<dependency>
<groupId>org.neo4j.procedure</groupId>
<artifactId>apoc-core</artifactId>
<version>5.15.0</version>
<version>5.23.0</version>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public boolean downloadNeo4jBrowser() {
}

private String[] getNeo4jBrowserDownloadUrlCandidates() {
final TypeReference<List<GithubRelease>> releaseListType = new TypeReference<List<GithubRelease>>() {
final TypeReference<List<GithubRelease>> releaseListType = new TypeReference<>() {
};
final Set<String> candidates = new HashSet<>();
candidates.add(FALLBACK_DOWNLOAD_URL);
Expand All @@ -81,7 +81,7 @@ private String[] getNeo4jBrowserDownloadUrlCandidates() {
final URL neo4jBrowserRelease = new URL(NEO4J_BROWSER_RELEASE_URL);
final List<GithubRelease> releases = mapper.readValue(neo4jBrowserRelease, releaseListType);
for (GithubRelease release : releases)
if (release.assets != null && release.assets.size() > 0)
if (release.assets != null && !release.assets.isEmpty())
candidates.add(release.assets.get(0).browserDownloadUrl);
} catch (IOException | ClassCastException e) {
if (LOGGER.isErrorEnabled())
Expand All @@ -96,7 +96,7 @@ private boolean extractNeo4jBrowserArchive(final File browserArchiveFile) {
final GzipCompressorInputStream gzipInputStream = new GzipCompressorInputStream(inputStream);
final TarArchiveInputStream tarInputStream = new TarArchiveInputStream(gzipInputStream)) {
TarArchiveEntry entry;
while ((entry = (TarArchiveEntry) tarInputStream.getNextEntry()) != null) {
while ((entry = tarInputStream.getNextEntry()) != null) {
if (entry.isFile()) {
final Path f = Paths.get(destination, entry.getName());
final Path parent = f.getParent();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ private void createAndStartWorkspaceServer(final CmdArgs commandLine) {
private boolean verifyWorkspaceExists(final String workspacePath) {
if (StringUtils.isEmpty(workspacePath) || !Paths.get(workspacePath).toFile().exists()) {
if (LOGGER.isErrorEnabled())
LOGGER.error("Workspace path '" + workspacePath + "' was not found");
LOGGER.error("Workspace path '{}' was not found", workspacePath);
return false;
}
if (LOGGER.isInfoEnabled())
LOGGER.info("Using workspace directory '" + workspacePath + "'");
LOGGER.info("Using workspace directory '{}'", workspacePath);
return true;
}

Expand Down

0 comments on commit b3de571

Please sign in to comment.