mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-12 16:15:23 +00:00
squid:UselessParenthesesCheck - Useless parentheses around expressions should be removed to prevent any misunderstanding
This commit is contained in:
1 parent
ab19c47415
commit
046e131119
10 files changed
+13
-13
No files matched your search
@@ -97,7 +97,7 @@ public class Character {
|
||||
.append(name)
|
||||
.append(" armed with a ")
|
||||
.append(weapon != null ? weapon : spell != null ? spell : "with nothing")
|
||||
.append(abilities != null ? (" and wielding " + abilities + " abilities") : "")
|
||||
.append(abilities != null ? " and wielding " + abilities + " abilities" : "")
|
||||
.append('.');
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user