You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2022/07/13 18:06:18 UTC
[plc4x] branch develop updated: fix(plc4j): Fixed broken code for detecting parllels
This is an automated email from the ASF dual-hosted git repository.
cdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git
The following commit(s) were added to refs/heads/develop by this push:
new 0b2693e35 fix(plc4j): Fixed broken code for detecting parllels
0b2693e35 is described below
commit 0b2693e35d9b9cd90d47e2b9a17a8e6d4b44f780
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Wed Jul 13 20:06:09 2022 +0200
fix(plc4j): Fixed broken code for detecting parllels
---
.../org/apache/plc4x/test/DisableOnParallelsVmFlagCondition.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/plc4j/utils/test-utils/src/main/java/org/apache/plc4x/test/DisableOnParallelsVmFlagCondition.java b/plc4j/utils/test-utils/src/main/java/org/apache/plc4x/test/DisableOnParallelsVmFlagCondition.java
index e50d7747f..437504a2b 100644
--- a/plc4j/utils/test-utils/src/main/java/org/apache/plc4x/test/DisableOnParallelsVmFlagCondition.java
+++ b/plc4j/utils/test-utils/src/main/java/org/apache/plc4x/test/DisableOnParallelsVmFlagCondition.java
@@ -36,10 +36,10 @@ public class DisableOnParallelsVmFlagCondition implements ExecutionCondition {
if(SystemUtils.IS_OS_WINDOWS) {
// TODO: If on Windows: Run "systeminfo /fo CSV /nh" command and check if the output contains "Parallels Virtual Platform"
try {
- var processBuilder = new ProcessBuilder();
+ ProcessBuilder processBuilder = new ProcessBuilder();
processBuilder.command("systeminfo", "/fo", "CSV", "/nh");
- var process = processBuilder.start();
- try (var reader = new BufferedReader(
+ Process process = processBuilder.start();
+ try (BufferedReader reader = new BufferedReader(
new InputStreamReader(process.getInputStream()))) {
String line;
while ((line = reader.readLine()) != null) {