Skip to content

Commit

Permalink
Fix typo in code comments ("iff")
Browse files Browse the repository at this point in the history
  • Loading branch information
Philzen committed Apr 26, 2024
1 parent f41a990 commit 0bcc0c8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ protected void _addImplicitConstructorCreators(DeserializationContext ctxt,
*/
continue;
}
// One more thing: implicit names are ok iff ctor has creator annotation
// One more thing: implicit names are ok if ctor has creator annotation
/*
if (isCreator && (name != null && !name.isEmpty())) {
++implicitWithCreatorCount;
Expand Down Expand Up @@ -745,7 +745,7 @@ protected void _addImplicitFactoryCreators(DeserializationContext ctxt,
*/
continue;
}
// One more thing: implicit names are ok iff ctor has creator annotation
// One more thing: implicit names are ok if ctor has creator annotation
/*
if (isCreator) {
if (name != null && !name.isEmpty()) {
Expand Down Expand Up @@ -1142,7 +1142,7 @@ protected boolean _handleSingleArgumentCreator(CreatorCollector creators,
creators.addBigDecimalCreator(ctor, isCreator);
}
}
// Delegating Creator ok iff it has @JsonCreator (etc)
// Delegating Creator ok if it has @JsonCreator (etc)
if (isCreator) {
creators.addDelegatingCreator(ctor, isCreator, null, 0);
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ public Character deserialize(JsonParser p, DeserializationContext ctxt)
// coercion -- as long as it has length of 1.
text = p.getText();
break;
case JsonTokenId.ID_NUMBER_INT: // ok iff Unicode value
case JsonTokenId.ID_NUMBER_INT: // ok if Unicode value
CoercionAction act = ctxt.findCoercionAction(logicalType(), _valueClass, CoercionInputShape.Integer);
switch (act) {
case Fail:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public Boolean findTransient(Annotated a) {
public Boolean hasCreatorAnnotation(Annotated a) {
ConstructorProperties props = a.getAnnotation(ConstructorProperties.class);
// 08-Nov-2015, tatu: One possible check would be to ensure there is at least
// one name iff constructor has arguments. But seems unnecessary for now.
// one name if constructor has arguments. But seems unnecessary for now.
if (props != null) {
return Boolean.TRUE;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public void testStackTraceElementWithCustom() throws Exception
assertNotNull(bean.location);
assertEquals(StackTraceBean.NUM, bean.location.getLineNumber());

// and then directly, iff registered
// and then directly, if registered
ObjectMapper mapper = new ObjectMapper();
SimpleModule module = new SimpleModule();
module.addDeserializer(StackTraceElement.class, new MyStackTraceElementDeserializer());
Expand Down

0 comments on commit 0bcc0c8

Please sign in to comment.