You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Spotbugs, when we have the following BugInstance
<BugInstancetype="DLS_DEAD_LOCAL_STORE"priority="2"rank="17"abbrev="DLS"category="STYLE"instanceHash="9de02933b5cbd2aceff52cb845612e0c"instanceOccurrenceNum="0"instanceOccurrenceMax="0"cweid="563">
<ShortMessage>Dead store to local variable</ShortMessage>
<LongMessage>Dead store to abc in new de.kekru.example.codeanalysisbb.Main()</LongMessage>
<Classclassname="de.kekru.example.codeanalysisbb.Main"primary="true">
<SourceLineclassname="de.kekru.example.codeanalysisbb.Main"start="13"end="33"sourcefile="Main.java"sourcepath="de/kekru/example/codeanalysisbb/Main.java"relSourcepath="java\de\kekru\example\codeanalysisbb\Main.java">
<Message>At Main.java:[lines 13-33]</Message>
</SourceLine>
<Message>In class de.kekru.example.codeanalysisbb.Main</Message>
</Class>
...
<SourceLineclassname="de.kekru.example.codeanalysisbb.Main"primary="true"start="23"end="23"startBytecode="33"endBytecode="33"sourcefile="Main.java"sourcepath="de/kekru/example/codeanalysisbb/Main.java"relSourcepath="java\de\kekru\example\codeanalysisbb\Main.java">
<Message>At Main.java:[line 23]</Message>
</SourceLine>
...
</BugInstance>
Then currently we take BugInstance.Class.SourceLine.End = 33 as line number.
The exact line number would be BugInstance.SourceLine.End = 23.
So when line 33 is not changed, then Bitbucket will not annotate this finding.
Current problem is, that it seems, that the generated Java files from the XSD do not allow to navigate to BugInstance.SourceLine
The text was updated successfully, but these errors were encountered:
In Spotbugs, when we have the following BugInstance
Then currently we take
BugInstance.Class.SourceLine.End = 33
as line number.The exact line number would be
BugInstance.SourceLine.End = 23
.So when line 33 is not changed, then Bitbucket will not annotate this finding.
Current problem is, that it seems, that the generated Java files from the XSD do not allow to navigate to
BugInstance.SourceLine
The text was updated successfully, but these errors were encountered: