Skip to content
Permalink
Browse files
8273435: Remove redundant zero-length check in ClassDesc.of
Reviewed-by: rriggs
  • Loading branch information
turbanoff authored and naotoj committed Sep 29, 2021
1 parent 97385d4 commit 355356c405adb9287b786b0b045c2eb974d2ffca
Showing 1 changed file 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 @@ static ClassDesc of(String packageName, String className) {
}
validateMemberName(requireNonNull(className), false);
return ofDescriptor("L" + binaryToInternal(packageName) +
(packageName.length() > 0 ? "/" : "") + className + ";");
"/" + className + ";");
}

/**

1 comment on commit 355356c

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 355356c Sep 29, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.