Commit 5531ff5b authored by Simon Barner's avatar Simon Barner
Browse files

GREEN

* Avoid warnings because of deprecated type "Deployment"

Issue-Ref: 3337
Issue-Url: https://af3-developer.fortiss.org/issues/3337

Signed-off-by: Simon Barner's avatarSimon Barner <barner@fortiss.org>
parent f08d7c0a
ComponentAllocationMigration.java d8d02e0d40db0ffdabecd428294582e9ec4b34fe GREEN
DeploymentMigratorBase.java 5c0ef79263673718228b9427b0336607ce14bbc5 GREEN
DeploymentMigratorBase.java d93d7de512436d91ec539f0b523279e52885b55f GREEN
DeploymentToAllocationMigration.java 9086087d032da0d9a6d897f23a1e1cdba91a1d23 GREEN
VirtualLinkNameSetter.java e50d914f218e2712189dfe1010e86445f8940497 GREEN
......@@ -37,11 +37,12 @@ import org.fortiss.tooling.kernel.extension.IMigrationProvider;
import org.fortiss.tooling.kernel.extension.data.ITopLevelElement;
/**
* Base class for migration providers that replaces {@link Deployment} referenced in another
* Base class for migration providers that replaces {@code Deployment} referenced in another
* submodel.
*
* @author barner
*/
@SuppressWarnings("deprecation")
public abstract class DeploymentMigratorBase<T extends IModelElement>
implements IMigrationProvider {
......@@ -53,10 +54,10 @@ public abstract class DeploymentMigratorBase<T extends IModelElement>
this.elementType = elementType;
}
/** Returns the {@link Deployment} to be migrated that is referenced by the given element. */
/** Returns the {@code Deployment} to be migrated that is referenced by the given element. */
protected abstract Deployment getDeployment(T element);
/** Returns the {@link Stream} of elements that are based on a {@link Deployment}. */
/** Returns the {@link Stream} of elements that are based on a {@code Deployment}. */
private Stream<T> getElements(EObject rootElement) {
return getChildrenWithType(rootElement, elementType).stream()
.filter(e -> getDeployment(e) != null && !isDone(getDeployment(e), getClass()));
......
SystemScheduleDeploymentToAllocationMigration.java ae89e1caa033fd439749b25a4ad89803d843183e GREEN
SystemScheduleDeploymentToAllocationMigration.java e06a6b08b0d29c0c22f22fdcb74b7c03a464cc11 GREEN
......@@ -22,7 +22,7 @@ import org.fortiss.af3.platform.model.allocation.ComponentToExecutionUnitAllocat
import org.fortiss.af3.schedule.model.SystemSchedule;
/**
* Migration provider that replaces a {@link Deployment} referenced in a given
* Migration provider that replaces a {@code Deployment} referenced in a given
* {@link SystemSchedule} with an {@link AllocationTableCollection} reference.
*
* @author barner
......
DeplSpecParamToTaskWcetTableMigration.java 02956a9344bb4130497bfa6a9d2f188f818e665b GREEN
DeplSpecParamToTaskWcetTableMigration.java 21d39ea7f4fa3a40ab20ceeb0ebaa2e770c6b998 GREEN
......@@ -52,11 +52,12 @@ import org.fortiss.af3.task.util.ComponentToTaskArchitectureTransformation;
import org.fortiss.af3.timing.model.annotation.Wcet;
/**
* Migration provider from {@link Wcet}s defined in {@link Deployment}s' specific parameters to
* Migration provider from {@link Wcet}s defined in {@code Deployment}s' specific parameters to
* {@link TaskWcetTable}s.
*
* @author barner
*/
@SuppressWarnings("deprecation")
public class DeplSpecParamToTaskWcetTableMigration extends DeploymentMigratorBase<Deployment> {
/** Constructor. */
......@@ -64,7 +65,7 @@ public class DeplSpecParamToTaskWcetTableMigration extends DeploymentMigratorBas
super(Deployment.class);
}
/** Predicate iff the given {@link Deployment} contains at least one non-zero WCET. */
/** Predicate iff the given {@code Deployment} contains at least one non-zero WCET. */
private boolean hasWcets(Deployment deployment) {
for(DeploymentParameterValue paramValue : deployment.getDeploymentParameterMap().values()) {
Wcet wcet = pickFirstInstanceOf(Wcet.class, paramValue.getSpecifications());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment