fix Sonarlint warnings

This commit is contained in:
2021-01-09 22:23:38 +01:00
parent 73b21cb80b
commit 45e1031e5e
5 changed files with 674 additions and 548 deletions

View File

@ -587,10 +587,9 @@ public class WaveformView implements IWaveformView {
if (evt instanceof ITxEvent) {
ITx tx = ((ITxEvent) evt).getTransaction();
if ((evt.getKind() == EventKind.BEGIN || evt.getKind() == EventKind.SINGLE)
&& tx.getBeginTime() <= time && tx.getEndTime() >= time) {
if (resultsList[tx.getConcurrencyIndex()] == null)
resultsList[tx.getConcurrencyIndex()] = ((ITxEvent) evt).getTransaction();
}
&& tx.getBeginTime() <= time && tx.getEndTime() >= time
&& resultsList[tx.getConcurrencyIndex()] == null)
resultsList[tx.getConcurrencyIndex()] = ((ITxEvent) evt).getTransaction();
}
}
firstTx = entry.waveform.getEvents().lowerEntry(firstTx.getKey());