Skip to content

Commit ebe12d1

Browse files
authored
Merge pull request gousiosg#11 from bitslab/update-nr-to-short-from-byte
Update byte to short for nr
2 parents 4bc2cba + 111efb6 commit ebe12d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/gr/gousiosg/javacg/stat/coverage/JacocoCoverage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public JacocoCoverage(String path)
8282
coveredLines.add(
8383
String.format(
8484
"%s:%d",
85-
rawSrcFile.getName(), Byte.toUnsignedInt(line.nr)))));
85+
rawSrcFile.getName(), Short.toUnsignedInt(line.nr)))));
8686
}
8787

8888
/* Indicate that coverage has been applied */

src/main/resources/jacoco-schema.xsd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
<xs:complexType>
6767
<xs:simpleContent>
6868
<xs:extension base="xs:string">
69-
<xs:attribute type="xs:byte" name="nr" use="optional"/>
69+
<xs:attribute type="xs:short" name="nr" use="optional"/>
7070
<xs:attribute type="xs:byte" name="mi" use="optional"/>
7171
<xs:attribute type="xs:byte" name="ci" use="optional"/>
7272
<xs:attribute type="xs:byte" name="mb" use="optional"/>

0 commit comments

Comments
 (0)