File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/main/java/in/erail/security Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,8 @@ public String getGlobalUniqueString() {
8282 } catch (ExecutionException ex ) {
8383 getLog ().error ("Global Unique not working" , ex );
8484 } catch (InterruptedException ex ) {
85- throw new RuntimeException (ex );
85+ getLog ().error (ex );
86+ Thread .currentThread ().interrupt ();
8687 }
8788 return "ERROR_GLOBAL_KEY" ;
8889 }
@@ -115,7 +116,8 @@ public String encrypt(String value) {
115116 | ExecutionException ex ) {
116117 getLog ().error (ex );
117118 } catch (InterruptedException ex ) {
118- throw new RuntimeException (ex );
119+ getLog ().error (ex );
120+ Thread .currentThread ().interrupt ();
119121 }
120122
121123 return null ;
@@ -143,7 +145,8 @@ public String decrypt(String encrypted) {
143145 | ExecutionException ex ) {
144146 getLog ().error (ex );
145147 } catch (InterruptedException ex ) {
146- throw new RuntimeException (ex );
148+ getLog ().error (ex );
149+ Thread .currentThread ().interrupt ();
147150 }
148151
149152 return null ;
You can’t perform that action at this time.
0 commit comments