tmf: Disable NLS warnings in tests
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Mon, 18 Mar 2013 20:12:40 +0000 (16:12 -0400)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Mon, 18 Mar 2013 21:37:22 +0000 (17:37 -0400)
Change-Id: I202b132026aff9339778f4cc5cc7fa13fe3fc995
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/11284
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
IP-Clean: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Hudson CI
77 files changed:
org.eclipse.linuxtools.tmf.core.tests/.settings/org.eclipse.jdt.core.prefs
org.eclipse.linuxtools.tmf.core.tests/shared/org/eclipse/linuxtools/tmf/core/tests/shared/CtfTmfTestTraces.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/CtfIteratorTest.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/ctfadaptor/CtfLocationDataTest.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/ctfadaptor/CtfLocationTest.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/ctfadaptor/CtfTmfEventFieldTest.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/ctfadaptor/CtfTmfEventTest.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/ctfadaptor/CtfTmfEventTypeTest.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/ctfadaptor/CtfTmfTimestampTest.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/ctfadaptor/headless/Benchmark.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/ctfadaptor/headless/RequestBenchmark.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/event/TmfEventFieldTest.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/event/TmfEventTest.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/event/TmfEventTypeManagerTest.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/event/TmfEventTypeTest.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/event/TmfSimpleTimestampTest.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/event/TmfTimeRangeTest.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/event/TmfTimestampDeltaTest.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/event/TmfTimestampTest.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/TmfDataRequestTest.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/request/TmfEventRequestTest.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/statesystem/StateSystemPushPopTest.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/statesystem/VerifyHistoryFile.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/statistics/TmfStateStatisticsTest.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/statistics/TmfStatisticsTest.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/trace/TmfCheckpointIndexTest.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/trace/TmfCheckpointIndexTest2.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/trace/TmfCheckpointTest.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/trace/TmfContextTest.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/TmfLocationTest.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/trace/TmfMultiTraceExperimentTest.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/TmfAsyncSequenceDiagramEventTest.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/uml2sd/TmfSyncSequenceDiagramEventTest.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/util/PairTest.java
org.eclipse.linuxtools.tmf.core.tests/stubs/org/eclipse/linuxtools/tmf/tests/stubs/CreateTestFiles.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/TmfDataProviderStub.java
org.eclipse.linuxtools.tmf.core.tests/stubs/org/eclipse/linuxtools/tmf/tests/stubs/component/TmfEventProviderStub.java
org.eclipse.linuxtools.tmf.core.tests/stubs/org/eclipse/linuxtools/tmf/tests/stubs/component/TmfSyntheticEventProviderStub.java
org.eclipse.linuxtools.tmf.core.tests/stubs/org/eclipse/linuxtools/tmf/tests/stubs/event/TmfEventTypeStub.java
org.eclipse.linuxtools.tmf.core.tests/stubs/org/eclipse/linuxtools/tmf/tests/stubs/trace/TmfEventParserStub.java
org.eclipse.linuxtools.tmf.core.tests/stubs/org/eclipse/linuxtools/tmf/tests/stubs/trace/TmfTraceStub.java
org.eclipse.linuxtools.tmf.ui.tests/.settings/org.eclipse.jdt.core.prefs
org.eclipse.linuxtools.tmf.ui.tests/src/org/eclipse/linuxtools/tmf/ui/tests/histogram/HistogramDataModelTest.java
org.eclipse.linuxtools.tmf.ui.tests/src/org/eclipse/linuxtools/tmf/ui/tests/statistics/TmfBaseColumnDataProviderTest.java
org.eclipse.linuxtools.tmf.ui.tests/src/org/eclipse/linuxtools/tmf/ui/tests/statistics/TmfBaseColumnDataTest.java
org.eclipse.linuxtools.tmf.ui.tests/src/org/eclipse/linuxtools/tmf/ui/tests/statistics/TmfBaseStatisticsDataTest.java
org.eclipse.linuxtools.tmf.ui.tests/src/org/eclipse/linuxtools/tmf/ui/tests/statistics/TmfStatisticsTreeManagerTest.java
org.eclipse.linuxtools.tmf.ui.tests/src/org/eclipse/linuxtools/tmf/ui/tests/statistics/TmfStatisticsTreeNodeTest.java
org.eclipse.linuxtools.tmf.ui.tests/src/org/eclipse/linuxtools/tmf/ui/tests/statistics/TmfTreeContentProviderTest.java
org.eclipse.linuxtools.tmf.ui.tests/src/org/eclipse/linuxtools/tmf/ui/tests/views/uml2sd/dialogs/CriteriaTest.java
org.eclipse.linuxtools.tmf.ui.tests/src/org/eclipse/linuxtools/tmf/ui/tests/views/uml2sd/load/LoadersManagerTest.java
org.eclipse.linuxtools.tmf.ui.tests/src/org/eclipse/linuxtools/tmf/ui/tests/views/uml2sd/loader/IUml2SDTestConstants.java
org.eclipse.linuxtools.tmf.ui.tests/src/org/eclipse/linuxtools/tmf/ui/tests/views/uml2sd/loader/TmfUml2SDSyncLoaderExpTest.java
org.eclipse.linuxtools.tmf.ui.tests/src/org/eclipse/linuxtools/tmf/ui/tests/views/uml2sd/loader/TmfUml2SDSyncLoaderFilterTest.java
org.eclipse.linuxtools.tmf.ui.tests/src/org/eclipse/linuxtools/tmf/ui/tests/views/uml2sd/loader/TmfUml2SDSyncLoaderFindTest.java
org.eclipse.linuxtools.tmf.ui.tests/src/org/eclipse/linuxtools/tmf/ui/tests/views/uml2sd/loader/TmfUml2SDSyncLoaderPagesTest.java
org.eclipse.linuxtools.tmf.ui.tests/src/org/eclipse/linuxtools/tmf/ui/tests/views/uml2sd/loader/TmfUml2SDSyncLoaderSignalTest.java
org.eclipse.linuxtools.tmf.ui.tests/src/org/eclipse/linuxtools/tmf/ui/tests/views/uml2sd/loader/TmfUml2SDSyncLoaderTimeTest.java
org.eclipse.linuxtools.tmf.ui.tests/src/org/eclipse/linuxtools/tmf/ui/tests/views/uml2sd/loader/Uml2SDTestFacility.java
org.eclipse.linuxtools.tmf.ui.tests/widgetStubs/org/eclipse/linuxtools/tmf/ui/tests/uml2sd/load/TestLoaders.java
org.eclipse.linuxtools.tmf.ui.tests/widgetStubs/org/eclipse/linuxtools/tmf/ui/tests/uml2sd/trace/TmfUml2SDTestTrace.java
org.eclipse.linuxtools.tmf.ui.tests/widgetStubs/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/test/stub/adaption/TsfImplProvider.java
org.eclipse.linuxtools.tmf.ui.tests/widgetStubs/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/test/stub/model/TraceImpl.java
org.eclipse.linuxtools.tmf.ui.tests/widgetStubs/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/test/stub/model/TraceModelImplFactory.java
org.eclipse.linuxtools.tmf.ui.tests/widgetStubs/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/test/stub/views/TsfTraceAnalysisView.java

index bca8c277d1a92859366d3c086a78249037f4e1ed..2e1d0e670c9a96bd447d9b6278c51ad8276e9273 100644 (file)
@@ -60,7 +60,7 @@ org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
 org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=warning
 org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
 org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
-org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=warning
+org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
 org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=warning
 org.eclipse.jdt.core.compiler.problem.nullReference=error
 org.eclipse.jdt.core.compiler.problem.nullSpecViolation=error
