Skip to content

Commit

Permalink
Harmonizes interface to use most specific class as return value
Browse files Browse the repository at this point in the history
  • Loading branch information
FriedJannik committed Aug 10, 2023
1 parent a999def commit 92eb4d8
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
import org.apache.tika.mime.MimeType;
import org.apache.tika.mime.MimeTypeException;
import org.apache.tika.mime.MimeTypes;
import org.eclipse.basyx.submodel.metamodel.api.ISubmodel;
import org.eclipse.basyx.submodel.metamodel.api.submodelelement.ISubmodelElement;
import org.eclipse.basyx.submodel.metamodel.api.submodelelement.operation.IOperation;
import org.eclipse.basyx.submodel.metamodel.map.Submodel;
Expand Down Expand Up @@ -90,7 +89,7 @@ private MultiSubmodelElementProvider getElementProvider() {

@SuppressWarnings("unchecked")
@Override
public ISubmodel getSubmodel() {
public Submodel getSubmodel() {
// For access on the container property root, return the whole model
Map<String, Object> map = (Map<String, Object>) modelProvider.getValue(SubmodelAPIHelper.getSubmodelPath());

Expand Down

0 comments on commit 92eb4d8

Please sign in to comment.