8350771: Fix -Wzero-as-null-pointer-constant warning in nsk/monitoring ThreadController utility

Reviewed-by: dholmes
This commit is contained in:
Kim Barrett 2025-03-04 04:27:24 +00:00
parent 7c173fde42
commit d9b98f72c2

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2025, 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
@ -465,8 +465,8 @@ extern "C" {
return env->NewStringUTF("TIMED_WAITING");
}
// should never reach
assert(0);
return 0;
assert(false);
return nullptr;
}
/*