Skip to content

Commit 3e6e8d9

Browse files
committed
Fixup warning due to deprecated Runtime.exec(String) (in Examples only)
1 parent df0a831 commit 3e6e8d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/SnippetExplorer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public static void main(String[] args) {
194194
*/
195195
private static boolean canRunCommand(String command) {
196196
try {
197-
final Process p = Runtime.getRuntime().exec(command);
197+
final Process p = Runtime.getRuntime().exec(new String[] {command});
198198
p.waitFor(150, TimeUnit.MILLISECONDS);
199199
if (p.isAlive()) {
200200
p.destroy();

0 commit comments

Comments
 (0)