Skip to content

Commit 31f3599

Browse files
authored
Minor code style updates (#13722)
* Fix filename * Remove empty JavaDoc * Use explicit if
1 parent d06248f commit 31f3599

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

jablib/src/main/java/org/jabref/logic/importer/fileformat/MrDLibImporter.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
/**
2-
*
3-
*/
41
package org.jabref.logic.importer.fileformat;
52

63
import java.io.BufferedReader;

jablib/src/main/java/org/jabref/logic/openoffice/style/JStyleGetCitationMarker.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,13 @@ private static String formatAuthorList(JStyle style,
141141
// emitAllAuthors == false means use "et al."
142142
boolean emitAllAuthors = (nAuthors <= maxAuthors) || (maxAuthors == -1);
143143

144-
int nAuthorsToEmit = emitAllAuthors
145-
? nAuthors
146-
// If we use "et al." maxAuthorsBeforeEtAl also limits the
147-
// number of authors emitted.
148-
: Math.min(maxAuthorsBeforeEtAl, nAuthors);
144+
int nAuthorsToEmit;
145+
if (emitAllAuthors) {
146+
nAuthorsToEmit = nAuthors;
147+
} else {
148+
// If we use "et al." maxAuthorsBeforeEtAl also limits the number of authors emitted.
149+
nAuthorsToEmit = Math.min(maxAuthorsBeforeEtAl, nAuthors);
150+
}
149151

150152
if (nAuthorsToEmit >= 1) {
151153
stringBuilder.append(style.getAuthorsPartMarkupBefore());

0 commit comments

Comments
 (0)