FasterXML / jackson-core

Core part of Jackson that defines Streaming API as well as basic shared abstractions
Apache License 2.0
2.25k stars 773 forks source link

Fix "iff" typo in Javadoc and comments, remove some redundant expressions #1278

Closed Philzen closed 4 months ago

Philzen commented 4 months ago

Analogous to https://github.com/FasterXML/jackson-databind/pull/4502

Also took the liberty to remove some code lines that came up in my IntelliJ highlighting (there's a couple more regarding redundant casts and using protected modifier in a final class – however i only applied the most obvious and safe ones that simplify the class).

pjfanning commented 4 months ago

@Philzen could you hold your horses? Let's discuss the other PRs first.

cowtowncoder commented 4 months ago

It's not a typo:

https://en.wikipedia.org/wiki/If_and_only_if

so only to be removed from cases where plain "if" is better -- but I try to add it only where "if and only if" is indeed the accurate usage.

Philzen commented 4 months ago

Closed in favor of https://github.com/FasterXML/jackson-core/pull/1282