Skip to content

Commit

Permalink
Remove unnecessary warnings for creationInfo in graph
Browse files Browse the repository at this point in the history
  • Loading branch information
goneall committed Jan 7, 2025
1 parent ba9d480 commit 2f87b9b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/org/spdx/v3jsonldstore/JsonLDStore.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@
import org.spdx.core.TypedValue;
import org.spdx.library.SpdxModelFactory;
import org.spdx.library.model.v3_0_1.SpdxConstantsV3;
import org.spdx.library.model.v3_0_1.core.Element;
import org.spdx.library.model.v3_0_1.core.ExternalElement;
import org.spdx.library.model.v3_0_1.core.ExternalMap;
import org.spdx.library.model.v3_0_1.core.SpdxDocument;
import org.spdx.library.model.v3_0_1.core.*;
import org.spdx.storage.IModelStore;
import org.spdx.storage.ISerializableModelStore;
import org.spdx.storage.PropertyDescriptor;
Expand Down Expand Up @@ -190,7 +187,10 @@ private SpdxDocument elementsToSpdxDocument(List<TypedValue> graphElements) thro
roots.add((Element)mo);
}
addExternalElements(mo, referencedExternalElementUris, alreadySearched);
} else {
} else if (!(mo instanceof CreationInfo)) {
// CreationInfos are allowed in the Serialization as a shortcut, but should not be included
// in the elements. Note that they are already deserialized and included as properties for
// the elements as part of JsonLDDeserializer.deSerializeGraph
logger.warn("Non element in the serialized graph - {} will not be included in the SPDX document elements", element.getObjectUri());
}
}
Expand Down

0 comments on commit 2f87b9b

Please sign in to comment.