Skip to content

Commit dd42635

Browse files
author
Houssem Nasri
committed
Use primitive type
1 parent 6e15a54 commit dd42635

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jablib/src/main/java/org/jabref/logic/bibtex/comparator/YearFieldValuePlausibilityComparator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ public ComparisonResult compare(String leftValue, String rightValue) {
4646

4747
// left and right values are correctly formatted.
4848

49-
Integer leftYear = extractYear(leftValue).get();
50-
Integer rightYear = extractYear(rightValue).get();
49+
int leftYear = extractYear(leftValue).get();
50+
int rightYear = extractYear(rightValue).get();
5151
boolean leftYearInRange = (leftYear >= 1800) && (leftYear <= Year.now().getValue() + 2);
5252
boolean rightYearInRange = (rightYear >= 1800) && (rightYear <= Year.now().getValue() + 2);
5353
if (leftYearInRange && !rightYearInRange) {

0 commit comments

Comments
 (0)