package net.sf.taverna.t2.component;

import net.sf.taverna.t2.visit.VisitKind;
import net.sf.taverna.t2.visit.Visitor;

public class ComponentHealthCheck extends VisitKind {
	public static final int NO_PROBLEM = 0;
	public static final int OUT_OF_DATE = 10;
	public static final int NON_SHAREABLE = 20;
	public static final int FAILS_PROFILE = 30;

	@SuppressWarnings("rawtypes")
	@Override
	public Class<? extends Visitor> getVisitorClass() {
		return ComponentActivityUpgradeChecker.class;
	}

	private static class Singleton {
		private static ComponentHealthCheck instance = new ComponentHealthCheck();
	}

	public static ComponentHealthCheck getInstance() {
		return Singleton.instance;
	}
}

package net.sf.taverna.t2.component;

import net.sf.taverna.t2.visit.VisitKind;
import net.sf.taverna.t2.visit.Visitor;

public class ComponentHealthCheck extends VisitKind {
	public static final int NO_PROBLEM = 0;
	public static final int OUT_OF_DATE = 10;
	public static final int NON_SHAREABLE = 20;
	public static final int FAILS_PROFILE = 30;

	@Override
	public Class<? extends Visitor<?>> getVisitorClass() {
		return ComponentActivityUpgradeChecker.class;
	}

	private static class Singleton {
		private static ComponentHealthCheck instance = new ComponentHealthCheck();
	}

	public static ComponentHealthCheck getInstance() {
		return Singleton.instance;
	}
}

Reduce number/scope of warning suppressions. Consolidate node-list manipulation into one place, which in turn is implemented correctly.
Reduce number/scope of warning suppressions.
Consolidate node-list manipulation into one place, which in turn is implemented correctly.

git-svn-id: e7a1cf118dbd81641b56f1cead84a0876efec607@16178 bf327186-88b3-11dd-a302-d386e5130c1c
