tmf: Fix a method name typo in CtfTmfTrace.
authorEtienne Bergeron <etienne.bergeron@gmail.com>
Fri, 29 Nov 2013 05:04:02 +0000 (00:04 -0500)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Mon, 2 Dec 2013 15:02:35 +0000 (10:02 -0500)
There is not behavior change in this patch.

Change-Id: Ib1c043ca13528e7b307275f3728ffab14ca2ac1a
Signed-off-by: Etienne Bergeron <etienne.bergeron@gmail.com>
Reviewed-on: https://git.eclipse.org/r/19092
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Hudson CI
org.eclipse.linuxtools.ctf.core.tests/src/org/eclipse/linuxtools/ctf/core/tests/trace/CTFTraceTest.java
org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/trace/CTFTrace.java
org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/internal/ctf/core/event/metadata/IOStructGen.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfTrace.java

index aebf35ea245572621617dc5607d8de04ac10dd9d..5f78810b074dcd4cb00f9ce02f12d8ec2a8d8261 100644 (file)
@@ -230,11 +230,11 @@ public class CTFTraceTest {
     }
 
     /**
-     * Run the boolean majortIsSet() method test.
+     * Run the boolean majorIsSet() method test.
      */
     @Test
-    public void testMajortIsSet() {
-        boolean result = fixture.majortIsSet();
+    public void testMajorIsSet() {
+        boolean result = fixture.majorIsSet();
         assertTrue(result);
     }
 
index a9ccc2bfa5a8629a5f927e2d766be0957284906e..7bf5dddc48fb5a7e9e055ea068316921ba39c06b 100644 (file)
@@ -379,11 +379,11 @@ public class CTFTrace implements IDefinitionScope {
     }
 
     /**
-     * Method majortIsSet is the major version number set?
+     * Method majorIsSet is the major version number set?
      *
      * @return boolean is the major set?
      */
-    public boolean majortIsSet() {
+    public boolean majorIsSet() {
         return major != null;
     }
 
index d31d3634e1e62c8dd38ea95b5119201a19afe447..ed4d4093c5200f3c04f89b3ed9fe60045e43ae88 100644 (file)
@@ -380,7 +380,7 @@ public class IOStructGen {
         String left = concatenateUnaryStrings(leftStrings);
 
         if (left.equals(MetadataStrings.MAJOR)) {
-            if (trace.majortIsSet()) {
+            if (trace.majorIsSet()) {
                 throw new ParseException("major is already set"); //$NON-NLS-1$
             }
 
index 98f59ed5b17e35e1430378801289294409e35e28..368b68880ec4c33e668ba0fff99919f9d48f976b 100644 (file)
@@ -86,7 +86,7 @@ public class CtfTmfTrace extends TmfTrace
      * @param eventType
      *            The type of events that will be read from this trace
      * @throws TmfTraceException
-     *             If something when wrong while reading the trace
+     *             If something went wrong while reading the trace
      */
     @Override
     public void initTrace(final IResource resource, final String path, final Class<? extends ITmfEvent> eventType)
@@ -151,7 +151,7 @@ public class CtfTmfTrace extends TmfTrace
         IStatus validTrace = Status.OK_STATUS;
         try {
             final CTFTrace temp = new CTFTrace(path);
-            if (!temp.majortIsSet()) {
+            if (!temp.majorIsSet()) {
                 validTrace = new Status(IStatus.ERROR, Activator.PLUGIN_ID, Messages.CtfTmfTrace_MajorNotSet);
             } else {
                 CTFTraceReader ctfTraceReader = new CTFTraceReader(temp);
This page took 0.037026 seconds and 5 git commands to generate.