Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed unused method #5219

Merged
merged 1 commit into from
Aug 24, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Removed unused method
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 committed Aug 24, 2019
commit 2a7cee80854dc11031fdadde40ac128b629afe0c
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