ss: remove deprecated code
authorLoïc Prieur-Drevon <loic.prieurdrevon@gmail.com>
Tue, 9 May 2017 19:44:25 +0000 (15:44 -0400)
committerJean-Christian Kouame <jean-christian.kouame@ericsson.com>
Thu, 18 May 2017 13:56:52 +0000 (09:56 -0400)
Change-Id: Ic231c473db3720f3052ec72b8db077af63d28357
Signed-off-by: Loïc Prieur-Drevon <loic.prieurdrevon@gmail.com>
Reviewed-on: https://git.eclipse.org/r/96686
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Tested-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
statesystem/org.eclipse.tracecompass.statesystem.core/META-INF/MANIFEST.MF
statesystem/org.eclipse.tracecompass.statesystem.core/src/org/eclipse/tracecompass/internal/statesystem/core/StateSystem.java
statesystem/org.eclipse.tracecompass.statesystem.core/src/org/eclipse/tracecompass/statesystem/core/ITmfStateSystem.java
statesystem/org.eclipse.tracecompass.statesystem.core/src/org/eclipse/tracecompass/statesystem/core/ITmfStateSystemBuilder.java
statesystem/org.eclipse.tracecompass.statesystem.core/src/org/eclipse/tracecompass/statesystem/core/StateSystemUtils.java
statesystem/org.eclipse.tracecompass.statesystem.core/src/org/eclipse/tracecompass/statesystem/core/backend/IStateHistoryBackend.java

index 6ff5d6783cc72e43030ccf8bb8ea7bbcbd9bd879..eeb06b27b4b58b50262f575f44504020262f395b 100644 (file)
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
 Bundle-ManifestVersion: 2
 Bundle-Name: %Bundle-Name
 Bundle-Vendor: %Bundle-Vendor
-Bundle-Version: 2.3.0.qualifier
+Bundle-Version: 3.0.0.qualifier
 Bundle-Localization: plugin
 Bundle-SymbolicName: org.eclipse.tracecompass.statesystem.core;singleton:=true
 Bundle-Activator: org.eclipse.tracecompass.internal.statesystem.core.Activator
index 5c607b08ed6ed6c64fccaff9952d443c6f54de6d..f1c0408f1fb7d4c556a109c5d9c062afd55eb854 100644 (file)
@@ -368,20 +368,6 @@ public class StateSystem implements ITmfStateSystemBuilder {
         transState.processStateChange(t, value, attributeQuark);
     }
 
-    @Deprecated
-    @Override
-    public void incrementAttribute(long t, int attributeQuark)
-            throws StateValueTypeException, TimeRangeException {
-        ITmfStateValue stateValue = queryOngoingState(attributeQuark);
-        int prevValue = 0;
-        /* if the attribute was previously null, start counting at 0 */
-        if (!stateValue.isNull()) {
-            prevValue = stateValue.unboxInt();
-        }
-        modifyAttribute(t, TmfStateValue.newValueInt(prevValue + 1),
-                attributeQuark);
-    }
-
     @Override
     public void pushAttribute(long t, @NonNull ITmfStateValue value, int attributeQuark)
             throws TimeRangeException, StateValueTypeException {
index 96d52689d3fae1ab1cff7cb556542644a90e19aa..1bde45a563ba3202359d244cbef78aa7a6d422f1 100644 (file)
@@ -456,7 +456,7 @@ public interface ITmfStateSystem {
      *             the number of attributes.
      * @throws TimeRangeException
      *             If the smallest time is before the state system start time.
-     * @since 2.3
+     * @since 3.0
      */
     Iterable<@NonNull ITmfStateInterval> query2D(@NonNull Collection<Integer> quarks,
             @NonNull Collection<Long> times) throws StateSystemDisposedException, IndexOutOfBoundsException, TimeRangeException;
@@ -481,7 +481,7 @@ public interface ITmfStateSystem {
      *             the number of attributes.
      * @throws TimeRangeException
      *             If the smallest time is before the state system start time.
-     * @since 2.3
+     * @since 3.0
      */
     Iterable<@NonNull ITmfStateInterval> query2D(@NonNull Collection<Integer> quarks,
             long start, long end) throws StateSystemDisposedException, IndexOutOfBoundsException, TimeRangeException;
index 817a6f2da906c547665cab3e616c14fd84f287b1..466fb2ff6860a8a3054a0ac7ff277ad30d37d128 100644 (file)
@@ -31,6 +31,7 @@ import org.eclipse.tracecompass.statesystem.core.statevalue.ITmfStateValue;
  * @author Alexandre Montplaisir
  * @noimplement Only the internal StateSystem class should implement this
  *              interface.
+ * @since 3.0
  */
 public interface ITmfStateSystemBuilder extends ITmfStateSystem {
 
@@ -130,30 +131,6 @@ public interface ITmfStateSystemBuilder extends ITmfStateSystem {
     void modifyAttribute(long t, @NonNull ITmfStateValue value, int attributeQuark)
             throws StateValueTypeException;
 
-    /**
-     * Increment attribute method. Reads the current value of a given integer
-     * attribute (this value is right now in the Transient State), and increment
-     * it by 1. Useful for statistics.
-     *
-     * @param t
-     *            Timestamp of the state change
-     * @param attributeQuark
-     *            Attribute to increment. If it doesn't exist it will be added,
-     *            with a new value of 1.
-     * @throws StateValueTypeException
-     *             If the attribute already exists but is not of type Integer
-     * @throws TimeRangeException
-     *             If the given timestamp is invalid
-     * @throws IndexOutOfBoundsException
-     *             If the attribute quark is out of range
-     * @deprecated Use
-     *             {@link StateSystemBuilderUtils#incrementAttributeInt(ITmfStateSystemBuilder, long, int, int)}
-     *             instead
-     */
-    @Deprecated
-    void incrementAttribute(long t, int attributeQuark)
-            throws StateValueTypeException;
-
     /**
      * "Push" helper method. This uses the given integer attribute as a stack:
      * The value of that attribute will represent the stack depth (always >= 1).
index 80a15cae113af18e4c81104cba6259566af65405..bdc472d289f9f84e09f41bf1c2b905cb89c83d5e 100644 (file)
@@ -407,7 +407,7 @@ public final class StateSystemUtils {
      *         resolution, or consecutive timestamps if resolution == 0.
      * @throws IllegalArgumentException
      *             if end < start or resolution < 0.
-     * @since 2.3
+     * @since 3.0
      */
     public static List<Long> getTimes(long from, long to, long resolution) {
         if (to < from || resolution < 0) {
index 7ae4cca1d6ca89e9be468c2480ceb997b5ab0c61..46dd306826a96fa2d4e53e731fd63a38f530a317 100644 (file)
@@ -194,7 +194,7 @@ public interface IStateHistoryBackend {
      * @return An un-ordered iterable over the queried intervals
      * @throws TimeRangeException
      *             if the time bounds are outside the range of the HistoryTree
-     * @since 2.3
+     * @since 3.0
      */
     default Iterable<@NonNull ITmfStateInterval> query2D(IntegerRangeCondition quarkCondition, TimeRangeCondition timeCondition)
             throws TimeRangeException {
This page took 0.029518 seconds and 5 git commands to generate.