Skip to content

Commit

Permalink
Avoid method not supported in Java 5.
Browse files Browse the repository at this point in the history
  • Loading branch information
raphw committed Dec 9, 2022
1 parent 44f4ad2 commit 40e57d6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public static void main(String[] args) {
} catch (Throwable throwable) {
try {
String property = System.getProperty(DUMP_PROPERTY);
if (property != null && !property.isEmpty()) {
if (property != null && property.length() > 0) {
PrintStream outputStream = new PrintStream(new FileOutputStream(property));
try {
throwable.printStackTrace(outputStream);
Expand Down

0 comments on commit 40e57d6

Please sign in to comment.