Skip to content

Commit

Permalink
Removed unused method (#5219)
Browse files Browse the repository at this point in the history
Fixes src\main\java\org\jabref\model\bibtexkeypattern\AbstractBibtexKeyPattern.java:60: error: [CollectionIncompatibleType] Argument 'type' should not be passed to this method; its type String is not compatible with its collection's type argument EntryType
        data.remove(type);
                   ^
    (see https://errorprone.info/bugpattern/CollectionIncompatibleType)
  • Loading branch information
koppor authored and stefan-kolb committed Aug 24, 2019
1 parent 29cf4f2 commit 8f463e4
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,6 @@ public int hashCode() {
return Objects.hash(defaultPattern, data);
}

/**
* Remove a Bibtex key pattern from the BibtexKeyPattern.
*
* @param type a <code>String</code>
*/
public void removeBibtexKeyPattern(String type) {
data.remove(type);
}

/**
* Gets an object for a desired key from this BibtexKeyPattern or one of it's
* parents (in the case of DatabaseBibtexKeyPattern). This method first tries to obtain the object from this
Expand Down

0 comments on commit 8f463e4

Please sign in to comment.