Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary warnings for creation infos in the graph #12

Merged
merged 1 commit into from
Jan 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -191,7 +188,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
Loading