Skip to content

Commit 9b82d16

Browse files
kmaderdscho
authored andcommitted
Ignore whitespace between indexed annotations
When creating uber jars via Maven Shade's AppendingTransformer, the annotation indexes are concatenated, separated by line feed characters. So let's just ingore whitespace between indexed annotations, handling the illustrated problem gracefully. This fixes #128. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 8e11e2e commit 9b82d16

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/org/scijava/annotations/IndexReader.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ class IndexReader {
7373

7474
public Object next() throws IOException {
7575
int c = in.read();
76+
while (Character.isWhitespace(c)) c = in.read();
7677
if (c < 0) {
7778
return null;
7879
}

0 commit comments

Comments
 (0)