[ctf] Fixes multiple coding style issues while reading ctf Types.
authorEtienneb Bergeron <etienne.bergeron@gmail.com>
Fri, 22 Nov 2013 05:30:05 +0000 (00:30 -0500)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Fri, 22 Nov 2013 20:43:44 +0000 (15:43 -0500)
Change-Id: I73a2e42b76090ed344a32da330cd0ab240b68099
Signed-off-by: Etienne Bergeron <etienne.bergeron@gmail.com>
Reviewed-on: https://git.eclipse.org/r/18706
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
IP-Clean: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/ArrayDefinition.java
org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/Definition.java
org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/EnumDeclaration.java
org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/FloatDeclaration.java
org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/FloatDefinition.java
org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/IntegerDeclaration.java
org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/IntegerDefinition.java
org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/SimpleDatatypeDefinition.java
org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/StringDeclaration.java
org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/StructDefinition.java
org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/VariantDeclaration.java

index 1e4b8c21342c0074d3ccf2b789bd3bd8cfe51da0..96d16d87a99232b72b634ed941f8789918e6e87a 100644 (file)
@@ -17,7 +17,7 @@ import java.util.Arrays;
 import org.eclipse.linuxtools.ctf.core.event.io.BitBuffer;
 
 /**
- * A CTF array definiton
+ * A CTF array definition
  *
  * Arrays are fixed-length. Their length is declared in the type
  * declaration within the meta-data. They contain an array of "inner type"
index 5233adaa1be0be45089a5be49c7d0bb4809356d6..99c031bc2ace947246c3f49eba0995c5db784148 100644 (file)
@@ -15,7 +15,7 @@ package org.eclipse.linuxtools.ctf.core.event.types;
 import org.eclipse.linuxtools.ctf.core.event.io.BitBuffer;
 
 /**
- * A CTF definiton
+ * A CTF definition
  *
  * A definition is like an object of a declaration class. It fills the declaration
  * with values. <br>
index 44a5206e725fc8dee89d1d7dc3a4dc555362dc2f..d820c3db1851233bd0c86d29d17779901b5050dd 100644 (file)
@@ -90,7 +90,7 @@ public class EnumDeclaration implements IDeclaration {
     }
 
     /**
-     * check if the label for a value (enum a{day=0,night=1} would return "day" for query(0)
+     * Check if the label for a value (enum a{day=0,night=1} would return "day" for query(0)
      * @param value the value to lookup
      * @return the label of that value, can be null
      */
@@ -124,7 +124,7 @@ public class EnumDeclaration implements IDeclaration {
         }
 
         /**
-         * return the first label that matches a value
+         * Return the first label that matches a value
          * @param value the value to query
          * @return the label corresponding to that value
          */
index 71ec3208d6bf99f75718b94196942a25756d01bf..3b5bbea52bd376b565cb1343bb33af8b6839969c 100644 (file)
@@ -58,7 +58,7 @@ public class FloatDeclaration implements IDeclaration {
     }
 
     // ------------------------------------------------------------------------
