8273435: Remove redundant zero-length check in ClassDesc.of

Reviewed-by: rriggs
This commit is contained in:
Andrey Turbanov 2021-09-29 23:08:23 +00:00 committed by Naoto Sato
parent 97385d4f16
commit 355356c405

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2021, 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
@ -99,7 +99,7 @@ public sealed interface ClassDesc
}
validateMemberName(requireNonNull(className), false);
return ofDescriptor("L" + binaryToInternal(packageName) +
(packageName.length() > 0 ? "/" : "") + className + ";");
"/" + className + ";");
}
/**