Skip to content

Commit

Permalink
Update GoTermsUpdater.java
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjohnwright authored Apr 9, 2024
1 parent dfc946c commit cbb79d5
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,11 +251,7 @@ else if (goTermsFromFile.get(goID).containsKey(GoUpdateConstants.IS_OBSOLETE) &&
{
GKInstance created = (GKInstance) referrer.getAttributeValue(ReactomeJavaConstants.created);
GKInstance author = (GKInstance) created.getAttributeValue(ReactomeJavaConstants.author);
if (author == null) {
System.out.println("ERROR: Referrer has null author: " + referrer);
} else {
obsoleteAccessionLogger.info("\t\"{}\", created by {} {} @ {}", referrer.toString(), author.getAttributeValue(ReactomeJavaConstants.firstname), author.getAttributeValue(ReactomeJavaConstants.surname), created.getAttributeValue(ReactomeJavaConstants.dateTime));
}
obsoleteAccessionLogger.info("\t\"{}\", created by {} @ {}", referrer.toString(), author != null ? author.displayName(): "author not found", created.getAttributeValue(ReactomeJavaConstants.dateTime));
}
}
mainOutput.append(lineCount + " lines from the file were processed.\n");
Expand Down

0 comments on commit cbb79d5

Please sign in to comment.