Skip to content

Commit

Permalink
Execute gradlew format
Browse files Browse the repository at this point in the history
  • Loading branch information
simonharrer committed Sep 9, 2015
1 parent 698549d commit b861041
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 3 deletions.
9 changes: 7 additions & 2 deletions src/main/java/net/sf/jabref/Globals.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import java.io.FileNotFoundException;

public class Globals {

private static final Log LOGGER = LogFactory.getLog(Globals.class);

// JabRef version info
Expand All @@ -52,6 +53,7 @@ public class Globals {

public static JournalAbbreviationRepository journalAbbrev;


public static void initializeJournalNames() {
// Read internal lists:
Globals.journalAbbrev = new JournalAbbreviationRepository();
Expand Down Expand Up @@ -79,13 +81,13 @@ public static void initializeJournalNames() {
try {
Globals.journalAbbrev.readJournalListFromFile(new File(Globals.prefs.get(JabRefPreferences.PERSONAL_JOURNAL_LIST)));
} catch (FileNotFoundException e) {
LOGGER.info("Personal journal list file '" + Globals.prefs.get(JabRefPreferences.PERSONAL_JOURNAL_LIST)
+ "' not found.", e);
LOGGER.info("Personal journal list file '" + Globals.prefs.get(JabRefPreferences.PERSONAL_JOURNAL_LIST) + "' not found.", e);
}
}

}


public static final ImportFormatReader importFormatReader = new ImportFormatReader();

public static CacheableHandler handler;
Expand All @@ -107,6 +109,7 @@ public static void initializeJournalNames() {
public static FileUpdateMonitor fileUpdateMonitor;
public static StreamEavesdropper streamEavesdropper;


public static void startBackgroundTasks() {
Globals.focusListener = new GlobalFocusListener();

Expand All @@ -116,9 +119,11 @@ public static void startBackgroundTasks() {
JabRefExecutorService.INSTANCE.executeWithLowPriorityInOwnThread(Globals.fileUpdateMonitor, "FileUpdateMonitor");
}


// Autosave manager
public static AutoSaveManager autoSaveManager;


public static void startAutoSaveManager(JabRefFrame frame) {
Globals.autoSaveManager = new AutoSaveManager(frame);
Globals.autoSaveManager.startAutoSaveTimer();
Expand Down
1 change: 1 addition & 0 deletions src/main/java/net/sf/jabref/JabRefMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* JabRef MainClass
*/
public class JabRefMain {

public static void main(String[] args) {
new JabRef().start(args);
}
Expand Down
1 change: 1 addition & 0 deletions src/main/java/net/sf/jabref/gui/BaseAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@
* appropriate BaseAction object, and runs its action() method.
*/
public interface BaseAction {

void action() throws Throwable;
}
3 changes: 2 additions & 1 deletion src/main/java/net/sf/jabref/gui/actions/Actions.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Global String constants for GUI actions
*/
public class Actions {

public static final String ABBREVIATE_ISO = "abbreviateIso";
public static final String ABBREVIATE_MEDLINE = "abbreviateMedline";
public static final String ADD_FILE_LINK = "addFileLink";
Expand All @@ -30,7 +31,7 @@ public class Actions {
public static final String FORWARD = "forward";
public static final String INC_SEARCH = "incSearch";
public static final String MAKE_KEY = "makeKey";
public static final String MANAGE_SELECTORS= "manageSelectors";
public static final String MANAGE_SELECTORS = "manageSelectors";
public static final String MARK_ENTRIES = "markEntries";
public static final String MERGE_DATABASE = "mergeDatabase";
public static final String MERGE_ENTRIES = "mergeEntries";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@
import java.awt.event.ActionListener;

public class CaseChangeMenu extends JMenu {

private final JTextComponent parent;


public CaseChangeMenu(JTextComponent opener) {
super(Localization.lang("Change case"));
parent = opener;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* writing the same fields.
*/
class FieldContentParser {

/**
* Performs the reformatting
* @param content StringBuffer containing the field to format. key contains field name according to field
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/net/sf/jabref/logic/util/BuildInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@
import java.util.Properties;

public class BuildInfo {

private final String version;


public BuildInfo() {
this("/resource/build.properties");
}
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/net/sf/jabref/logic/util/io/URLUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@
import java.util.Objects;

public class URLUtil {

private static final String URL_EXP = "^(https?|ftp)://.+";


/**
* Cleans URLs returned by Google search.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import java.io.IOException;

public class EncryptionNotSupportedException extends IOException {

private static final long serialVersionUID = 3280233692527372333L;


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import net.sf.jabref.JabRefPreferences;

public class PreferencesMigrations {

/**
* This method is called at startup, and makes necessary adaptations to
* preferences for users from an earlier version of Jabref.
Expand Down

0 comments on commit b861041

Please sign in to comment.