Skip to content

Commit

Permalink
Use efficient empty string test
Browse files Browse the repository at this point in the history
  • Loading branch information
sampart authored and tdcmeehan committed Aug 23, 2024
1 parent 9ede266 commit 7d3e06e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ private static int parseOffset(String group, String offsetName, String columnNam
private static FieldType parseFieldType(String dataFormat, String columnName)
{
try {
if (!dataFormat.equals("")) {
if (!dataFormat.isEmpty()) {
return FieldType.valueOf(dataFormat.toUpperCase(Locale.ENGLISH));
}
return FieldType.BYTE;
Expand Down

0 comments on commit 7d3e06e

Please sign in to comment.