Skip to content

Commit 6e7e380

Browse files
Mattbric3
andauthored
Remove unnecessary defensive path separator
Co-authored-by: Brice Dutheil <brice.dutheil@gmail.com>
1 parent 44ea4e6 commit 6e7e380

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal-api/src/main/java/datadog/trace/util/PidHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public static Set<String> getJavaPids() {
101101
try (Stream<Path> stream =
102102
// Emulating the hotspot way to enumerate the JVM processes using the perfdata file
103103
// https://github.com/openjdk/jdk/blob/d7cb933b89839b692f5562aeeb92076cd25a99f6/src/hotspot/share/runtime/perfMemory.cpp#L244
104-
Files.list(Paths.get(getOSTempDir() + "/hsperfdata_" + System.getProperty("user.name")))) {
104+
Files.list(Paths.get(getOSTempDir(), "hsperfdata_" + System.getProperty("user.name")))) {
105105
return stream
106106
.filter(file -> !Files.isDirectory(file))
107107
.map(Path::getFileName)

0 commit comments

Comments
 (0)