From: Bernd Hufmann Date: Thu, 16 May 2013 17:45:07 +0000 (-0400) Subject: ctf: fix sonar warnings about redundant modifier in interfaces X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=3e2618e9bf30bd21890ced35c5b06b392d2b80c9;p=deliverable%2Ftracecompass.git ctf: fix sonar warnings about redundant modifier in interfaces Change-Id: I753bc49a37d8396b3f9a56f79c31866658422668 Signed-off-by: Bernd Hufmann Reviewed-on: https://git.eclipse.org/r/12893 Tested-by: Hudson CI Reviewed-by: Alexandre Montplaisir IP-Clean: Alexandre Montplaisir --- diff --git a/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/IEventDeclaration.java b/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/IEventDeclaration.java index 0258aeb66c..4956e0db84 100644 --- a/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/IEventDeclaration.java +++ b/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/IEventDeclaration.java @@ -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 getCustomAttributes(); + Set 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); } diff --git a/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/IDeclaration.java b/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/IDeclaration.java index 428a4f127e..3f9406c78f 100644 --- a/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/IDeclaration.java +++ b/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/IDeclaration.java @@ -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:
* int i = 0;
* int is the declaration.
@@ -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(); } diff --git a/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/IDefinitionScope.java b/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/IDefinitionScope.java index 46bc5d7477..c50603abd5 100644 --- a/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/IDefinitionScope.java +++ b/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/IDefinitionScope.java @@ -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); }