Skip to content

Commit

Permalink
fix checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
Siedlerchr committed Apr 16, 2020
1 parent ca4d13a commit bf01f0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<!-- BeforeExecutionFileFilters is required for sources that are based on java14 -->
<module name="BeforeExecutionExclusionFileFilter">
<property name="fileNamePattern" value="AuthorAndsReplacer.java|Ordinal.java" />
<property name="fileNamePattern" value="AuthorAndsReplacer.java|Ordinal.java|EntryTypeView.java" />
</module>

<module name="SuppressionFilter">
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/org/jabref/gui/EntryTypeView.java
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ private void setEntryTypeForReturnAndClose(Optional<BibEntryType> entryType) {
//Biblatex documentation is favored over the bibtex,
//since bibtex is a subset of biblatex and biblatex is better documented.
public static String getDescription(EntryType selectedType) {
//CHECKSTYLE:OFF
if (selectedType instanceof StandardEntryType) {
switch ((StandardEntryType) selectedType) {
case Article -> {
Expand Down Expand Up @@ -293,6 +294,8 @@ public static String getDescription(EntryType selectedType) {
} else {
return "";
}
//CHECKSTYLE:ON

}

}

0 comments on commit bf01f0b

Please sign in to comment.