Skip to content

Commit

Permalink
Fix build warnings by reducing diffs to openjdk/jdk
Browse files Browse the repository at this point in the history
  • Loading branch information
wmdietl committed Dec 17, 2024
1 parent 858e3ea commit 9f0fe99
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 183 deletions.
4 changes: 2 additions & 2 deletions src/java.base/share/classes/java/lang/Runtime.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
*/

@NullMarked
public class Runtime {
public class Runtime {
private static final Runtime currentRuntime = new Runtime();

private static Version version;
Expand Down Expand Up @@ -177,7 +177,6 @@ private Runtime() {}
* @see #removeShutdownHook
* @see #halt(int)
*/

public void exit(int status) {
Shutdown.exit(status);
}
Expand Down Expand Up @@ -368,6 +367,7 @@ public Process exec(String command) throws IOException {
* @see #exec(String[], String[], File)
* @see ProcessBuilder
*/
@Deprecated(since="18")
public Process exec(String command, String @Nullable [] envp) throws IOException {
return exec(command, envp, null);
}
Expand Down
Loading

0 comments on commit 9f0fe99

Please sign in to comment.