Skip to content

Commit b506e1a

Browse files
committed
Merge pull request #72 from lenhard/master
Bump pdfbox dependency versions
2 parents 4b20b50 + 4c3e0d5 commit b506e1a

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[master]
2+
- Streamline logging API: Replace usages of java.util.logging with commons.logging
23
- "ISBN to BibTeX" fetcher now uses eBook.de's API (fixes bug #1241)
34
- Update dependencies: jersey, commons.logging, pdfbox, jgoodies, lazedlists, JDBC connectors
45
- Refactored preferences

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ dependencies {
7676

7777
compile 'org.swinglabs:swingx:1.6.1'
7878

79-
compile 'org.apache.pdfbox:pdfbox:1.8.9'
80-
compile 'org.apache.pdfbox:fontbox:1.8.9'
81-
compile 'org.apache.pdfbox:jempbox:1.8.9'
79+
compile 'org.apache.pdfbox:pdfbox:1.8.10'
80+
compile 'org.apache.pdfbox:fontbox:1.8.10'
81+
compile 'org.apache.pdfbox:jempbox:1.8.10'
8282

8383
compile 'commons-cli:commons-cli:1.3.1'
8484

src/main/java/net/sf/jabref/Globals.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,9 @@ public ResourceBundle newBundle(String baseName, Locale locale,
104104

105105

106106
private static int SHORTCUT_MASK = -1;
107-
public static final int
108-
FUTURE_YEAR = 2050; // Needs to give a year definitely in the future.
109-
// Used for guessing the
110-
// year field when parsing textual data. :-)
111107

112-
public static int STANDARD_EXPORT_COUNT = 5; // The number of standard export formats.
113-
public static final int METADATA_LINE_LENGTH = 70; // The line length used to wrap metadata.
108+
public static int STANDARD_EXPORT_COUNT = 5; // The number of standard export formats.
109+
public static final int METADATA_LINE_LENGTH = 70; // The line length used to wrap metadata.
114110

115111
// used at highlighting in preview area.
116112
// Color chosen similar to JTextComponent.getSelectionColor(), which is

src/main/java/net/sf/jabref/imports/TextAnalyzer.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,17 @@
2222
import org.apache.commons.logging.LogFactory;
2323

2424
import net.sf.jabref.BibtexEntry;
25-
import net.sf.jabref.Globals;
2625

2726
class TextAnalyzer {
2827

2928
private final BibtexEntry be = null;
3029

3130
private static final Log LOGGER = LogFactory.getLog(TextAnalyzer.class);
32-
31+
32+
// Needs to give a year definitely in the future.
33+
// Used for guessing the
34+
// year field when parsing textual data. :-)
35+
private static final int FUTURE_YEAR = 2050;
3336

3437
public TextAnalyzer(String text) {
3538
guessBibtexFields(text);
@@ -72,10 +75,10 @@ private void guessBibtexFields(String text) {
7275
yearFound = number;
7376
} else {
7477
// More than one found. Be a bit more specific.
75-
if ((yearFound < Globals.FUTURE_YEAR) && (number < Globals.FUTURE_YEAR)) {
78+
if ((yearFound < FUTURE_YEAR) && (number < FUTURE_YEAR)) {
7679
good = -1;
7780
break; // Give up, both seem good enough.
78-
} else if ((yearFound >= Globals.FUTURE_YEAR) && (number < Globals.FUTURE_YEAR)) {
81+
} else if ((yearFound >= FUTURE_YEAR) && (number < FUTURE_YEAR)) {
7982
good = i;
8083
yearFound = number;
8184
}

0 commit comments

Comments
 (0)