Skip to content

Commit

Permalink
scripting: Add missing static in TmfScriptAnalysis
Browse files Browse the repository at this point in the history
As otherwise reported locally by SonarLint in Eclipse.

Fix missing or superfluous blank lines while there.

Change-Id: I622500c0d7891cc6eeba691018ea9417baac909c
Signed-off-by: Marco Miller <marco.miller@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/c/tracecompass.incubator/org.eclipse.tracecompass.incubator/+/197316
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
marco-miller committed Nov 28, 2022
1 parent 9e1ab23 commit f757d3f
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,14 @@ public class TmfScriptAnalysis extends TmfAbstractAnalysisModule implements ITmf
* ID of this analysis
*/
public static final String ID = "org.eclipse.tracecompass.incubator.scripting.analysis"; //$NON-NLS-1$

private static final String SUPP_FOLDER = "scripts"; //$NON-NLS-1$
private static final String STATE_SYSTEM_FOLDER = "stateSystem"; //$NON-NLS-1$

/*
* Size of the blocking queue to use when building a state history
*/
private final int QUEUE_SIZE = 10000;
private static final int QUEUE_SIZE = 10000;

// Save the state systems
private final Map<String, ITmfStateSystem> fStateSystems = new HashMap<>();
Expand All @@ -85,7 +87,6 @@ protected boolean executeAnalysis(IProgressMonitor monitor) throws TmfAnalysisEx
@Override
public FileVisitResult visitFile(Path file, @Nullable BasicFileAttributes attrs) throws IOException {
try {

String ssid = String.valueOf(file.getFileName());
IStateHistoryBackend backend = StateHistoryBackendFactory.createHistoryTreeBackendExistingFile(
ssid, Objects.requireNonNull(file.toFile()), 1);
Expand All @@ -104,7 +105,6 @@ public FileVisitResult visitFile(Path file, @Nullable BasicFileAttributes attrs)
}
return FileVisitResult.CONTINUE;
}

});
} catch (IOException e) {
Activator.getInstance().logWarning("Uncaught error opening state system files", e); //$NON-NLS-1$
Expand Down Expand Up @@ -170,5 +170,4 @@ public boolean waitForInitialization() {
// this will need to change
return waitForCompletion();
}

}

0 comments on commit f757d3f

Please sign in to comment.