You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2020/10/08 11:40:28 UTC

[sling-org-apache-sling-feature-extension-apiregions] branch master updated: SLING-9803 : Deprecation info gets lost when durin serialization

This is an automated email from the ASF dual-hosted git repository.

cziegeler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-feature-extension-apiregions.git


The following commit(s) were added to refs/heads/master by this push:
     new 859a4d0  SLING-9803 : Deprecation info gets lost when durin serialization
859a4d0 is described below

commit 859a4d0db71c21d4158c8292ec3c54624c8d1ad1
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Thu Oct 8 13:40:00 2020 +0200

    SLING-9803 : Deprecation info gets lost when durin serialization
---
 .../apache/sling/feature/extension/apiregions/api/ApiRegions.java   | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/sling/feature/extension/apiregions/api/ApiRegions.java b/src/main/java/org/apache/sling/feature/extension/apiregions/api/ApiRegions.java
index c0f5fc8..c3c08cb 100644
--- a/src/main/java/org/apache/sling/feature/extension/apiregions/api/ApiRegions.java
+++ b/src/main/java/org/apache/sling/feature/extension/apiregions/api/ApiRegions.java
@@ -193,7 +193,11 @@ public class ApiRegions {
             if (!region.listExports().isEmpty()) {
                 final JsonArrayBuilder expArrayBuilder = Json.createArrayBuilder();
                 for (final ApiExport exp : region.listExports()) {
-                    if (exp.getToggle() == null && exp.getPrevious() == null && exp.getProperties().isEmpty()) {
+                    if (exp.getToggle() == null 
+                        && exp.getPrevious() == null 
+                        && exp.getProperties().isEmpty() 
+                        && exp.getDeprecation().getPackageInfo() == null
+                        && exp.getDeprecation().getMemberInfos().isEmpty() ) {
                         expArrayBuilder.add(exp.getName());
                     } else {
                         final JsonObjectBuilder expBuilder = Json.createObjectBuilder();