Skip to content
Permalink
Browse files
Use isEmpty().
  • Loading branch information
garydgregory committed Jan 17, 2021
1 parent 96d89f8 commit c6845cdd3a9d28de5ad03d4221e595fb6da8ceb7
Showing 1 changed file with 1 addition and 1 deletion.
@@ -624,7 +624,7 @@ else if (value instanceof String)
final String[] elements = ((String) value).split("_");
final int size = elements.length;

if (size >= 1 && (elements[0].length() == 2 || elements[0].length() == 0))
if (size >= 1 && (elements[0].length() == 2 || elements[0].isEmpty()))
{
final String language = elements[0];
final String country = size >= 2 ? elements[1] : "";

0 comments on commit c6845cd

Please sign in to comment.