From: Alexandre Montplaisir Date: Fri, 3 Jan 2014 19:06:38 +0000 (-0500) Subject: tmf: Deprecate TmfStateSystemFactory and HistoryBuilder X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=cf5648928c9f2ea6865703fb79496302f08e7782;p=deliverable%2Ftracecompass.git tmf: Deprecate TmfStateSystemFactory and HistoryBuilder State systems should be built from the analysis module now. Change-Id: I4230c6514e4f0810108c65364fc66f0aa71d20bd Signed-off-by: Alexandre Montplaisir Reviewed-on: https://git.eclipse.org/r/20466 Tested-by: Hudson CI --- diff --git a/org.eclipse.linuxtools.lttng2.kernel.core.tests/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.linuxtools.lttng2.kernel.core.tests/.settings/org.eclipse.jdt.core.prefs index dccc332b24..8a55f3f93c 100644 --- a/org.eclipse.linuxtools.lttng2.kernel.core.tests/.settings/org.eclipse.jdt.core.prefs +++ b/org.eclipse.linuxtools.lttng2.kernel.core.tests/.settings/org.eclipse.jdt.core.prefs @@ -18,7 +18,7 @@ org.eclipse.jdt.core.compiler.problem.assertIdentifier=error org.eclipse.jdt.core.compiler.problem.autoboxing=ignore org.eclipse.jdt.core.compiler.problem.comparingIdentical=error org.eclipse.jdt.core.compiler.problem.deadCode=error -org.eclipse.jdt.core.compiler.problem.deprecation=error +org.eclipse.jdt.core.compiler.problem.deprecation=warning org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=enabled org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=enabled org.eclipse.jdt.core.compiler.problem.discouragedReference=error diff --git a/org.eclipse.linuxtools.tmf.core.tests/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.linuxtools.tmf.core.tests/.settings/org.eclipse.jdt.core.prefs index ca28311011..2906ea3644 100644 --- a/org.eclipse.linuxtools.tmf.core.tests/.settings/org.eclipse.jdt.core.prefs +++ b/org.eclipse.linuxtools.tmf.core.tests/.settings/org.eclipse.jdt.core.prefs @@ -18,7 +18,7 @@ org.eclipse.jdt.core.compiler.problem.assertIdentifier=error org.eclipse.jdt.core.compiler.problem.autoboxing=ignore org.eclipse.jdt.core.compiler.problem.comparingIdentical=error org.eclipse.jdt.core.compiler.problem.deadCode=error -org.eclipse.jdt.core.compiler.problem.deprecation=error +org.eclipse.jdt.core.compiler.problem.deprecation=warning org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=enabled org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=enabled org.eclipse.jdt.core.compiler.problem.discouragedReference=error diff --git a/org.eclipse.linuxtools.tmf.core/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.linuxtools.tmf.core/.settings/org.eclipse.jdt.core.prefs index 2189a924fd..4b705eb5df 100644 --- a/org.eclipse.linuxtools.tmf.core/.settings/org.eclipse.jdt.core.prefs +++ b/org.eclipse.linuxtools.tmf.core/.settings/org.eclipse.jdt.core.prefs @@ -19,7 +19,7 @@ org.eclipse.jdt.core.compiler.problem.autoboxing=ignore org.eclipse.jdt.core.compiler.problem.comparingIdentical=error org.eclipse.jdt.core.compiler.problem.deadCode=error org.eclipse.jdt.core.compiler.problem.deprecation=warning -org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=enabled +org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=enabled org.eclipse.jdt.core.compiler.problem.discouragedReference=error org.eclipse.jdt.core.compiler.problem.emptyStatement=error diff --git a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/HistoryBuilder.java b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/HistoryBuilder.java index 1dd6ea1011..c80841ce15 100644 --- a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/HistoryBuilder.java +++ b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/HistoryBuilder.java @@ -26,6 +26,7 @@ import org.eclipse.linuxtools.tmf.core.signal.TmfTraceRangeUpdatedSignal; import org.eclipse.linuxtools.tmf.core.statesystem.ITmfStateProvider; import org.eclipse.linuxtools.tmf.core.statesystem.ITmfStateSystem; import org.eclipse.linuxtools.tmf.core.statesystem.ITmfStateSystemBuilder; +import org.eclipse.linuxtools.tmf.core.statesystem.TmfStateSystemAnalysisModule; import org.eclipse.linuxtools.tmf.core.timestamp.TmfTimeRange; import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace; import org.eclipse.linuxtools.tmf.core.trace.TmfExperiment; @@ -40,7 +41,10 @@ import org.eclipse.linuxtools.tmf.core.trace.TmfExperiment; * * @author alexmont * + * @deprecated Building state systems should now be done via + * {@link TmfStateSystemAnalysisModule} */ +@Deprecated public class HistoryBuilder extends TmfComponent { private final ITmfStateProvider sp; diff --git a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statesystem/TmfStateSystemFactory.java b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statesystem/TmfStateSystemFactory.java index ebcb251c33..5395842e26 100644 --- a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statesystem/TmfStateSystemFactory.java +++ b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statesystem/TmfStateSystemFactory.java @@ -33,7 +33,11 @@ import org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException; * * @author Alexandre Montplaisir * @since 2.0 + * + * @deprecated Building state systems should now be done via + * {@link TmfStateSystemAnalysisModule} */ +@Deprecated public final class TmfStateSystemFactory extends TmfComponent { /** "static" class */ diff --git a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/TmfTrace.java b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/TmfTrace.java index a60b55b2d7..cd1c55d590 100644 --- a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/TmfTrace.java +++ b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/TmfTrace.java @@ -453,7 +453,6 @@ public abstract class TmfTrace extends TmfEventProvider implements ITmfTrace { * @since 2.0 * @deprecated See {@link ITmfTrace} */ - @SuppressWarnings("deprecation") @Deprecated @Override public final Map getStateSystems() { @@ -464,7 +463,6 @@ public abstract class TmfTrace extends TmfEventProvider implements ITmfTrace { * @since 2.0 * @deprecated See {@link ITmfTrace} */ - @SuppressWarnings("deprecation") @Deprecated @Override public final void registerStateSystem(String id, ITmfStateSystem ss) {