Skip to content

Commit

Permalink
8273435: Remove redundant zero-length check in ClassDesc.of
Browse files Browse the repository at this point in the history
Reviewed-by: rriggs
  • Loading branch information
turbanoff authored and naotoj committed Sep 29, 2021
1 parent 97385d4 commit 355356c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/java.base/share/classes/java/lang/constant/ClassDesc.java
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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 + ";");
}

/**
Expand Down

1 comment on commit 355356c

@openjdk-notifier
Copy link

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.