Skip to content

Commit

Permalink
Merge pull request #16626 from keithc-ca/thread_name
Browse files Browse the repository at this point in the history
Simplify access to Thread name
  • Loading branch information
pshipton committed Jan 30, 2023
2 parents 8e8239a + 8100ab6 commit 6ea5638
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions jcl/src/java.base/share/classes/java/lang/Thread.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*[INCLUDE-IF (JAVA_SPEC_VERSION >= 8) & (JAVA_SPEC_VERSION < 19)]*/
/*******************************************************************************
* Copyright (c) 1998, 2022 IBM Corp. and others
* Copyright (c) 1998, 2023 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -654,8 +654,7 @@ public ClassLoader getContextClassLoader() {
* @return the receiver's name (a java.lang.String)
*/
public final String getName() {
/*[PR 1FIGT59] Return name as a String. If null, return "null" */
return String.valueOf(name);
return name;
}

/**
Expand Down

0 comments on commit 6ea5638

Please sign in to comment.