index d99ae7bae3232d2b83c0839e0c98ce2701ce33ba..905bb4d5ef73e33dc79c8f262ed29c504932f548 100644 (file)
@@ -31,7 +31,7 @@ public final class CtfTmfTestTraces {
 
     private CtfTmfTestTraces() {}
 
-    private static final File emptyFile = new File(""); //$NON-NLS-1$
+    private static final File emptyFile = new File("");
     private static CtfTmfTrace emptyTrace = new CtfTmfTrace();
 
     private static CtfTmfTrace[] testTraces = new CtfTmfTrace[2];
index 0c8864d214f88cf6ce008b07d82c09016439410c..4e09e75cc2b78f740012e7c5bce56d6d9d173a1d 100644 (file)
@@ -21,7 +21,6 @@ import org.junit.Test;
 /**
  * Test the TMF core plug-in activator
  */
-@SuppressWarnings("nls")
 public class TmfCorePluginTest {
 
     // ------------------------------------------------------------------------
index 4ea0204b1946a7cb18d9e651cb6c023120cda9f4..2b9d00f45be65458aaae7d086121f1a79f5777d7 100644 (file)
@@ -21,7 +21,6 @@ import org.osgi.framework.BundleContext;
  * <p>
  * The activator class controls the plug-in life cycle
  */
-@SuppressWarnings({ "nls" })
 public class TmfCoreTestPlugin extends Plugin {
 
     // ------------------------------------------------------------------------
index 9c981697b24f3ba4fa57f98e2cc130770fb96fa2..f393286cb9b9d35090c956bed79641cfcb641c10 100644 (file)
@@ -37,7 +37,6 @@ import org.junit.Test;
 /**
  * Test suite for the TmfEventProvider class.
  */
-@SuppressWarnings("nls")
 public class TmfEventProviderTest {
 
     private TmfEventProviderStub fEventProvider;
index 6bbc0f7aeb95aa2818b39b917091c205f0e0c9cc..ba4840ecf2a2d08d4a1f9821d8f14c00131dc029 100644 (file)
@@ -28,7 +28,6 @@ import org.junit.Test;
 /**
  * Test suite for the TmfProviderManager class.
  */
-@SuppressWarnings("nls")
 public class TmfProviderManagerTest {
 
     // ------------------------------------------------------------------------
index b583c6cced127f83993fc71966fd124960ab8388..f5a001c62cb92a25315c3fb94e782c15b7fafc60 100644 (file)
@@ -84,7 +84,7 @@ public class CtfIteratorTest {
     @Test
     public void testCtfIterator_init() {
         CtfTmfTrace trace = getTrace();
-        trace.init("test"); //$NON-NLS-1$
+        trace.init("test");
         CtfIterator result = new CtfIterator(trace);
 
         assertNotNull(result);
index c15e4591389e4c1983c442ffdd466f0ef70c2afb..c5cadab591e2d3cbc97ba7f857c048a8a8cb1ee4 100644 (file)
@@ -93,7 +93,7 @@ public class CtfLocationDataTest {
      */
     @Test
     public void testToString() {
-        String expected = "Element [1/0]"; //$NON-NLS-1$
+        String expected = "Element [1/0]";
         assertEquals(expected, fixture.toString());
     }
 }
index a7361218068bea269f34a97792ef0cef5fcedb78..9ae5053614eddece7f252509fc0a428fab647e7c 100644 (file)
@@ -74,7 +74,7 @@ public class CtfLocationTest {
         CtfLocationInfo location = fixture.getLocationInfo();
         Long result = location.getTimestamp();
         assertNotNull(result);
-        assertEquals("1", result.toString()); //$NON-NLS-1$
+        assertEquals("1", result.toString());
         assertEquals((byte) 1, result.byteValue());
         assertEquals((short) 1, result.shortValue());
         assertEquals(1, result.intValue());
@@ -98,7 +98,7 @@ public class CtfLocationTest {
     @Test
     public void testToString_valid(){
         CtfLocation fixture2 = new CtfLocation(new CtfLocationInfo(1337, 7331));
-        assertEquals("CtfLocation [fLocationInfo=Element [1337/7331]]", fixture2.toString()); //$NON-NLS-1$
+        assertEquals("CtfLocation [fLocationInfo=Element [1337/7331]]", fixture2.toString());
     }
 
     /**
@@ -107,6 +107,6 @@ public class CtfLocationTest {
     @Test
     public void testToString_invalid(){
         CtfLocation fixture2 = new CtfLocation(new CtfLocationInfo(-1, -1));
-        assertEquals("CtfLocation [INVALID]", fixture2.toString()); //$NON-NLS-1$
+        assertEquals("CtfLocation [INVALID]", fixture2.toString());
     }
 }
index c0dc0189f01fd662407f3104d829bb188f024f9a..e81e49cf10e9667b18ca381d22248c2d26944084 100644 (file)
@@ -39,7 +39,6 @@ import org.junit.Test;
  * @author ematkho
  * @version 1.0
  */
-@SuppressWarnings("nls")
 public class CtfTmfEventFieldTest {
 
     private static final String ROOT = "root";
index 9a11af0b123ddf9f38b44e978fe86e15c630f2ec..1b6cb640610e2eb6299caf2eefa4f1c76925426b 100644 (file)
@@ -91,7 +91,7 @@ public class CtfTmfEventTest {
     @Test
     public void testGetEventName() {
         String result = nullEvent.getEventName();
-        assertEquals("Empty CTF event", result); //$NON-NLS-1$
+        assertEquals("Empty CTF event", result);
     }
 
     /**
@@ -108,7 +108,7 @@ public class CtfTmfEventTest {
      */
     @Test
     public void testGetFieldValue() {
-        String fieldName = "pid"; //$NON-NLS-1$
+        String fieldName = "pid";
         ITmfEventField result = fixture.getContent().getField(fieldName);
 
         assertNotNull(result);
@@ -154,10 +154,10 @@ public class CtfTmfEventTest {
         String source = fixture.getSource();
         ITmfEventType type = fixture.getType();
         assertEquals(ITmfContext.UNKNOWN_RANK, rank);
-        assertEquals("test", trace.getName()); //$NON-NLS-1$
-        assertEquals("channel0_1", reference); //$NON-NLS-1$
-        assertEquals("1", source); //$NON-NLS-1$
-        assertEquals("lttng_statedump_vm_map", type.toString()); //$NON-NLS-1$
+        assertEquals("test", trace.getName());
+        assertEquals("channel0_1", reference);
+        assertEquals("1", source);
+        assertEquals("lttng_statedump_vm_map", type.toString());
     }
 
     /**
@@ -169,7 +169,7 @@ public class CtfTmfEventTest {
         Set<String> attributes = fixture.listCustomAttributes();
         assertEquals(0, attributes.size());
 
-        String attrib = fixture.getCustomAttribute("bozo"); //$NON-NLS-1$
+        String attrib = fixture.getCustomAttribute("bozo");
         assertNull(attrib);
     }
 
@@ -179,7 +179,7 @@ public class CtfTmfEventTest {
     @Test
     public void testToString() {
         String s = fixture.getContent().toString();
-        assertEquals("pid=1922, start=0xb73ea000, end=0xb73ec000, flags=0x8000075, inode=917738, pgoff=0", s); //$NON-NLS-1$
+        assertEquals("pid=1922, start=0xb73ea000, end=0xb73ec000, flags=0x8000075, inode=917738, pgoff=0", s);
     }
 
     /**
@@ -192,8 +192,8 @@ public class CtfTmfEventTest {
         assertSame(nullEvent2, nullEvent);
         assertNotNull(nullEvent);
         assertEquals(-1, nullEvent.getCPU());
-        assertEquals("Empty CTF event", nullEvent.getEventName()); //$NON-NLS-1$
-        assertEquals("No stream", nullEvent.getReference()); //$NON-NLS-1$
+        assertEquals("Empty CTF event", nullEvent.getEventName());
+        assertEquals("No stream", nullEvent.getReference());
         assertArrayEquals(new ITmfEventField[0], nullEvent.getContent().getFields());
         assertEquals(-1L, nullEvent.getID());
         assertEquals(-1L, nullEvent.getTimestamp().getValue());
index 04812bda30a5ba2cf7c9d1c894b2f0a6f8abe9f4..2f9b446d5fd8e840c811867cc6062abe7db1ef9a 100644 (file)
@@ -31,7 +31,6 @@ import org.junit.Test;
  * @author ematkho
  * @version 1.0
  */
-@SuppressWarnings({"nls"})
 public class CtfTmfTimestampTest {
 
     /**
@@ -46,7 +45,7 @@ public class CtfTmfTimestampTest {
         CtfTmfTimestamp result = new CtfTmfTimestamp(timestamp);
 
         assertNotNull(result);
-        assertEquals(df.format(d) + " 000 001", result.toString()); //$NON-NLS-1$
+        assertEquals(df.format(d) + " 000 001", result.toString());
         assertEquals(0, result.getPrecision());
         assertEquals(-9, result.getScale());
         assertEquals(1L, result.getValue());
index 519810cf58815f757c625e33ae9ef901841fb528..3805bf6ed823a097f2335952d5e0edb53be41f90 100644 (file)
@@ -187,9 +187,9 @@ public class CtfTmfTraceTest {
      */
     @Test
     public void testGetEnvValue() {
-        String key = "tracer_name"; //$NON-NLS-1$
+        String key = "tracer_name";
         String result = fixture.getEnvValue(key);
-        assertEquals("\"lttng-modules\"",result); //$NON-NLS-1$
+        assertEquals("\"lttng-modules\"",result);
     }
 
     /**
index 6b69e3b0d5a77a3e4e3d653f79bd2bcebd487594..ebffe99c614cdced17c131dee798daa667dbc0b0 100644 (file)
@@ -32,7 +32,7 @@ public class Benchmark {
      * @param args The command-line arguments
      */
     public static void main(final String[] args) {
-        final String TRACE_PATH = "testfiles/kernel"; //$NON-NLS-1$
+        final String TRACE_PATH = "testfiles/kernel";
         final int NUM_LOOPS = 100;
 
         // Change this to enable text output
@@ -63,9 +63,9 @@ public class Benchmark {
                     nbEvent++;
                     if (USE_TEXT) {
 
-                        System.out.println("Event " + nbEvent + " Time " //$NON-NLS-1$ //$NON-NLS-2$
-                                + current.getTimestamp().toString() + " type " + current.getEventName() //$NON-NLS-1$
-                                + " on CPU " + current.getSource() + " " + current.getContent().toString()) ; //$NON-NLS-1$ //$NON-NLS-2$
+                        System.out.println("Event " + nbEvent + " Time "
+                                + current.getTimestamp().toString() + " type " + current.getEventName()
+                                + " on CPU " + current.getSource() + " " + current.getContent().toString());
                     }
                     // advance the trace to the next event.
                     boolean hasMore = traceReader.advance();
@@ -80,16 +80,16 @@ public class Benchmark {
             final double time = (stop - start) / (double) nbEvent;
             benchs.add(time);
         }
-        System.out.println(""); //$NON-NLS-1$
+        System.out.println("");
         double avg = 0;
         for (final Double val : benchs) {
             avg += val;
         }
         avg /= benchs.size();
-        System.out.println("Time to read = " + avg + " events/ns"); //$NON-NLS-1$ //$NON-NLS-2$
+        System.out.println("Time to read = " + avg + " events/ns");
         for (final Double val : benchs) {
             System.out.print(val);
-            System.out.print(", "); //$NON-NLS-1$
+            System.out.print(", ");
         }
 
     }
index c3f109d4da1272ce400cc3d59c0698234ac5213d..540386c1759b10cf1489901741b8cbb0b2ed572f 100644 (file)
@@ -34,7 +34,7 @@ public class RequestBenchmark extends TmfEventRequest {
     }
 
     // Path of the trace
-    private static final String TRACE_PATH = "../org.eclipse.linuxtools.ctf.core.tests/traces/kernel"; //$NON-NLS-1$
+    private static final String TRACE_PATH = "../org.eclipse.linuxtools.ctf.core.tests/traces/kernel";
 
     // Change this to run several time over the same trace
     private static final int NB_OF_PASS = 100;
@@ -58,7 +58,7 @@ public class RequestBenchmark extends TmfEventRequest {
             traces[0] = new CtfTmfTrace();
             traces[0].initTrace(null, TRACE_PATH, CtfTmfEvent.class);
             /* Create our new experiment */
-            fExperiment = new TmfExperiment(CtfTmfEvent.class, "Headless", traces); //$NON-NLS-1$
+            fExperiment = new TmfExperiment(CtfTmfEvent.class, "Headless", traces);
 
             /*
              * We will issue a request for each "pass". TMF will then process
@@ -103,10 +103,10 @@ public class RequestBenchmark extends TmfEventRequest {
         benchs.add(val);
         if (benchs.size() == NB_OF_PASS) {
             try {
-                System.out.println("Nb events : " + nbEvent2); //$NON-NLS-1$
+                System.out.println("Nb events : " + nbEvent2);
 
                 for (final double value : benchs) {
-                    System.out.print(value + ", "); //$NON-NLS-1$
+                    System.out.print(value + ", ");
                 }
                 fExperiment.sendRequest(null);
 
index aacbfce16c7d69602ee57a6d7b7487783b918667..97ee56b83120431dd1c4a13241b90a03a447a213 100644 (file)
@@ -28,7 +28,7 @@ import org.junit.Test;
 /**
  * Test suite for the TmfEventField class.
  */
-@SuppressWarnings({"nls", "javadoc"})
+@SuppressWarnings("javadoc")
 public class TmfEventFieldTest {
 
     // ------------------------------------------------------------------------
index 60f884ebb6ca12954b0844166e8bc618bddc6e6d..ce9ffbc7516b31ac586b3af0678049bb6d48ec1f 100644 (file)
@@ -45,7 +45,7 @@ import org.junit.Test;
 /**
  * Test suite for the TmfEvent class.
  */
-@SuppressWarnings({"nls", "javadoc"})
+@SuppressWarnings("javadoc")
 public class TmfEventTest {
 
     // ------------------------------------------------------------------------
index 1095fec4dc0ca1a06eadfcadea0a63c0378ec86d..b69d2deff2af542863f1c5b05d5d2fa154f6f66f 100644 (file)
@@ -29,7 +29,7 @@ import org.junit.Test;
 /**
  * Test suite for the TmfEventTypeManager class.
  */
-@SuppressWarnings({"nls", "javadoc"})
+@SuppressWarnings("javadoc")
 public class TmfEventTypeManagerTest {
 
     // ------------------------------------------------------------------------
index d5cce0b842a8fbab8648dc4eb766e151bf261800..9de2c4a2c7d511dfb595f01b50887a14dc42d197 100644 (file)
@@ -28,7 +28,7 @@ import org.junit.Test;
 /**
  * Test suite for the TmfEventType class.
  */
-@SuppressWarnings({"nls", "javadoc"})
+@SuppressWarnings("javadoc")
 public class TmfEventTypeTest {
 
     // ------------------------------------------------------------------------
index 3d3c82052af2fb8477af240069d173ca4281e696..a2f5604254b9967e9926c698428950030042dbd6 100644 (file)
@@ -30,7 +30,7 @@ import org.junit.Test;
 /**
  * Test suite for the TmfSimpleTimestampTest class.
  */
-@SuppressWarnings({"nls", "javadoc"})
+@SuppressWarnings("javadoc")
 public class TmfSimpleTimestampTest {
 
     // ------------------------------------------------------------------------
index b6427416033e4c80e9b0b980f78d4da3930032b0..fee6c31004b4d447c3067dc634a5ea22a467c229 100644 (file)
@@ -27,7 +27,7 @@ import org.junit.Test;
 /**
  * Test suite for the TmfTimeRange class.
  */
-@SuppressWarnings({"nls", "javadoc"})
+@SuppressWarnings("javadoc")
 public class TmfTimeRangeTest {
 
     // ------------------------------------------------------------------------
index 6fe69008148ede02507a1108796c17df2e01c771..fd0e01b002ff06dadfa67bde4ac86c98ffffe022 100644 (file)
@@ -26,7 +26,7 @@ import org.junit.Test;
 /**
  * Test suite for the TmfTimestampDelta class.
  */
-@SuppressWarnings({"nls", "javadoc"})
+@SuppressWarnings("javadoc")
 public class TmfTimestampDeltaTest {
 
     // ------------------------------------------------------------------------
index 7e56231fbee9dda017f016963f82dfd8da474642..63b3b4c9d1f2f5dbcd215f4c0c17480401df9275 100644 (file)
@@ -31,7 +31,7 @@ import org.junit.Test;
 /**
  * Test suite for the TmfTimestamp class.
  */
-@SuppressWarnings({"nls", "javadoc"})
+@SuppressWarnings("javadoc")
 public class TmfTimestampTest {
 
     // ------------------------------------------------------------------------
index 61dd2c409458cf873e2c4e05e42349e19271ff20..c0771e0412344b4946ec0d6823b4c300ad1581a3 100644 (file)
@@ -28,7 +28,7 @@ import org.junit.Test;
 /**
  * Test suite for the TmfCoalescedDataRequest class.
  */
-@SuppressWarnings({ "nls", "javadoc" })
+@SuppressWarnings("javadoc")
 public class TmfCoalescedDataRequestTest {
 
     // ------------------------------------------------------------------------
index bb8b94f1ce833dfe19d0fcc96e1221ce2eee58a1..61f427fad2a3909517daeb30fdb9f97adbb6fbe1 100644 (file)
@@ -48,7 +48,7 @@ import org.junit.Test;
 /**
  * Test suite for the TmfCoalescedEventRequest class.
  */
-@SuppressWarnings({ "nls", "javadoc" })
+@SuppressWarnings("javadoc")
 public class TmfCoalescedEventRequestTest {
 
     // ------------------------------------------------------------------------
index f7ff068fc49fa2be305f7aed4f3a33c71ae626cd..bd0ad315c0c5aa2adc1a26a55c206b236d2cb284 100644 (file)
@@ -26,7 +26,7 @@ import org.junit.Test;
 /**
  * Test suite for the TmfDataRequest class.
  */
-@SuppressWarnings({ "nls", "javadoc" })
+@SuppressWarnings("javadoc")
 public class TmfDataRequestTest {
 
     // ------------------------------------------------------------------------
index ff6455d1adc8c903568b9e1bda6d1589e8fb7b6e..e1b0ce369e7839d0f30096c877d1b38dd3ebe36a 100644 (file)
@@ -29,7 +29,7 @@ import org.junit.Test;
 /**
  * Test suite for the TmfEventRequest class.
  */
-@SuppressWarnings({ "nls", "javadoc" })
+@SuppressWarnings("javadoc")
 public class TmfEventRequestTest {
 
     // ------------------------------------------------------------------------
index 578e5f131cab742011564cb48ba6db796a8f9b77..630f57653183df01b80588eca0ae895b0f56e050 100644 (file)
@@ -36,7 +36,6 @@ import org.junit.Test;
 /**
  * Test suite for the TmfRequestExecutor class.
  */
-@SuppressWarnings({ "nls" })
 public class TmfRequestExecutorTest {
 
     // ------------------------------------------------------------------------
index 27103f29deb0c61c1789cf1511426c670696ef23..7523a9a6c193964485aa2aaeffed5a7e5ec6df27 100644 (file)
@@ -51,14 +51,14 @@ public class StateSystemPushPopTest {
 
     private final File testHtFile;
 
-    private final static String errMsg = "Caught exception: "; //$NON-NLS-1$
+    private final static String errMsg = "Caught exception: ";
 
     /* State values that will be used */
     //private final static ITmfStateValue nullValue = TmfStateValue.nullValue();
-    private final static ITmfStateValue value1 = TmfStateValue.newValueString("A"); //$NON-NLS-1$
+    private final static ITmfStateValue value1 = TmfStateValue.newValueString("A");
     private final static ITmfStateValue value2 = TmfStateValue.newValueInt(10);
     private final static ITmfStateValue value3 = TmfStateValue.nullValue();
-    private final static ITmfStateValue value4 = TmfStateValue.newValueString("D"); //$NON-NLS-1$
+    private final static ITmfStateValue value4 = TmfStateValue.newValueString("D");
     private final static ITmfStateValue value5 = TmfStateValue.newValueLong(Long.MAX_VALUE);
 
     /**
@@ -68,7 +68,7 @@ public class StateSystemPushPopTest {
      *             If we couldn't create the state history test file
      */
     public StateSystemPushPopTest() throws IOException {
-        testHtFile = File.createTempFile("test", ".ht"); //$NON-NLS-1$ //$NON-NLS-2$
+        testHtFile = File.createTempFile("test", ".ht");
         testHtFile.deleteOnExit();
     }
 
@@ -95,7 +95,7 @@ public class StateSystemPushPopTest {
         ss = new StateSystem(backend, true);
 
         /* Build the thing */
-        final int attrib = ss.getQuarkAbsoluteAndAdd("Test", "stack"); //$NON-NLS-1$ //$NON-NLS-2$
+        final int attrib = ss.getQuarkAbsoluteAndAdd("Test", "stack");
 
         ss.pushAttribute( 2, value1, attrib);
         ss.pushAttribute( 4, value2, attrib);
@@ -136,7 +136,7 @@ public class StateSystemPushPopTest {
         assertEquals(null, value); // Stack should already be empty here.
 
         ss.closeHistory(30);
-        attribute = ss.getQuarkAbsolute("Test", "stack"); //$NON-NLS-1$ //$NON-NLS-2$
+        attribute = ss.getQuarkAbsolute("Test", "stack");
     }
 
     /**
@@ -179,8 +179,8 @@ public class StateSystemPushPopTest {
     @Test
     public void testSingleQueries() {
         try {
-            final int subAttribute1 = ss.getQuarkRelative(attribute, "1"); //$NON-NLS-1$
-            final int subAttribute2 = ss.getQuarkRelative(attribute, "2"); //$NON-NLS-1$
+            final int subAttribute1 = ss.getQuarkRelative(attribute, "1");
+            final int subAttribute2 = ss.getQuarkRelative(attribute, "2");
 
             /* Test the stack attributes themselves */
             interval = ss.querySingleState(11, attribute);
@@ -284,10 +284,10 @@ public class StateSystemPushPopTest {
     public void testFullQueries() {
         List<ITmfStateInterval> state;
         try {
-            final int subAttrib1 = ss.getQuarkRelative(attribute, "1"); //$NON-NLS-1$
-            final int subAttrib2 = ss.getQuarkRelative(attribute, "2"); //$NON-NLS-1$
-            final int subAttrib3 = ss.getQuarkRelative(attribute, "3"); //$NON-NLS-1$
-            final int subAttrib4 = ss.getQuarkRelative(attribute, "4"); //$NON-NLS-1$
+            final int subAttrib1 = ss.getQuarkRelative(attribute, "1");
+            final int subAttrib2 = ss.getQuarkRelative(attribute, "2");
+            final int subAttrib3 = ss.getQuarkRelative(attribute, "3");
+            final int subAttrib4 = ss.getQuarkRelative(attribute, "4");
 
             /* Stack depth = 5 */
             state = ss.queryFullState(10);
index d25899f13f1a21eb642b5e39ee58fb31d66688c1..b65cd3e88b5d725d39b8da9a23956c6a09f4c6e5 100644 (file)
@@ -33,7 +33,7 @@ import org.eclipse.linuxtools.tmf.core.statesystem.ITmfStateSystem;
  *
  * @author alexmont
  */
-@SuppressWarnings({"nls","javadoc"})
+@SuppressWarnings("javadoc")
 public class VerifyHistoryFile {
 
     // Enter the .ht file name to test here
index 59af504a1e352ac6c49d9aebeb5071d5b7f1a004..a409d46afcd016d42804562da2ac17e6b867c6b5 100644 (file)
@@ -37,7 +37,7 @@ public class TmfStateStatisticsTest extends TmfStatisticsTest {
     public static void setUpClass() {
         assumeTrue(CtfTmfTestTraces.tracesExist());
         try {
-            File htFile = File.createTempFile("stats-test", ".ht"); //$NON-NLS-1$ //$NON-NLS-2$
+            File htFile = File.createTempFile("stats-test", ".ht");
             htFile.deleteOnExit();
             CtfTmfTrace trace = CtfTmfTestTraces.getTestTrace(TRACE_INDEX);
             backend = new TmfStateStatistics(trace, htFile);
index babe14cc4663ee8d44905dfb4a0b65561b7e6ec4..efcee736d0452b353d6a27a72f0cab97905b429b 100644 (file)
@@ -47,7 +47,7 @@ public abstract class TmfStatisticsTest {
     private static final long t5 = 1332170682490949270L; /* following event here */
     private static final long t6 = 1332170682490949300L;
 
-    private static final String eventType = "lttng_statedump_process_state"; //$NON-NLS-1$
+    private static final String eventType = "lttng_statedump_process_state";
 
 
     // ------------------------------------------------------------------------
index 3e86186ecd1b4829f39373a29d07ae0b21f6ac5a..49f6e492910ea1c1a4f2abdfea9e87c66511952b 100644 (file)
@@ -42,7 +42,7 @@ import org.junit.Test;
 /**
  * Test suite for the TmfCheckpointIndexTest class.
  */
-@SuppressWarnings({"nls","javadoc"})
+@SuppressWarnings("javadoc")
 public class TmfCheckpointIndexTest {
 
     // ------------------------------------------------------------------------
index 0b64b8eed54fbe5c65b381d5a29859141723c165..ea5c3590a13888f037bf55ed0886817e4707d7e8 100644 (file)
@@ -42,7 +42,7 @@ import org.junit.Test;
  * Test suite for the TmfCheckpointIndexer class (events with same
  * timestamp around checkpoint).
  */
-@SuppressWarnings({"nls","javadoc"})
+@SuppressWarnings("javadoc")
 public class TmfCheckpointIndexTest2 {
 
     // ------------------------------------------------------------------------
index e40d929d468c32fa4cf79552fe3461bada611708..ce862927df5735eee52e2c0168cb0e8a52cfd98f 100644 (file)
@@ -30,7 +30,7 @@ import org.junit.Test;
 /**
  * Test suite for the TmfCheckpoint class.
  */
-@SuppressWarnings({"nls","javadoc"})
+@SuppressWarnings("javadoc")
 public class TmfCheckpointTest {
 
     // ------------------------------------------------------------------------
index e6b4300adb8dc9f80aa2eb1f0007ec2553b53fd9..17be19fe846f3372a2e14f27a5959fe71ab59f70 100644 (file)
@@ -30,7 +30,7 @@ import org.junit.Test;
 /**
  * Test suite for the TmfContext class.
  */
-@SuppressWarnings({"nls","javadoc"})
+@SuppressWarnings("javadoc")
 public class TmfContextTest {
 
     // ------------------------------------------------------------------------
index e71a184e0233012596e3b663d977f8c612d26e0f..450b44558a0f9965333fd7ff62e19afe77403173 100644 (file)
@@ -43,7 +43,7 @@ import org.junit.Test;
 /**
  * Test suite for the TmfCheckpointIndexTest class.
  */
-@SuppressWarnings({"nls","javadoc"})
+@SuppressWarnings("javadoc")
 public class TmfExperimentCheckpointIndexTest {
 
     // ------------------------------------------------------------------------
index a28fa792f5ff883f3b08134d27a94abf0345963d..34537deef50c087a6bcc7ce502dc522852cbd7a5 100644 (file)
@@ -55,7 +55,7 @@ import org.junit.Test;
 /**
  * Test suite for the TmfExperiment class (single trace).
  */
-@SuppressWarnings({"nls","javadoc"})
+@SuppressWarnings("javadoc")
 public class TmfExperimentTest {
 
     // ------------------------------------------------------------------------
index 11f7fb8d722c5ed70cb22a3365acbe3089b79c0a..05bbddbfd87f3a806e3a65a7a720fb2c8214b0d9 100644 (file)
@@ -28,7 +28,7 @@ import org.junit.Test;
 /**
  * Test suite for the TmfLocation class.
  */
-@SuppressWarnings({"nls","javadoc"})
+@SuppressWarnings("javadoc")
 public class TmfLocationTest {
 
     // ------------------------------------------------------------------------
index 6147a3b5a24bb541958bfbbf91a69cf7395ffbbd..4552e5595361a1bbfed0e5dd48b8f495078f70f4 100644 (file)
@@ -49,7 +49,7 @@ import org.junit.Test;
 /**
  * Test suite for the TmfExperiment class (multiple traces).
  */
-@SuppressWarnings({"nls","javadoc"})
+@SuppressWarnings("javadoc")
 public class TmfMultiTraceExperimentTest {
 
     // ------------------------------------------------------------------------
index 8c3c0f16dadd58a854d2e1eac7130c49f2c21852..52840dbe67558fb4db7ef0b07de1b96d40906fe0 100644 (file)
@@ -55,7 +55,7 @@ import org.junit.Test;
 /**
  * Test suite for the TmfTrace class.
  */
-@SuppressWarnings({"nls","javadoc"})
+@SuppressWarnings("javadoc")
 public class TmfTraceTest {
 
     // ------------------------------------------------------------------------
index 47636363129e551c2030eabe674f8a315485e9bb..a47ee19db59936dcf434912b50a7a84d826fe663 100644 (file)
@@ -31,7 +31,6 @@ import org.junit.Test;
 /**
  * TmfAsyncSequenceDiagramEventTest
  */
-@SuppressWarnings("nls")
 public class TmfAsyncSequenceDiagramEventTest {
 
     private final String fContext = ITmfEventType.DEFAULT_CONTEXT_ID;
index fc81861ab5906afc870b285b8f867dd40dc4cac3..e2a008d5f0ef73cba4229cdaf7252a28378ac1ab 100644 (file)
@@ -31,7 +31,6 @@ import org.junit.Test;
 /**
  * TmfSyncSequenceDiagramEventTest
  */
-@SuppressWarnings("nls")
 public class TmfSyncSequenceDiagramEventTest {
 
     private final String fContext = ITmfEventType.DEFAULT_CONTEXT_ID;
index d717939924b1da9f036b2f6c4276c4bb1a0cfc55..40138c933a3f9949af7519c73b69e1f862abd20a 100644 (file)
@@ -24,7 +24,7 @@ import org.junit.Test;
  *
  * @author Bernd Hufmann
  */
-@SuppressWarnings({ "nls", "javadoc" })
+@SuppressWarnings("javadoc")
 public class PairTest {
 
     // ------------------------------------------------------------------------
index 96a6e36b7c2d0dbbe8fc0288cf0f9dbedf288d64..26785abc614b9a9aa4e4df523a54158a496d27fd 100644 (file)
@@ -32,7 +32,6 @@ import java.util.Random;
  * <li> The number of fields (0 .. NB_TYPES-1) depends on the event type.
  * </ul>
  */
-@SuppressWarnings("nls")
 public class CreateTestFiles {
 
     // ========================================================================
index 9b8882b3b1ae2ed483609d09c175b2ae53ca89fd..29ac5655a99da21c506d47e39162b05c390a64ad 100644 (file)
@@ -22,7 +22,7 @@ import org.eclipse.linuxtools.tmf.tests.stubs.event.TmfSyntheticEventStub;
  * <p>
  * TODO: Implement me. Please.
  */
-@SuppressWarnings({"nls","javadoc"})
+@SuppressWarnings("javadoc")
 public class TmfClientStub extends TmfComponent {
 
     private TmfDataProvider[] fProviders;
index b8fa25e141b6e0dde94371ebcf7859008b6d08de..db9304c146f8a6f5d1140c87da148096be49d7b6 100644 (file)
@@ -33,7 +33,7 @@ import org.eclipse.linuxtools.tmf.tests.stubs.trace.TmfTraceStub;
  * <p>
  * TODO: Implement me. Please.
  */
-@SuppressWarnings({"nls","javadoc"})
+@SuppressWarnings("javadoc")
 public class TmfDataProviderStub extends TmfDataProvider {
 
     private static final String DIRECTORY   = "testfiles";
index 26be7090174836cfc921d51d3476bf961c289013..bbcee8a8a94bdeb0a3d877ec07d02a9db893235b 100644 (file)
@@ -33,7 +33,7 @@ import org.eclipse.linuxtools.tmf.tests.stubs.trace.TmfTraceStub;
  * <p>
  * TODO: Implement me. Please.
  */
-@SuppressWarnings({"nls","javadoc"})
+@SuppressWarnings("javadoc")
 public class TmfEventProviderStub extends TmfEventProvider {
 
     private static final String DIRECTORY   = "testfiles";
index 3f20dac604877865719a0f28c95ecd01143500e5..d6d6081b8afcfa96bed3f3763d4c212cbc7108aa 100644 (file)
@@ -31,7 +31,7 @@ import org.eclipse.linuxtools.tmf.tests.stubs.event.TmfSyntheticEventStub;
  * <p>
  * TODO: Implement me. Please.
  */
-@SuppressWarnings({"nls","javadoc"})
+@SuppressWarnings("javadoc")
 public class TmfSyntheticEventProviderStub extends TmfEventProvider {
 
     public static final int BLOCK_SIZE = 100;
index 71704e276feb1d9a715f110a6d98a966eb8d9d9d..1e57a6642a687dfdf4c2d98226614bc868a746d8 100644 (file)
@@ -17,10 +17,8 @@ import org.eclipse.linuxtools.tmf.core.event.TmfEventType;
 
 /**
  * <b><u>TmfEventTypeStub</u></b>
- * <p>
- * TODO: Implement me. Please.
  */
-@SuppressWarnings({"nls","javadoc"})
+@SuppressWarnings("javadoc")
 public class TmfEventTypeStub extends TmfEventType {
 
     private static final ITmfEventField FIELD_1 = new TmfEventField("Field1", null);
index 01f14fb9a91ae1e7c654566bff993efca690e6c1..4a136ab420c09c102036abf58df444b34f7b1ec1 100644 (file)
@@ -32,7 +32,7 @@ import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace;
  * <p>
  * TODO: Implement me. Please.
  */
-@SuppressWarnings({"nls","javadoc"})
+@SuppressWarnings("javadoc")
 public class TmfEventParserStub implements ITmfEventParser {
 
     // ------------------------------------------------------------------------
index 8e551304698c5b9c1f6913cd8b86890ad519700d..7677ec7884ac848ee1484eb91d857b2e7d43adb3 100644 (file)
@@ -38,7 +38,7 @@ import org.eclipse.linuxtools.tmf.core.trace.TmfTrace;
  * <p>
  * Dummy test trace. Use in conjunction with TmfEventParserStub.
  */
-@SuppressWarnings({"nls","javadoc"})
+@SuppressWarnings("javadoc")
 public class TmfTraceStub extends TmfTrace implements ITmfEventParser {
 
     // ------------------------------------------------------------------------
index bca8c277d1a92859366d3c086a78249037f4e1ed..2e1d0e670c9a96bd447d9b6278c51ad8276e9273 100644 (file)
@@ -60,7 +60,7 @@ org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
 org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=warning
 org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
 org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
-org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=warning
+org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
 org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=warning
 org.eclipse.jdt.core.compiler.problem.nullReference=error
 org.eclipse.jdt.core.compiler.problem.nullSpecViolation=error
index f0076acf330d074eb4105efcb0c3ed59edd85525..5a947946a1b528de97252ad7fef7e8fbd2e3526f 100644 (file)
@@ -257,7 +257,7 @@ public class HistogramDataModelTest {
                 }
             }
         }
-        fail("Uncaught assertion error"); //$NON-NLS-1$
+        fail("Uncaught assertion error");
     }
 
     /**
index c826e144c0988b19f36646077eb1ec7f4656fa46..19fec89add7511086ab2504a85bac55cb1e55153 100644 (file)
@@ -40,7 +40,6 @@ import org.junit.Test;
 /**
  * TmfBaseColumnDataProvider test cases.
  */
-@SuppressWarnings("nls")
 public class TmfBaseColumnDataProviderTest {
 
     // ------------------------------------------------------------------------
index b9fafc95da04fbbc4d9688e57c7a96c02bb9eaaa..72d6b492eca0b4e545f78069cf4057b56947edfa 100755 (executable)
@@ -33,7 +33,6 @@ import org.junit.Test;
 /**
  * TmfBaseColumnData Test Case.
  */
-@SuppressWarnings("nls")
 public class TmfBaseColumnDataTest {
 
     // ------------------------------------------------------------------------
index 6cf67e74a9f99a74d621c1f429e1170e07609a9d..dffdaf3c44c1cdcd02d993efd4415c1c76e57976 100755 (executable)
@@ -39,7 +39,6 @@ import org.junit.Test;
 /**
  * TmfBaseStatistics Test Cases.
  */
-@SuppressWarnings("nls")
 public class TmfBaseStatisticsDataTest {
 
     // ------------------------------------------------------------------------
index ebfd3d12f1c41fcda00007cf6465142fffa73b06..409def230ef5ab6e854525129174b8bb8a28c70b 100755 (executable)
@@ -30,7 +30,6 @@ import org.junit.Test;
 /**
  * TmfStatisticsTreeRootFactory Test Case.
  */
-@SuppressWarnings("nls")
 public class TmfStatisticsTreeManagerTest {
 
     // ------------------------------------------------------------------------
index 6551976708732791532d8ee455a584c69daa838a..d757137ebba1405b611106ac4627901efd04ae4f 100755 (executable)
@@ -39,13 +39,13 @@ public class TmfStatisticsTreeNodeTest {
     // Fields
     // ------------------------------------------------------------------------
 
-    private final String fTypeId1 = "Some type1"; //$NON-NLS-1$
-    private final String fTypeId2 = "Some type2"; //$NON-NLS-1$
-    private final String fTypeId3 = "Some type3"; //$NON-NLS-1$
+    private final String fTypeId1 = "Some type1";
+    private final String fTypeId2 = "Some type2";
+    private final String fTypeId3 = "Some type3";
 
     private final TmfStatisticsTree fStatsTree;
 
-    private static final String fTestName = "StatisticsTreeNodeTest"; //$NON-NLS-1$
+    private static final String fTestName = "StatisticsTreeNodeTest";
 
     // ------------------------------------------------------------------------
     // Housekeeping
@@ -175,7 +175,7 @@ public class TmfStatisticsTreeNodeTest {
         TmfStatisticsTreeNode parentNode = rootNode.getParent();
         assertNull(parentNode);
 
-        TmfStatisticsTreeNode newTraceNode = new TmfStatisticsTreeNode(fStatsTree, rootNode, "newly created trace node"); //$NON-NLS-1$
+        TmfStatisticsTreeNode newTraceNode = new TmfStatisticsTreeNode(fStatsTree, rootNode, "newly created trace node");
         parentNode = newTraceNode.getParent();
         assertNotNull(parentNode);
         assertTrue(fStatsTree.getRootNode() == parentNode);
@@ -209,7 +209,7 @@ public class TmfStatisticsTreeNodeTest {
         TmfStatisticsTreeNode catNode     = traceNode.getChildren().iterator().next();
         TmfStatisticsTreeNode elementNode = fStatsTree.getNode(fTestName, Messages.TmfStatisticsData_EventTypes, fTypeId1);
 
-        assertEquals(0, rootNode.getName().compareTo("root")); //$NON-NLS-1$
+        assertEquals(0, rootNode.getName().compareTo("root"));
         assertEquals(0, traceNode.getName().compareTo(fTestName));
         assertEquals(0, catNode.getName().compareTo(Messages.TmfStatisticsData_EventTypes));
         assertEquals(0, elementNode.getName().compareTo(fTypeId1));
index 94b257fbe512669fc3d691e86b4891a18d6e6fd9..a270edbc49bbd31082144a7971ff5981d4a25794 100755 (executable)
@@ -37,7 +37,6 @@ import org.junit.Test;
 /**
  * TmfTreeContentProvider Test Cases.
  */
-@SuppressWarnings("nls")
 public class TmfTreeContentProviderTest {
 
     // ------------------------------------------------------------------------
index 5db63aa117bf823aa2d66c3d2c28ecb31441ee64..8560b3616e8d522b6f034adca4e4e1dc353f5538 100644 (file)
@@ -29,7 +29,6 @@ import org.junit.Test;
 /**
  *  Test cases class to test loader manager of UML2SD extension point.
  */
-@SuppressWarnings("nls")
 public class LoadersManagerTest {
 
     private final static String SDVIEW_WITH_ONE_LOADER = "org.eclipse.linuxtools.tmf.ui.tests.testSDView1Loader";
index 7e178c735c2afd7dd2853cc18552621486d5a1bb..734f1fe07a01481cc33f48e6096d6eb7c5c261bb 100644 (file)
@@ -15,7 +15,6 @@ package org.eclipse.linuxtools.tmf.ui.tests.views.uml2sd.loader;
  * Common constants for the TMF UML2SD test cases
  * @author Bernd Hufmann
  */
-@SuppressWarnings("nls")
 public interface IUml2SDTestConstants {
 
     /**
index 26aa414d11ff866c0b0642ca36c2d7b0c46534ac..d84403a164a7be277becbba660fb316f9eaa2239 100644 (file)
@@ -35,7 +35,6 @@ import org.junit.Test;
  *
  * @author Bernd Hufmann
  */
-@SuppressWarnings("nls")
 public class TmfUml2SDSyncLoaderFilterTest {
 
     private static Uml2SDTestFacility fFacility;
@@ -63,7 +62,7 @@ public class TmfUml2SDSyncLoaderFilterTest {
 
         criteria = new Criteria();
         criteria.setSyncMessageSelected(true);
-        criteria.setExpression("BALL_.*"); //$NON-NLS-1$
+        criteria.setExpression("BALL_.*");
         filterToSave.add(new FilterCriteria(criteria, false, false));
     }
 
index c3e60a47b94c43f467cdeee9c3d24197d41dcf83..42cc643febaa34dc7100bf7ce0ec17b7f4178ec4 100644 (file)
@@ -36,7 +36,6 @@ import org.junit.Test;
  *
  * @author Bernd Hufmann
  */
-@SuppressWarnings("nls")
 public class TmfUml2SDSyncLoaderFindTest {
 
     // ------------------------------------------------------------------------
index 06aa9c7e8fc8a91a6f8fb817ecf9774530274b78..c24028a7f4e8f1ed8b7cdc52e9a8fb5c042893ca 100644 (file)
@@ -196,7 +196,6 @@ public class TmfUml2SDSyncLoaderPagesTest {
         verifyPage(currentPage, numMsg, hasNext, hasPrev, IUml2SDTestConstants.DEFAULT_NUM_LIFELINES);
     }
 
-    @SuppressWarnings("nls")
     private static void verifyPage(int currentPage, int numMsg, boolean hasNext,
             boolean hasPrev, int lifelineCount) {
         assertEquals("currentPage", currentPage, fFacility.getLoader().currentPage());
index ab6cfe34d06d902da82da25038e1d3945608a96d..deec8dc5f02a2c35a1a3303bd440f0ae83387fb2 100644 (file)
@@ -34,7 +34,6 @@ import org.junit.Test;
  *
  * @author Bernd Hufmann
  */
-@SuppressWarnings("nls")
 public class TmfUml2SDSyncLoaderTimeTest {
 
     // ------------------------------------------------------------------------
@@ -43,7 +42,7 @@ public class TmfUml2SDSyncLoaderTimeTest {
 
     // Test case 001 expected values
     final static private Uml2SDTestTimestamp TC_001_TIME_VALUE       = new Uml2SDTestTimestamp(9788642228395L);
-    final static private String              TC_001_MESSAGE_NAME     = "START_GAME_REPLY"; //$NON-NLS-1$
+    final static private String              TC_001_MESSAGE_NAME     = "START_GAME_REPLY";
     final static private int                 TC_001_PAGE_VALUE       = 0;
     final static private int                 TC_001_START_OCCURRANCE = 6;
     final static private int                 TC_001_END_OCCURRANCE   = TC_001_START_OCCURRANCE;
@@ -52,7 +51,7 @@ public class TmfUml2SDSyncLoaderTimeTest {
 
     // Test case 002 expected values
     final static private Uml2SDTestTimestamp TC_002_TIME_VALUE       = new Uml2SDTestTimestamp(9789689830722L);
-    final static private String              TC_002_MESSAGE_NAME     = "PAUSE_GAME_REQUEST"; //$NON-NLS-1$
+    final static private String              TC_002_MESSAGE_NAME     = "PAUSE_GAME_REQUEST";
     final static private int                 TC_002_PAGE_VALUE       = 2;
     final static private int                 TC_002_START_OCCURRANCE = 7;
     final static private int                 TC_002_END_OCCURRANCE   = TC_002_START_OCCURRANCE;
index 330aa9c384ef23e0a874f2a1a245d5047c332106..ed70b7b252454bba22b74efe8313ea1f40d3a98c 100644 (file)
@@ -100,7 +100,7 @@ public class Uml2SDTestFacility {
                 view = PlatformUI.getWorkbench()
                         .getActiveWorkbenchWindow()
                         .getActivePage()
-                        .findView("org.eclipse.ui.internal.introview"); //$NON-NLS-1$
+                        .findView("org.eclipse.ui.internal.introview");
 
                 if (view != null) {
                     PlatformUI.getWorkbench()
@@ -111,7 +111,7 @@ public class Uml2SDTestFacility {
                 view = PlatformUI.getWorkbench()
                         .getActiveWorkbenchWindow()
                         .getActivePage()
-                        .showView("org.eclipse.linuxtools.tmf.ui.tmfUml2SDSyncView"); //$NON-NLS-1$
+                        .showView("org.eclipse.linuxtools.tmf.ui.tmfUml2SDSyncView");
 
             } catch (final PartInitException e) {
                 throw new RuntimeException(e);
@@ -119,7 +119,7 @@ public class Uml2SDTestFacility {
 
             fSdView = (SDView) view;
             fLoader = (TmfUml2SDSyncLoader)LoadersManager.getInstance().createLoader(
-                    "org.eclipse.linuxtools.tmf.ui.views.uml2sd.loader.TmfUml2SDSyncLoader", fSdView); //$NON-NLS-1$
+                    "org.eclipse.linuxtools.tmf.ui.views.uml2sd.loader.TmfUml2SDSyncLoader", fSdView);
 
             delay(3000);
             fIsInitialized = true;
@@ -131,7 +131,7 @@ public class Uml2SDTestFacility {
 
         try {
             // Create test trace object
-            final URL location = FileLocator.find(FrameworkUtil.getBundle(this.getClass()), new Path("tracesets/sdEvents"), null); //$NON-NLS-1$
+            final URL location = FileLocator.find(FrameworkUtil.getBundle(this.getClass()), new Path("tracesets/sdEvents"), null);
             final File test = new File(FileLocator.toFileURL(location).toURI());
             return new TmfTraceStub(test.getPath(), 500, true, parser, null);
         } catch (final TmfTraceException e) {
@@ -294,7 +294,7 @@ public class Uml2SDTestFacility {
 
         final ITmfTrace traces[] = new ITmfTrace[1];
         traces[0] = fTrace;
-        fExperiment = new TmfExperiment(ITmfEvent.class, "TestExperiment", traces); //$NON-NLS-1$
+        fExperiment = new TmfExperiment(ITmfEvent.class, "TestExperiment", traces);
         fTrace.broadcast(new TmfTraceSelectedSignal(this, fExperiment));
         if (wait) {
             while (fExperiment.getNbEvents() == 0) {
@@ -327,7 +327,7 @@ public class Uml2SDTestFacility {
 
         criteria = new Criteria();
         criteria.setSyncMessageSelected(true);
-        criteria.setExpression("BALL_.*"); //$NON-NLS-1$
+        criteria.setExpression("BALL_.*");
         filterToSave.add(new FilterCriteria(criteria, true, false));
         FilterListDialog.saveFiltersCriteria(filterToSave);
     }
index 296a06130d74d8ae3749305fade2c9ab0b83a93a..52086153d96eb2727649b728f512ce7defa4065f 100644 (file)
@@ -61,7 +61,7 @@ public class TestLoaders implements IUml2SDLoader, ISDFindProvider, ISDFilterPro
     private Frame savedFrame = null;
 
     public TestLoaders() {
-        this(""); //$NON-NLS-1$
+        this("");
     }
 
     @SuppressWarnings("unused")
@@ -102,7 +102,6 @@ public class TestLoaders implements IUml2SDLoader, ISDFindProvider, ISDFilterPro
         createFrame();
     }
 
-    @SuppressWarnings("nls")
     private void createFrame() {
         Frame testFrame = new Frame();
         if (page == 1) {
@@ -386,7 +385,6 @@ public class TestLoaders implements IUml2SDLoader, ISDFindProvider, ISDFilterPro
         return null;
     }
 
-    @SuppressWarnings("nls")
     @Override
     public String getTitleString() {
         return "Test Loader";
@@ -448,7 +446,6 @@ public class TestLoaders implements IUml2SDLoader, ISDFindProvider, ISDFilterPro
             img = img_;
         }
 
-        @SuppressWarnings("nls")
         public Image getResourceImage(String _name) {
             ImageDescriptor imgage;
             try {
index bdfc326678875eead8c2c36f8ec6d3eca9787875..17dedf9be6f5142716a6439fca383b5621147af4 100644 (file)
@@ -56,7 +56,6 @@ public class TmfUml2SDTestTrace implements ITmfEventParser {
     }
 
     @Override
-    @SuppressWarnings({ "nls" })
     public ITmfEvent parseEvent(ITmfContext context) {
         if (! (fEventStream instanceof TmfTraceStub)) {
             return null;
index 26ecca17be5b69650f1ab4d376f6102b942b47cc..a7f123415049fd9e02ab9f73c9dbb16e26be1e60 100644 (file)
@@ -21,7 +21,6 @@ import org.eclipse.linuxtools.tmf.ui.widgets.timegraph.test.stub.model.EventImpl
 /**
  * Time Graph Presentation Provider Stub.
  */
-@SuppressWarnings("nls")
 public class TsfImplProvider extends TimeGraphPresentationProvider {
 
        // ========================================================================
index f9c884f7dd0aac27666899d65bb889216402c56d..75db378b65503d8c20a09d6e3139412efd4cd6b2 100644 (file)
@@ -18,11 +18,13 @@ import java.util.Vector;
 import org.eclipse.linuxtools.tmf.ui.widgets.timegraph.model.ITimeEvent;
 import org.eclipse.linuxtools.tmf.ui.widgets.timegraph.model.ITimeGraphEntry;
 
-@SuppressWarnings({"javadoc", "nls"})
+@SuppressWarnings("javadoc")
 public class TraceImpl implements ITimeGraphEntry {
+
     // ========================================================================
     // Data
     // ========================================================================
+
     private String name = "traceDefaultName";
     private long startTime = 0;
     private long stopTime = 1;
index cd58cfc709e14070fcacde43f9888fbb3f52bda9..77b38e0896e1c85d8f4e9fc1b6db4e81a7532c05 100644 (file)
@@ -13,7 +13,7 @@ package org.eclipse.linuxtools.tmf.ui.widgets.timegraph.test.stub.model;
 
 import java.util.Date;
 
-@SuppressWarnings({"javadoc", "nls"})
+@SuppressWarnings("javadoc")
 public class TraceModelImplFactory {
 
        // ========================================================================
index 13cf4e99998321fd012ec281e9fc328442957aaa..fe2ea4e62d1f9814e025bfb50af524bacc0ec7ca 100644 (file)
@@ -57,13 +57,14 @@ import org.eclipse.ui.PlatformUI;
 import org.eclipse.ui.part.DrillDownAdapter;
 import org.eclipse.ui.part.ViewPart;
 
-@SuppressWarnings({ "javadoc", "nls" })
+@SuppressWarnings("javadoc")
 public class TsfTraceAnalysisView extends ViewPart implements
         ITimeGraphSelectionListener, ITimeGraphTimeListener, ITimeGraphRangeListener {
 
     // ========================================================================
     // Data
     // ========================================================================
+
     private TreeViewer viewer;
     private DrillDownAdapter drillDownAdapter;
     private Action action1;
This page took 0.114462 seconds and 5 git commands to generate.