ctf: fix sonar warnings about redundant modifier in interfaces
authorBernd Hufmann <Bernd.Hufmann@ericsson.com>
Thu, 16 May 2013 17:45:07 +0000 (13:45 -0400)
committerBernd Hufmann <bernd.hufmann@ericsson.com>
Fri, 17 May 2013 22:44:04 +0000 (18:44 -0400)
Change-Id: I753bc49a37d8396b3f9a56f79c31866658422668
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/12893
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>

org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/IEventDeclaration.java
org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/IDeclaration.java
org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/IDefinitionScope.java

index 0258aeb66c98fb879a0815f5ed8c5bde95daeb5b..4956e0db84e556f36d468fb604f22f44af12b5ab 100644 (file)
@@ -33,35 +33,35 @@ public interface IEventDeclaration {
      *            The StreamInputReader for which this definition is created.
      * @return A new EventDefinition.
      */
-    public EventDefinition createDefinition(StreamInputReader streamInputReader);
+    EventDefinition createDefinition(StreamInputReader streamInputReader);
 
     /**
      * Gets the name of an event declaration
      *
      * @return the name
      */
-    public String getName();
+    String getName();
 
     /**
      * Gets the fields of an event declaration
      *
      * @return fields the fields in {@link StructDeclaration} format
      */
-    public StructDeclaration getFields();
+    StructDeclaration getFields();
 
     /**
      * Gets the context of an event declaration
      *
      * @return context the fields in {@link StructDeclaration} format
      */
-    public StructDeclaration getContext();
+    StructDeclaration getContext();
 
     /**
      * Gets the id of an event declaration
      *
      * @return The EventDeclaration ID
      */
-    public Long getId();
+    Long getId();
 
     /**
      * Gets the {@link Stream} of an event declaration
@@ -69,7 +69,7 @@ public interface IEventDeclaration {
      * @return the stream
      * @since 2.0
      */
-    public Stream getStream();
+    Stream getStream();
 
     /**
      * What is the log level of this event?
@@ -77,7 +77,7 @@ public interface IEventDeclaration {
      * @return the log level.
      * @since 2.0
      */
-    public long getLogLevel();
+    long getLogLevel();
 
     /**
      * Get the {@link Set} of names of the custom CTF attributes.
@@ -85,7 +85,7 @@ public interface IEventDeclaration {
      * @return The set of custom attributes
      * @since 2.0
      */
-    public Set<String> getCustomAttributes();
+    Set<String> getCustomAttributes();
 
     /**
      * Get the value of a given CTF attribute.
@@ -95,6 +95,6 @@ public interface IEventDeclaration {
      * @return the CTF attribute
      * @since 2.0
      */
-    public String getCustomAttribute(String key);
+    String getCustomAttribute(String key);
 
 }
index 428a4f127e4bf4b99790fddb02b2fece47e7a98e..3f9406c78fb0ac1394c95f94c961cd507b3c7b2d 100644 (file)
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2011-2012 Ericsson, Ecole Polytechnique de Montreal and others
+ * Copyright (c) 2011, 2013 Ericsson, Ecole Polytechnique de Montreal and others
  *
  * All rights reserved. This program and the accompanying materials are made
  * available under the terms of the Eclipse Public License v1.0 which
@@ -14,7 +14,7 @@ package org.eclipse.linuxtools.ctf.core.event.types;
 
 /**
  * A CTF data type declaration.
- * 
+ *
  * An example: <br>
  * int i = 0; <br>
  * <b>int</b> is the declaration.<br>
@@ -37,7 +37,7 @@ public interface IDeclaration {
      *            the name of the definition
      * @return a reference to the definition
      */
-    public Definition createDefinition(IDefinitionScope definitionScope,
+    Definition createDefinition(IDefinitionScope definitionScope,
             String fieldName);
 
     /**
@@ -46,5 +46,5 @@ public interface IDeclaration {
      *
      * @return the alignment in bits
      */
-    public long getAlignment();
+    long getAlignment();
 }
index 46bc5d74770289225ea68624650a8c1532fcb1dc..c50603abd55bbc5001fa491e20b2a58cf9681f90 100644 (file)
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2011-2012 Ericsson, Ecole Polytechnique de Montreal and others
+ * Copyright (c) 2011, 2013 Ericsson, Ecole Polytechnique de Montreal and others
  *
  * All rights reserved. This program and the accompanying materials are made
  * available under the terms of the Eclipse Public License v1.0 which
@@ -25,7 +25,7 @@ public interface IDefinitionScope {
      * Gets the path in a C style for the scope.
      * @return the path
      */
-    public String getPath();
+    String getPath();
 
     /**
      * Looks up in this definition scope.
@@ -34,5 +34,5 @@ public interface IDefinitionScope {
      *            The path to look up
      * @return The Definition that was read
      */
-    public Definition lookupDefinition(String lookupPath);
+    Definition lookupDefinition(String lookupPath);
 }
This page took 0.060109 seconds and 5 git commands to generate.