Skip to content

Commit b0d63e4

Browse files
committed
Reformat code
1 parent eee93f3 commit b0d63e4

File tree

1,618 files changed

+46255
-41501
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,618 files changed

+46255
-41501
lines changed

src/jmh/java/org/jabref/benchmarks/Benchmarks.java

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ public void init() throws Exception {
6262
BibEntry entry = new BibEntry();
6363
entry.setCitationKey("id" + i);
6464
entry.setField(StandardField.TITLE, "This is my title " + i);
65-
entry.setField(StandardField.AUTHOR, "Firstname Lastname and FirstnameA LastnameA and FirstnameB LastnameB" + i);
65+
entry.setField(
66+
StandardField.AUTHOR, "Firstname Lastname and FirstnameA LastnameA and FirstnameB LastnameB" + i);
6667
entry.setField(StandardField.JOURNAL, "Journal Title " + i);
6768
entry.setField(StandardField.KEYWORDS, "testkeyword");
6869
entry.setField(StandardField.YEAR, "1" + i);
@@ -72,7 +73,8 @@ public void init() throws Exception {
7273

7374
bibtexString = getOutputWriter().toString();
7475

75-
latexConversionString = "{A} \\textbf{bold} approach {\\it to} ${{\\Sigma}}{\\Delta}$ modulator \\textsuperscript{2} \\$";
76+
latexConversionString =
77+
"{A} \\textbf{bold} approach {\\it to} ${{\\Sigma}}{\\Delta}$ modulator \\textsuperscript{2} \\$";
7678

7779
htmlConversionString = "<b>&Ouml;sterreich</b> &#8211; &amp; characters &#x2aa2; <i>italic</i>";
7880
}
@@ -112,7 +114,9 @@ public List<BibEntry> search() {
112114
public List<BibEntry> parallelSearch() {
113115
// FIXME: Reuse SearchWorker here
114116
SearchQuery searchQuery = new SearchQuery("Journal Title 500", EnumSet.noneOf(SearchFlags.class));
115-
return database.getEntries().parallelStream().filter(searchQuery::isMatch).collect(Collectors.toList());
117+
return database.getEntries().parallelStream()
118+
.filter(searchQuery::isMatch)
119+
.collect(Collectors.toList());
116120
}
117121

118122
@Benchmark
@@ -140,7 +144,8 @@ public String htmlToLatexConversion() {
140144

141145
@Benchmark
142146
public boolean keywordGroupContains() {
143-
KeywordGroup group = new WordKeywordGroup("testGroup", GroupHierarchyType.INDEPENDENT, StandardField.KEYWORDS, "testkeyword", false, ',', false);
147+
KeywordGroup group = new WordKeywordGroup(
148+
"testGroup", GroupHierarchyType.INDEPENDENT, StandardField.KEYWORDS, "testkeyword", false, ',', false);
144149
return group.containsAll(database.getEntries());
145150
}
146151

src/main/java/module-info.java

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,30 +14,32 @@
1414
requires javafx.fxml;
1515
requires afterburner.fx;
1616
requires com.dlsc.gemsfx;
17+
1718
uses com.dlsc.gemsfx.TagsField;
19+
1820
requires de.saxsys.mvvmfx;
1921
requires reactfx;
2022
requires org.fxmisc.flowless;
21-
2223
requires org.kordamp.ikonli.core;
2324
requires org.kordamp.ikonli.javafx;
2425
requires org.kordamp.ikonli.materialdesign2;
26+
2527
uses org.kordamp.ikonli.IkonHandler;
2628
uses org.kordamp.ikonli.IkonProvider;
2729

28-
provides org.kordamp.ikonli.IkonHandler
29-
with org.jabref.gui.icon.JabRefIkonHandler;
30-
provides org.kordamp.ikonli.IkonProvider
31-
with org.jabref.gui.icon.JabrefIconProvider;
30+
provides org.kordamp.ikonli.IkonHandler with
31+
org.jabref.gui.icon.JabRefIkonHandler;
32+
provides org.kordamp.ikonli.IkonProvider with
33+
org.jabref.gui.icon.JabrefIconProvider;
3234

3335
requires org.controlsfx.controls;
3436
requires org.fxmisc.richtext;
3537
requires com.tobiasdiez.easybind;
3638

37-
provides com.airhacks.afterburner.views.ResourceLocator
38-
with org.jabref.gui.util.JabRefResourceLocator;
39-
provides com.airhacks.afterburner.injection.PresenterFactory
40-
with org.jabref.gui.DefaultInjector;
39+
provides com.airhacks.afterburner.views.ResourceLocator with
40+
org.jabref.gui.util.JabRefResourceLocator;
41+
provides com.airhacks.afterburner.injection.PresenterFactory with
42+
org.jabref.gui.DefaultInjector;
4143

4244
// Logging
4345
requires org.slf4j;
@@ -47,8 +49,8 @@
4749
requires org.tinylog.api.slf4j;
4850
requires org.tinylog.impl;
4951

50-
provides org.tinylog.writers.Writer
51-
with org.jabref.gui.logging.GuiWriter;
52+
provides org.tinylog.writers.Writer with
53+
org.jabref.gui.logging.GuiWriter;
5254

5355
// Preferences and XML
5456
requires java.prefs;
@@ -85,6 +87,7 @@
8587
requires ojdbc10;
8688
requires org.postgresql.jdbc;
8789
requires org.mariadb.jdbc;
90+
8891
uses org.mariadb.jdbc.credential.CredentialPlugin;
8992

9093
// Apache Commons and other (similar) helper libraries
@@ -94,28 +97,20 @@
9497
requires com.google.common;
9598
requires io.github.javadiffutils;
9699
requires java.string.similarity;
97-
98100
requires com.github.tomtung.latex2unicode;
99101
requires fastparse;
100-
101102
requires jbibtex;
102103
requires citeproc.java;
103-
104104
requires snuggletex.core;
105-
106105
requires org.apache.pdfbox;
107106
requires org.apache.xmpbox;
108107
requires com.ibm.icu;
109-
110108
requires flexmark;
111109
requires flexmark.util.ast;
112110
requires flexmark.util.data;
113-
114111
requires com.h2database.mvstore;
115-
116112
requires java.keyring;
117113
requires org.freedesktop.dbus;
118-
119114
requires org.jooq.jool;
120115

121116
// fulltext search
@@ -124,15 +119,16 @@
124119
uses org.apache.lucene.codecs.lucene95.Lucene95Codec;
125120

126121
requires org.apache.lucene.queryparser;
122+
127123
uses org.apache.lucene.queryparser.classic.MultiFieldQueryParser;
124+
128125
requires org.apache.lucene.analysis.common;
129126
requires org.apache.lucene.highlighter;
130-
131127
requires net.harawata.appdirs;
132128
requires com.sun.jna;
133129
requires com.sun.jna.platform;
134-
135130
requires org.eclipse.jgit;
131+
136132
uses org.eclipse.jgit.transport.SshSessionFactory;
137133
uses org.eclipse.jgit.lib.GpgSigner;
138134

0 commit comments

Comments
 (0)