Skip to content

Commit

Permalink
Merge pull request #335 from FriedJannik/development
Browse files Browse the repository at this point in the history
Harmonizes interface to use most specific class as return value
  • Loading branch information
FrankSchnicke authored Aug 10, 2023
2 parents c90932f + 92eb4d8 commit 1afd8ef
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 1afd8ef

Please sign in to comment.