Skip to content

Commit

Permalink
Add some BibtexNameFomatter comments
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor committed Feb 6, 2018
1 parent e33bd58 commit 24ed12a
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/main/java/org/jabref/logic/bst/BibtexNameFormatter.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ public class BibtexNameFormatter {
private BibtexNameFormatter() {
}

/**
* Formats the nth author of the author name list by a given format string
*
* @param authorsNameList The string from an author field
* @param whichName index of the list, starting with 1
* @param formatString TODO
* @param warn collects the warnings, may-be-null
* @return
*/
public static String formatName(String authorsNameList, int whichName, String formatString, Warn warn) {
AuthorList al = AuthorList.parse(authorsNameList);

Expand All @@ -40,11 +49,7 @@ public static String formatName(String authorsNameList, int whichName, String fo
}

/**
*
* @param author
* @param format
* @param warn may-be-null
* @return
* @param warn collects the warnings, may-be-null
*/
public static String formatName(Author author, String format, Warn warn) {

Expand Down

0 comments on commit 24ed12a

Please sign in to comment.