mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8215401: Add isEmpty default method to CharSequence
Reviewed-by: jlaskey, rriggs, jjg, alanb, smarks, darcy
This commit is contained in:
parent
7d330d34f1
commit
113c48f5da
4 changed files with 133 additions and 1 deletions
|
@ -684,6 +684,7 @@ public final class String
|
|||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return value.length == 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue