Fix unnecessary @SuppressWarning and removed dead code.
authorFrancois Chouinard <fchouinard@gmail.com>
Tue, 29 May 2012 20:20:18 +0000 (16:20 -0400)
committerFrancois Chouinard <fchouinard@gmail.com>
Tue, 29 May 2012 20:25:19 +0000 (16:25 -0400)
19 files changed:
org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/trace/LTTngTextTrace.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/TmfCorePluginTest.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/TmfCoreTestPlugin.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/component/TmfEventProviderTest.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/component/TmfProviderManagerTest.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/ctfadaptor/CtfTmfTraceTest.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/event/AllTests.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/request/AllTests.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/request/TmfCoalescedDataRequestTest.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/request/TmfCoalescedEventRequestTest.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/request/TmfRequestExecutorTest.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/trace/AllTests.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/trace/TmfExperimentCheckpointIndexTest.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/trace/TmfExperimentTest.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/trace/TmfTraceTest.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/uml2sd/AllTests.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/util/AllTests.java
org.eclipse.linuxtools.tmf.core.tests/stubs/org/eclipse/linuxtools/tmf/tests/stubs/component/TmfClientStub.java
org.eclipse.linuxtools.tmf.core.tests/stubs/org/eclipse/linuxtools/tmf/tests/stubs/component/TmfSyntheticEventProviderStub.java

index 9517564a2cad0b19186dbe5c93906511d5785096..80d2c538db2b1a4eec2821f5d4a1e92ca305142b 100644 (file)
@@ -51,7 +51,7 @@ public class LTTngTextTrace extends TmfTrace<LttngEvent> implements ITmfEventPar
 
     private int cpuNumber = -1;
 
-    private final  boolean showDebug = false;
+//    private final  boolean showDebug = false;
 
     public LTTngTextTrace(final IResource resource, final String path) throws Exception {
         this(resource, path, true); // false);
@@ -136,11 +136,11 @@ public class LTTngTextTrace extends TmfTrace<LttngEvent> implements ITmfEventPar
             if ( skipPosition < 0 )
                 skipPosition = 0L;
 
-            if ( showDebug == true ) {
-                System.out.println("skipToPosition(Long skipPosition)"); //$NON-NLS-1$
-                System.out.println("\tSkipping to : " + skipPosition); //$NON-NLS-1$
-                System.out.println();
-            }
+//            if ( showDebug == true ) {
+//                System.out.println("skipToPosition(Long skipPosition)"); //$NON-NLS-1$
+//                System.out.println("\tSkipping to : " + skipPosition); //$NON-NLS-1$
+//                System.out.println();
+//            }
             positionToFirstEvent();
             final long nbSkipped = br.skip(skipPosition);
             if ( nbSkipped != skipPosition)
@@ -222,10 +222,10 @@ public class LTTngTextTrace extends TmfTrace<LttngEvent> implements ITmfEventPar
                 // We should check in a better way (string comparison and such) but it make the whole process to weight a lot more
                 // Conclusion : this is ugly but fast.
                 if ( tmpCurIndex < 0 ) {
-                    if ( showDebug == true ) {
-                        System.out.println("END OF FILE."); //$NON-NLS-1$
-                        System.out.println();
-                    }
+//                    if ( showDebug == true ) {
+//                        System.out.println("END OF FILE."); //$NON-NLS-1$
+//                        System.out.println();
+//                    }
                     return null;
                 }
 
@@ -376,11 +376,11 @@ public class LTTngTextTrace extends TmfTrace<LttngEvent> implements ITmfEventPar
 
                 returnedEvent = currentLttngEvent;
             }
-            else if ( showDebug == true ) {
-                System.out.println("NULL READING"); //$NON-NLS-1$
-                System.out.println();
-                returnedEvent = null;
-            }
+//            else if ( showDebug == true ) {
+//                System.out.println("NULL READING"); //$NON-NLS-1$
+//                System.out.println();
+//                returnedEvent = null;
+//            }
         }
         catch (final Exception e) {
             System.out.println("Pos is :" + nbCharRead); //$NON-NLS-1$
index f6b835c14f9b229d6b2e1408a680736f5109d491..bd6d76e7a7f717d1e53f38552d7bc8225fd95409 100644 (file)
@@ -21,7 +21,7 @@ import org.eclipse.linuxtools.internal.tmf.core.Activator;
  * <p>
  * Test the TMF core plug-in activator
  */
-@SuppressWarnings({ "nls", "restriction" })
+@SuppressWarnings({ "nls" })
 public class TmfCorePluginTest extends TestCase {
 
        // ------------------------------------------------------------------------
index 70f8cb4059a4f7425977bc0974e9f765d7965832..257dcc684f056b0786c8c5fef34c5a463c571f4f 100644 (file)
@@ -21,7 +21,7 @@ import org.osgi.framework.BundleContext;
  * <p>
  * The activator class controls the plug-in life cycle
  */
-@SuppressWarnings({ "nls", "restriction" })
+@SuppressWarnings({ "nls" })
 public class TmfCoreTestPlugin extends Plugin {
 
     // ------------------------------------------------------------------------
index 086b1640f800eeb32070abae644062f5f7510741..eb254bb750674f91487252bec05600e935f3dcf8 100644 (file)
@@ -35,7 +35,7 @@ import org.eclipse.linuxtools.tmf.tests.stubs.trace.TmfTraceStub;
  * <p>
  * Test suite for the TmfEventProvider class.
  */
-@SuppressWarnings({ "nls", "restriction" })
+@SuppressWarnings({ "nls" })
 public class TmfEventProviderTest extends TestCase {
 
     TmfEventProviderStub fEventProvider;
index 297b7d9c045ae48b258672d4f5f8d47ff8d3e4a7..d78bf5740155da29061e94d717facd7a58a80d80 100644 (file)
@@ -25,7 +25,7 @@ import org.eclipse.linuxtools.tmf.core.trace.ITmfContext;
  * <p>
  * Test suite for the TmfProviderManager class.
  */
-@SuppressWarnings({ "nls", "restriction" })
+@SuppressWarnings({ "nls" })
 public class TmfProviderManagerTest extends TestCase {
 
        public TmfProviderManagerTest(String name) {
index 2b90e67895ef5a25d7f1292ed856906be456b112..5a309f7e4b61f8de98b10478bc4baadbf601cdfc 100644 (file)
@@ -30,7 +30,6 @@ import org.junit.Test;
  * @author ematkho
  * @version $Revision: 1.0 $
  */
-@SuppressWarnings("restriction")
 public class CtfTmfTraceTest {
     private static final String PATH = TestParams.getPath();
 
@@ -906,4 +905,4 @@ public class CtfTmfTraceTest {
     public static void main(String[] args) {
         new org.junit.runner.JUnitCore().run(CtfTmfTraceTest.class);
     }
-}
\ No newline at end of file
+}
index 2ed7b58d334adf39583b12e151794b3ed95e395a..ebe265af8c8a4178dd64d42d224c555229fd6246 100644 (file)
@@ -21,7 +21,7 @@ import org.eclipse.linuxtools.internal.tmf.core.Activator;
 /**
  * Test suite for org.eclipse.linuxtools.tmf.core.event
  */
-@SuppressWarnings({ "nls", "restriction" })
+@SuppressWarnings({ "nls" })
 public class AllTests {
 
     public static Test suite() {
index 0e33340ea9518465df52d8502ff61bae32617ea6..ba8879363899eea327bdc81d8cfbdefbaf5899a9 100644 (file)
@@ -5,7 +5,7 @@ import junit.framework.TestSuite;
 
 import org.eclipse.linuxtools.internal.tmf.core.Activator;
 
-@SuppressWarnings({ "nls", "restriction" })
+@SuppressWarnings({ "nls" })
 public class AllTests {
 
        public static Test suite() {
index d5401eee4b16e3b011856768dda6502c6f989594..4bdf3bb0100afdf5efd79c434f4d13f5c7cca1c6 100644 (file)
@@ -25,7 +25,7 @@ import org.eclipse.linuxtools.tmf.tests.stubs.request.TmfDataRequestStub;
  * <p>
  * Test suite for the TmfCoalescedDataRequest class.
  */
-@SuppressWarnings({ "nls", "restriction" })
+@SuppressWarnings({ "nls" })
 public class TmfCoalescedDataRequestTest extends TestCase {
 
        // ------------------------------------------------------------------------
index ea10bc2ccb707e42b0bdcea1271e636f779e3dad..6a5cde095ceeab10b1b1393dce5edd0f2e9d44cc 100644 (file)
@@ -44,7 +44,7 @@ import org.eclipse.linuxtools.tmf.tests.stubs.trace.TmfTraceStub;
  * <p>
  * Test suite for the TmfCoalescedEventRequest class.
  */
-@SuppressWarnings({ "nls", "restriction" })
+@SuppressWarnings({ "nls" })
 public class TmfCoalescedEventRequestTest extends TestCase {
 
        // ------------------------------------------------------------------------
index 0f18f2a7e685e0ed38b33301da7d239a1c5e7864..4ed9e99150867124d5ad5ce575ef2ae2d298c8d2 100644 (file)
@@ -23,7 +23,7 @@ import org.eclipse.linuxtools.internal.tmf.core.request.TmfRequestExecutor;
  *
  * Test suite for the TmfRequestExecutor class.
  */
-@SuppressWarnings({ "nls", "restriction" })
+@SuppressWarnings({ "nls" })
 public class TmfRequestExecutorTest extends TestCase {
 
        // ------------------------------------------------------------------------
index 169560421b4f946d6759ec640f089d9e8c160239..cc0f5833701a7e595eb6045c9332f8850261211b 100644 (file)
@@ -21,7 +21,7 @@ import org.eclipse.linuxtools.internal.tmf.core.Activator;
 /**
  * Test suite for org.eclipse.linuxtools.tmf.core.trace
  */
-@SuppressWarnings({ "nls", "restriction" })
+@SuppressWarnings({ "nls" })
 public class AllTests {
 
        public static Test suite() {
index 5210f8047e2864742bbc854117da644fcad4ef82..d0a55d42d38e073a20525d25603f457a911bd007 100644 (file)
@@ -40,7 +40,7 @@ import org.eclipse.linuxtools.tmf.tests.stubs.trace.TmfTraceStub;
 /**
  * Test suite for the TmfCheckpointIndexTest class.
  */
-@SuppressWarnings({ "nls", "restriction" })
+@SuppressWarnings({ "nls" })
 public class TmfExperimentCheckpointIndexTest extends TestCase {
 
     // ------------------------------------------------------------------------
index 598568f6dc38d72318c8ae0501e5831bc2ed95a5..8a89d8e397fb977609a57bfaf9911907ed8fa399 100644 (file)
@@ -43,7 +43,7 @@ import org.eclipse.linuxtools.tmf.tests.stubs.trace.TmfTraceStub;
 /**
  * Test suite for the TmfExperiment class (single trace).
  */
-@SuppressWarnings({ "nls", "restriction" })
+@SuppressWarnings({ "nls" })
 public class TmfExperimentTest extends TestCase {
 
     // ------------------------------------------------------------------------
index 379ebb3c63a71eee78228cbdfb6179b59d93706e..20d621d2ed79b9fb2fd0fc32cd6e04311a1aa26d 100644 (file)
@@ -43,7 +43,7 @@ import org.eclipse.linuxtools.tmf.tests.stubs.trace.TmfTraceStub;
 /**
  * Test suite for the TmfTrace class.
  */
-@SuppressWarnings({ "nls", "restriction" })
+@SuppressWarnings({ "nls" })
 public class TmfTraceTest extends TestCase {
 
     // ------------------------------------------------------------------------
index 01d6327e36f8b8eda0af657014ffb6c4c45a37b7..d37cc454ef98fe065fd034f1f09263a83ad2b1ed 100644 (file)
@@ -5,7 +5,7 @@ import junit.framework.TestSuite;
 
 import org.eclipse.linuxtools.internal.tmf.core.Activator;
 
-@SuppressWarnings({ "nls", "restriction" })
+@SuppressWarnings({ "nls" })
 public class AllTests {
 
        public static Test suite() {
index 1693f2aa4043cc68df1dd6201e8198ec8288ee51..1a881308aefc285d32891630d247c7474c06d307 100644 (file)
@@ -5,7 +5,7 @@ import junit.framework.TestSuite;
 
 import org.eclipse.linuxtools.internal.tmf.core.Activator;
 
-@SuppressWarnings({ "nls", "restriction" })
+@SuppressWarnings({ "nls" })
 public class AllTests {
 
        public static Test suite() {
index 4274eff126e3874e3f3d6aabff2d7c9b82b51107..0107bf547e2374cf55d2d50021db5fb93b9c2246 100644 (file)
@@ -22,7 +22,7 @@ import org.eclipse.linuxtools.tmf.tests.stubs.event.TmfSyntheticEventStub;
  * <p>
  * TODO: Implement me. Please.
  */
-@SuppressWarnings({ "nls", "restriction" })
+@SuppressWarnings({ "nls" })
 public class TmfClientStub extends TmfComponent {
 
     private TmfDataProvider<TmfSyntheticEventStub>[] fProviders;
index 664de2142f784b9f5f66c7ce3abc72162c6386fd..678cb711a2823f6a170a54e0a1c043f259210f0d 100644 (file)
@@ -31,7 +31,7 @@ import org.eclipse.linuxtools.tmf.tests.stubs.event.TmfSyntheticEventStub;
  * <p>
  * TODO: Implement me. Please.
  */
-@SuppressWarnings({ "nls", "restriction" })
+@SuppressWarnings({ "nls" })
 public class TmfSyntheticEventProviderStub extends TmfEventProvider<TmfSyntheticEventStub> {
 
     public static final int BLOCK_SIZE = 100;
This page took 0.034547 seconds and 5 git commands to generate.