mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8273435: Remove redundant zero-length check in ClassDesc.of
Reviewed-by: rriggs
This commit is contained in:
parent
97385d4f16
commit
355356c405
1 changed files with 2 additions and 2 deletions
|
@ -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 + ";");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue