Skip to content

Commit

Permalink
fix for issue #273
Browse files Browse the repository at this point in the history
  • Loading branch information
chinuhub committed Sep 6, 2018
1 parent 267eb0a commit 0ab02e9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/java/edu/stanford/muse/ie/variants/MappedEntity.java
Expand Up @@ -54,6 +54,7 @@ then a separator (###EntityType###)
*/
public void writeObjectToStream(BufferedWriter out) throws IOException {
out.append("###Names###");
out.newLine();
for(String name: this.getAltNames()){
if(name.compareTo(this.getDisplayName())==0)
out.append("*");
Expand All @@ -63,6 +64,7 @@ public void writeObjectToStream(BufferedWriter out) throws IOException {
out.append("###EntityType###");
out.newLine();
out.append(Integer.toString(this.getEntityType()));
out.newLine();
}


Expand Down Expand Up @@ -92,8 +94,10 @@ else if(inp.trim().compareTo("###EntityType###")==0){
//else set it as only altnames
tmp.getAltNames().add(inp.trim());
}
}else if (state==1)
}else if (state==1) {
tmp.setEntityType(Short.parseShort(inp.trim()));
break; //don't read the next line that is delimiter -------------------
}
//Util.softAssert(tmp.mailingListState,"Some serious issue in reading mailing list state from the contact object",log);

inp = in.readLine();
Expand Down

0 comments on commit 0ab02e9

Please sign in to comment.