Skip to content

Commit a572a86

Browse files
committed
clean up Path usage
1 parent 5f0f817 commit a572a86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dd-java-agent/agent-debugger/src/main/java/com/datadog/debugger/agent/DebuggerTransformer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ private void dumpOriginalClassFile(String className, byte[] classfileBuffer) {
846846

847847
private static Path dumpClassFile(String className, byte[] classfileBuffer) {
848848
try {
849-
Path classFilePath = Paths.get(DUMP_PATH.toString(), className + ".class");
849+
Path classFilePath = DUMP_PATH.resolve(className + ".class");
850850
Files.createDirectories(classFilePath.getParent());
851851
Files.write(classFilePath, classfileBuffer, StandardOpenOption.CREATE);
852852
return classFilePath;

0 commit comments

Comments
 (0)