From 8dd49408a67e604e5e0e23c945f076f7cd40175c Mon Sep 17 00:00:00 2001 From: sukidayou <77531556+sukidayou@users.noreply.github.com> Date: Thu, 14 Nov 2024 22:03:40 +0800 Subject: [PATCH] feat: upgrade all jCasbin dependencies to latest (#441) * fix: fix potential null pointer issue * feat: upgrade all jCasbin dependencies to latest --- pom.xml | 22 +++++++++---------- .../persist/file_adapter/FileAdapter.java | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/pom.xml b/pom.xml index 8beeb892..24546c60 100644 --- a/pom.xml +++ b/pom.xml @@ -43,7 +43,7 @@ UTF-8 - 1.7.36 + 2.0.16 @@ -58,7 +58,7 @@ org.apache.maven.plugins maven-gpg-plugin - 1.5 + 3.2.7 sign-artifacts @@ -80,7 +80,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 2.10.4 + 3.11.1 11 false @@ -130,7 +130,7 @@ org.sonatype.central central-publishing-maven-plugin - 0.5.0 + 0.6.0 true ossrh @@ -200,39 +200,39 @@ com.github.seancfoley ipaddress - 5.4.2 + 5.5.1 commons-io commons-io - 2.11.0 + 2.17.0 org.openjdk.jmh jmh-core - 1.34 + 1.37 test org.openjdk.jmh jmh-generator-annprocess - 1.34 + 1.37 test org.apache.commons commons-csv - 1.9.0 + 1.12.0 com.google.code.gson gson - 2.9.0 + 2.11.0 com.fasterxml.jackson.core jackson-databind - 2.16.1 + 2.18.1 diff --git a/src/main/java/org/casbin/jcasbin/persist/file_adapter/FileAdapter.java b/src/main/java/org/casbin/jcasbin/persist/file_adapter/FileAdapter.java index 555008ef..4a20c1b1 100644 --- a/src/main/java/org/casbin/jcasbin/persist/file_adapter/FileAdapter.java +++ b/src/main/java/org/casbin/jcasbin/persist/file_adapter/FileAdapter.java @@ -111,7 +111,7 @@ private void loadPolicyData(Model model, Helper.loadPolicyLineHandler lines = IOUtils.readLines(inputStream, Charset.forName("UTF-8")); lines.forEach(x -> handler.accept(x, model)); - } catch (IOException e) { + } catch (UncheckedIOException e) { e.printStackTrace(); throw new CasbinAdapterException("Policy load error"); }