Skip to content

Commit 5d761fc

Browse files
lgxbslgxmcimadamore
authored andcommitted
8266796: Clean up the unnecessary code in the method UnsharedNameTable#fromUtf
Reviewed-by: mcimadamore
1 parent e41fd73 commit 5d761fc

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/jdk.compiler/share/classes/com/sun/tools/javac/util/UnsharedNameTable.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1999, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -96,10 +96,6 @@ public Name fromUtf(byte[] cs, int start, int len) {
9696
HashEntry firstTableEntry = element;
9797

9898
while (element != null) {
99-
if (element == null) {
100-
break;
101-
}
102-
10399
n = element.get();
104100

105101
if (n == null) {

0 commit comments

Comments
 (0)