mirror of
https://github.com/google/nomulus
synced 2025-12-23 06:15:42 +00:00
Remove @EmptySetToNull (#1878)
This annotation was only used in cross-database comparison. <!-- Reviewable:start --> - - - This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/google/nomulus/1878) <!-- Reviewable:end -->
This commit is contained in:
@@ -120,8 +120,8 @@ public class CollectionUtils {
|
||||
* Turns an empty collection into a null collection.
|
||||
*
|
||||
* <p>This is unwise in the general case (nulls are bad; empties are good) but occasionally needed
|
||||
* to cause JAXB not to emit a field, or to avoid saving something to Datastore. The method name
|
||||
* includes "force" to indicate that you should think twice before using it.
|
||||
* to cause JAXB not to emit a field. The method name includes "force" to indicate that you should
|
||||
* think twice before using it.
|
||||
*/
|
||||
@Nullable
|
||||
public static <T, C extends Collection<T>> C forceEmptyToNull(@Nullable C potentiallyEmpty) {
|
||||
|
||||
Reference in New Issue
Block a user