Skip to content

Commit 3a0bb1e

Browse files
committed
These look incorrect - probably a copy/paste error
1 parent c03522b commit 3a0bb1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/edu/stanford/nlp/ling/CoreAnnotations.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ public Class<String> getType() {
563563
public static class CoNLLUTokenSpanAnnotation implements CoreAnnotation<IntPair> {
564564
@Override
565565
public Class<IntPair> getType() {
566-
return ErasureUtils.uncheckedCast(Pair.class);
566+
return IntPair.class;
567567
}
568568
}
569569

@@ -573,7 +573,7 @@ public Class<IntPair> getType() {
573573
public static class CoNLLUSecondaryDepsAnnotation implements CoreAnnotation<HashMap<String,String>> {
574574
@Override
575575
public Class<HashMap<String,String>> getType() {
576-
return ErasureUtils.uncheckedCast(Pair.class);
576+
return ErasureUtils.uncheckedCast(HashMap.class);
577577
}
578578
}
579579

0 commit comments

Comments
 (0)