Skip to content

Commit

Permalink
releng: Fix API errors
Browse files Browse the repository at this point in the history
Change-Id: I4aeba857d63c88bea3cac093b41c40fb58927862
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/c/tracecompass/org.eclipse.tracecompass/+/204472
Tested-by: Trace Compass Bot <tracecompass-bot@eclipse.org>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
  • Loading branch information
PatrickTasse committed Sep 20, 2023
1 parent 5399aa6 commit 36bbab2
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %Bundle-Name
Bundle-Vendor: %Bundle-Vendor
Bundle-Version: 8.1.0.qualifier
Bundle-Version: 8.2.0.qualifier
Bundle-Localization: plugin
Bundle-SymbolicName: org.eclipse.tracecompass.analysis.os.linux.core;singleton:=true
Bundle-Activator: org.eclipse.tracecompass.internal.analysis.os.linux.core.Activator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ public static Iterator<ITmfStateInterval> getStatusIntervalsForThread(KernelAnal
* @param monitor
* The monitor to cancel the query
* @return A Map associating the intervals to each tid
* @since 8.1
* @since 8.2
*/
public static Map<Integer, List<ITmfStateInterval>> getStatusIntervalsForThreads(KernelAnalysisModule module, Collection<Integer> threadIds, Collection<Long> times, IProgressMonitor monitor) {
ITmfStateSystem ss = module.getStateSystem();
Expand Down
2 changes: 1 addition & 1 deletion ctf/org.eclipse.tracecompass.ctf.core/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %Bundle-Name
Bundle-Vendor: %Bundle-Vendor
Bundle-Version: 4.3.0.qualifier
Bundle-Version: 4.4.0.qualifier
Bundle-Localization: plugin
Bundle-SymbolicName: org.eclipse.tracecompass.ctf.core;singleton:=true
Bundle-Activator: org.eclipse.tracecompass.internal.ctf.core.Activator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,18 @@ public class BlobDeclaration extends Declaration {
private final int fLength;
private final String fMediaType;

/**
* Constructor
*
* @param len
* The length in bits
* @param mediaType
* The media type of the data
*/
public BlobDeclaration(int len, String mediaType) {
this(len, mediaType, null);
}

/**
* Constructor
*
Expand All @@ -41,6 +53,7 @@ public class BlobDeclaration extends Declaration {
* The media type of the data
* @param role
* The role of the blob
* @since 4.4
*/
public BlobDeclaration(int len, String mediaType, String role) {
fLength = len;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public interface IDeclaration {
/**
* This method returns the role of a declaration
* @return the role of the declaration
* @since 4.3
* @since 4.4
*/
public default @Nullable String getRole() {
return null;
Expand All @@ -109,7 +109,7 @@ public interface IDeclaration {
* This method sets the role for a declaration
* @param role
* the new role for the declaration
* @since 4.3
* @since 4.4
*/
public default void setRole(String role) {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public static IntegerDeclaration createDeclaration(int len, boolean signed, int
* @param role
* The role of the declaration
* @return The integer declaration
* @since 4.3
* @since 4.4
*/
public static IntegerDeclaration createDeclaration(int len, boolean signed, int base,
@Nullable ByteOrder byteOrder, Encoding encoding, String clock, long alignment, @Nullable String role) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public Definition lookupDefinition(String lookupPath, ScopedDefinition defintion
* @param role
* the role we are searching for
* @return the definition with the wanted role
* @since 4.3
* @since 4.4
*/
public IDefinition lookupRole(String role) {
for (IDefinition def : fDefinitions) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ private void validateUUID(StructDefinition packetHeaderDef) throws CTFException
* Checks whether the trace is CTF2 or not
*
* @return boolean true if trace is CTF2
* @since 4.3
* @since 4.4
*/
public boolean isCTF2() {
return Long.valueOf(2).equals(fMajor);
Expand Down

0 comments on commit 36bbab2

Please sign in to comment.