* Comparator to order DBRefEntry by Source + accession id (case-insensitive),
* with 'Primary' sources placed before others, and 'chromosome' first of all
*/
- private static Comparator<DBRefEntry> comparator = new Comparator<>()
+ private static Comparator<DBRefEntry> comparator = new Comparator<DBRefEntry>()
{
@Override
/*
* truncate overlong descriptions unless they contain an href
- * (as truncation could leave corrupted html)
+ * before the truncation point (as truncation could leave corrupted html)
*/
int linkindex = description.toLowerCase().indexOf("<a ");
boolean hasLink = linkindex > -1
- && linkindex < (MAX_DESCRIPTION_LENGTH);
+ && linkindex < MAX_DESCRIPTION_LENGTH;
if (description.length() > MAX_DESCRIPTION_LENGTH && !hasLink)
{
description = description.substring(0, MAX_DESCRIPTION_LENGTH)