Skip to content

Commit

Permalink
Merge pull request #1870 from dk2k/TIKA-4290_round_brackets_tostring
Browse files Browse the repository at this point in the history
TIKA-4290 Need round brackets around ternary operator.
  • Loading branch information
THausherr committed Aug 4, 2024
1 parent 768ae0a commit 80d5e7c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -508,9 +508,9 @@ public void setAffiliations(List<Affiliation> affiliations) {
*/
@Override
public String toString() {
return "Author [surName=" + surName + ", middleName=" + middleName != null ?
return "Author [surName=" + surName + ", middleName=" + (middleName != null ?
middleName :
"" + ", firstName=" + firstName + ", affiliations=" + affiliations + "]";
"") + ", firstName=" + firstName + ", affiliations=" + affiliations + "]";
}

}
Expand Down

0 comments on commit 80d5e7c

Please sign in to comment.