Skip to content

Commit

Permalink
[eclipse-ee4j#627]Some missing deprications
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Pinsky <[email protected]>
  • Loading branch information
api-from-the-ion committed Nov 8, 2023
1 parent ee22e55 commit b5be735
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
16 changes: 10 additions & 6 deletions src/main/java/org/eclipse/yasson/YassonProperties.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, 2020 Payara Foundation and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2023 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, 2023 Payara Foundation and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
Expand All @@ -24,27 +24,31 @@ private YassonProperties() {
}

/**
* @deprecated
* @deprecated Use {@link YassonConfig#FAIL_ON_UNKNOWN_PROPERTIES} instead
* @see YassonConfig#withFailOnUnknownProperties(boolean)
*/
@Deprecated
public static final String FAIL_ON_UNKNOWN_PROPERTIES = YassonConfig.FAIL_ON_UNKNOWN_PROPERTIES;

/**
* @deprecated
* @deprecated Use {@link YassonConfig#USER_TYPE_MAPPING} instead
* @see YassonConfig#withUserTypeMapping(java.util.Map)
*/
@Deprecated
public static final String USER_TYPE_MAPPING = YassonConfig.USER_TYPE_MAPPING;

/**
* @deprecated
* @deprecated Use {@link YassonConfig#ZERO_TIME_PARSE_DEFAULTING} instead
* @see YassonConfig#withZeroTimeParseDefaulting(boolean)
*/
@Deprecated
public static final String ZERO_TIME_PARSE_DEFAULTING = YassonConfig.ZERO_TIME_PARSE_DEFAULTING;

/**
* @deprecated
* @deprecated Use {@link YassonConfig#NULL_ROOT_SERIALIZER} instead
* @see YassonConfig#withNullRootSerializer(jakarta.json.bind.serializer.JsonbSerializer)
*/
@Deprecated
public static final String NULL_ROOT_SERIALIZER = YassonConfig.NULL_ROOT_SERIALIZER;

}
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,9 @@ public Optional<Boolean> isPropertyNillable(Property property) {
return nillable.map(JsonbNillable::value);
}
final Optional<JsonbProperty> jsonbProperty = getAnnotationFromProperty(JsonbProperty.class, property);
return jsonbProperty.map(JsonbProperty::nillable);
@SuppressWarnings("deprecation")
Optional<Boolean> optionalBoolean = jsonbProperty.map(JsonbProperty::nillable);
return optionalBoolean;

}

Expand Down

0 comments on commit b5be735

Please sign in to comment.