mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-15 16:44:36 +02:00
8209455: [error-prone] JdkObsolete in jdk.management.agent
Reviewed-by: alanb, jcbeyler
This commit is contained in:
parent
2ca0a6689e
commit
b1fe43947a
1 changed files with 2 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -663,11 +663,7 @@ public class Agent {
|
|||
System.err.print(getText("agent.err.error") + ": " + keyText);
|
||||
|
||||
if (params != null && params.length != 0) {
|
||||
StringBuffer message = new StringBuffer(params[0]);
|
||||
for (int i = 1; i < params.length; i++) {
|
||||
message.append(" " + params[i]);
|
||||
}
|
||||
System.err.println(": " + message);
|
||||
System.err.println(": " + String.join(" ", params));
|
||||
}
|
||||
e.printStackTrace();
|
||||
throw new RuntimeException(e);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue