Avoid extending the AppDeploymentTask class

This rule flags any class that extends com.ibm.websphere.management.application.client.AppDeploymentTask. Extending this class was deprecated in Version 8.0.

Use WASDeploymentTask to create an application deployment task instead. WASDeploymentTask already extends AppDeploymentTask, and it can be instantiated to create the task object.

Example:

import com.ibm.websphere.management.application.client.WASDeploymentTask;

private static final String[] COLUMNS = new String[] {
"app.version",
"property.name",
"property.type",
"property.desc",
"property.value"};

AppDeploymentTask task = null;

try {
task = new WASDeploymentTask(controller, "myPropertyTask", COLUMNS,
new boolean[] { true, true, false, false, false }, // required
new boolean[] { false, false, false, false, true }, // mutable
new boolean[] { true, false, false, false, false }); // hidden
} catch (final Exception e) {
RasUtils.logException(e, tc, CLASS_NAME, "createTask", "%C%", this);
}

For more class information, see: