lprimak commented on code in PR #1530:
URL: https://github.com/apache/shiro/pull/1530#discussion_r1636920322


##########
tools/hasher/src/main/java/org/apache/shiro/tools/hasher/Hasher.java:
##########
@@ -504,6 +507,15 @@ private static char[] readPassword(boolean confirm) throws 
IOException {
         return first;
     }
 
+    private static boolean isTerminal(java.io.Console console) throws 
IOException {
+        try {
+            // isTerminal is only available in Java 22 or later
+            return console != null && (Boolean) 
PropertyUtils.getProperty(console, "terminal");

Review Comment:
   done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to