Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Commit c2f5fed

Browse files
committed
warnings cleanup
1 parent bf409d7 commit c2f5fed

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

src/main/java/com/fasterxml/jackson/datatype/guava/GuavaModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public void setupModule(SetupContext context)
6060

6161
/**
6262
* Configuration method that may be used to change configuration setting
63-
* {@link #_cfgHandleAbsentAsNull}: enabling means that `Optional.absent()` values
63+
* <code>_cfgHandleAbsentAsNull</code>: enabling means that `Optional.absent()` values
6464
* are handled like Java nulls (wrt filtering on serialization); disabling that
6565
* they are only treated as "empty" values, but not like native Java nulls.
6666
* Recommended setting for this value is `false`, for compatibility with other

src/main/java/com/fasterxml/jackson/datatype/guava/ser/GuavaOptionalBeanPropertyWriter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ protected GuavaOptionalBeanPropertyWriter(BeanPropertyWriter base) {
1616
protected GuavaOptionalBeanPropertyWriter(BeanPropertyWriter base, PropertyName newName) {
1717
super(base, newName);
1818
}
19-
19+
2020
// !!! TODO: in 2.7, no need to override
2121
@Override
2222
public BeanPropertyWriter rename(NameTransformer transformer) {

src/main/java/com/fasterxml/jackson/datatype/guava/ser/GuavaOptionalSerializer.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,8 @@ public JsonSerializer<?> createContextual(SerializerProvider provider,
8484
if (ser == null) {
8585
// we'll have type parameter available due to GuavaTypeModifier making sure it is, so:
8686
boolean realType = !_referredType.hasRawClass(Object.class);
87-
/* Can only assign serializer statically if the declared type is final,
88-
* or if we are to use static typing (and type is not "untyped")
89-
*/
87+
// Can only assign serializer statically if the declared type is final,
88+
// or if we are to use static typing (and type is not "untyped")
9089
if (realType &&
9190
(provider.isEnabled(MapperFeature.USE_STATIC_TYPING)
9291
|| _referredType.isFinal())) {
@@ -179,7 +178,7 @@ public void serializeWithType(Optional<?> opt,
179178
/* Introspection support
180179
/**********************************************************
181180
*/
182-
181+
183182
@Override
184183
public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) throws JsonMappingException
185184
{

src/main/java/com/fasterxml/jackson/datatype/guava/ser/GuavaUnwrappingOptionalBeanPropertyWriter.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ public class GuavaUnwrappingOptionalBeanPropertyWriter extends UnwrappingBeanPro
1313
public GuavaUnwrappingOptionalBeanPropertyWriter(BeanPropertyWriter base,
1414
NameTransformer transformer) {
1515
super(base, transformer);
16-
System.err.println("Unwrap/opt: ctor 1");
1716
}
1817

1918
protected GuavaUnwrappingOptionalBeanPropertyWriter(UnwrappingBeanPropertyWriter base,

0 commit comments

Comments
 (0)