Skip to content

Commit 40e57d6

Browse files
committed
Avoid method not supported in Java 5.
1 parent 44f4ad2 commit 40e57d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

byte-buddy-agent/src/main/java/net/bytebuddy/agent/Attacher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public static void main(String[] args) {
6565
} catch (Throwable throwable) {
6666
try {
6767
String property = System.getProperty(DUMP_PROPERTY);
68-
if (property != null && !property.isEmpty()) {
68+
if (property != null && property.length() > 0) {
6969
PrintStream outputStream = new PrintStream(new FileOutputStream(property));
7070
try {
7171
throwable.printStackTrace(outputStream);

0 commit comments

Comments
 (0)