-    // Gettters/Setters/Predicates
+    // Getters/Setters/Predicates
     // ------------------------------------------------------------------------
 
     /**
index d70645ea1a3be979863f51370679032fd7e6e3b9..044a82d233e2996f7672476543ce386335d413d5 100644 (file)
@@ -32,7 +32,7 @@ public class FloatDefinition extends Definition {
     private double value;
 
     // ------------------------------------------------------------------------
-    // Contructors
+    // Constructors
     // ------------------------------------------------------------------------
 
     /**
@@ -52,11 +52,11 @@ public class FloatDefinition extends Definition {
     }
 
     // ------------------------------------------------------------------------
-    // Gettters/Setters/Predicates
+    // Getters/Setters/Predicates
     // ------------------------------------------------------------------------
 
     /**
-     * THe value of a float stored, fit into a double. This should be extended
+     * The value of a float stored, fit into a double. This should be extended
      * for exotic floats if this is necessary.
      *
      * @return the value of the float field fit into a double.
index 0f7673d6e569bdf179e758dfcd43f65c8b36adaf..58c03fc3290843722600f6916520ddf4baa14c9e 100644 (file)
@@ -45,7 +45,7 @@ public class IntegerDeclaration implements IDeclaration {
     // ------------------------------------------------------------------------
 
     /**
-     * Contructor
+     * Constructor
      *
      * @param len
      *            The length in bits
@@ -54,7 +54,7 @@ public class IntegerDeclaration implements IDeclaration {
      * @param base
      *            The base (10-16 are most common)
      * @param byteOrder
-     *            Big endian little endian or other
+     *            Big-endian little-endian or other
      * @param encoding
      *            ascii, utf8 or none.
      * @param clock
@@ -77,7 +77,7 @@ public class IntegerDeclaration implements IDeclaration {
     }
 
     // ------------------------------------------------------------------------
-    // Gettters/Setters/Predicates
+    // Getters/Setters/Predicates
     // ------------------------------------------------------------------------
 
     /**
@@ -89,7 +89,7 @@ public class IntegerDeclaration implements IDeclaration {
     }
 
     /**
-     * get the integer base commonly decimal or hex
+     * Get the integer base commonly decimal or hex
      * @return the integer base
      */
     public int getBase() {
@@ -97,7 +97,7 @@ public class IntegerDeclaration implements IDeclaration {
     }
 
     /**
-     * gets the byte order
+     * Gets the byte order
      * @return the byte order
      */
     public ByteOrder getByteOrder() {
@@ -105,7 +105,7 @@ public class IntegerDeclaration implements IDeclaration {
     }
 
     /**
-     * get encoding, chars are 8 bit ints
+     * Get encoding, chars are 8 bit ints
      * @return the encoding
      */
     public Encoding getEncoding() {
@@ -113,7 +113,7 @@ public class IntegerDeclaration implements IDeclaration {
     }
 
     /**
-     * is the integer a character (8 bits and encoded?)
+     * Is the integer a character (8 bits and encoded?)
      * @return is the integer a char
      */
    public boolean isCharacter() {
index 8c4f8f1abd0d86f7ed972e964e1b4733d0ff5ec7..0b63230660cd5b6d68cd0cec693cdc478100adc3 100644 (file)
@@ -37,7 +37,7 @@ public class IntegerDefinition extends SimpleDatatypeDefinition {
     private long value;
 
     // ------------------------------------------------------------------------
-    // Contructors
+    // Constructors
     // ------------------------------------------------------------------------
 
     /**
@@ -57,7 +57,7 @@ public class IntegerDefinition extends SimpleDatatypeDefinition {
     }
 
     // ------------------------------------------------------------------------
-    // Gettters/Setters/Predicates
+    // Getters/Setters/Predicates
     // ------------------------------------------------------------------------
 
     /**
index 569af25cf109f15f86600cb32beac2309a3f53a6..04fc0123ca4b21e02d5b22d37f90c0c6ddc7fda6 100644 (file)
@@ -35,7 +35,7 @@ public abstract class SimpleDatatypeDefinition extends Definition {
     }
 
     /**
-     * gets the value in integer form
+     * Gets the value in integer form
      *
      * @return the integer in a Long, can be null
      */
@@ -44,7 +44,7 @@ public abstract class SimpleDatatypeDefinition extends Definition {
     }
 
     /**
-     * gets the value in string form
+     * Gets the value in string form
      *
      * @return the integer in a String, can be null
      */
index c79e506af1e1fde51980a88d96002e46b5988970..6f63b4d8313b6b88de49488a2e3b00d03934f73e 100644 (file)
@@ -14,7 +14,7 @@ package org.eclipse.linuxtools.ctf.core.event.types;
 
 /**
  * A CTF string declaration.
- * 
+ *
  * Strings are an array of bytes of variable size and are terminated by a '\0'
  * "NULL" character. Their encoding is described in the TSDL meta-data. In
  * absence of encoding attribute information, the default encoding is UTF-8.
@@ -42,7 +42,7 @@ public class StringDeclaration implements IDeclaration {
     }
 
     /**
-     * generate an encoded string declaration
+     * Generate an encoded string declaration
      * @param encoding the encoding, utf8 or ascii
      */
     public StringDeclaration(Encoding encoding) {
index 667b4e3e473fc26321d57f0956afd3043aa479cc..378b2e012b59c08a98f874c9a77c7d9c6fb1ddbe 100644 (file)
@@ -115,7 +115,7 @@ public class StructDefinition extends Definition implements IDefinitionScope {
     }
 
     /**
-     * Lookup an array in a struct. if the name returns a non-array (like an
+     * Lookup an array in a struct. If the name returns a non-array (like an
      * int) than the method returns null
      *
      * @param name
@@ -128,7 +128,7 @@ public class StructDefinition extends Definition implements IDefinitionScope {
     }
 
     /**
-     * Lookup an enum in a struct. if the name returns a non-enum (like an int)
+     * Lookup an enum in a struct. If the name returns a non-enum (like an int)
      * than the method returns null
      *
      * @param name
@@ -141,7 +141,7 @@ public class StructDefinition extends Definition implements IDefinitionScope {
     }
 
     /**
-     * Lookup an integer in a struct. if the name returns a non-integer (like an
+     * Lookup an integer in a struct. If the name returns a non-integer (like an
      * float) than the method returns null
      *
      * @param name
@@ -155,7 +155,7 @@ public class StructDefinition extends Definition implements IDefinitionScope {
     }
 
     /**
-     * Lookup a sequence in a struct. if the name returns a non-sequence (like
+     * Lookup a sequence in a struct. If the name returns a non-sequence (like
      * an int) than the method returns null
      *
      * @param name
@@ -169,7 +169,7 @@ public class StructDefinition extends Definition implements IDefinitionScope {
     }
 
     /**
-     * Lookup a string in a struct. if the name returns a non-string (like
+     * Lookup a string in a struct. If the name returns a non-string (like
      * an int) than the method returns null
      *
      * @param name
@@ -183,7 +183,7 @@ public class StructDefinition extends Definition implements IDefinitionScope {
     }
 
     /**
-     * Lookup a struct in a struct. if the name returns a non-struct (like
+     * Lookup a struct in a struct. If the name returns a non-struct (like
      * an int) than the method returns null
      *
      * @param name
@@ -197,7 +197,7 @@ public class StructDefinition extends Definition implements IDefinitionScope {
     }
 
     /**
-     * Lookup a variant in a struct. if the name returns a non-variant (like
+     * Lookup a variant in a struct. If the name returns a non-variant (like
      * an int) than the method returns null
      *
      * @param name
index 42a9f431dc6d4b5e7d4a9b0d0210d8b1e0ad7f47..0e526ae8c773bc3d9434136122174a0da4cced86 100644 (file)
@@ -41,10 +41,9 @@ public class VariantDeclaration implements IDeclaration {
     // ------------------------------------------------------------------------
 
     /**
-     * constructor
+     * Constructor
      */
     public VariantDeclaration() {
-
     }
 
     // ------------------------------------------------------------------------
@@ -76,7 +75,7 @@ public class VariantDeclaration implements IDeclaration {
     }
 
     /**
-     * gets current variant tag
+     * Gets current variant tag
      * @return the variant tag.
      */
     public String getTag() {
This page took 0.032493 seconds and 5 git commands to generate.