File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
org.eclipse.jgit/src/org/eclipse/jgit/revwalk Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 2424import java .util .Iterator ;
2525import java .util .List ;
2626import java .util .Map ;
27- import java .util .
28- Optional ;
2927import java .util .Set ;
3028
3129import org .eclipse .jgit .annotations .NonNull ;
5250import org .eclipse .jgit .revwalk .filter .RevFilter ;
5351import org .eclipse .jgit .treewalk .filter .TreeFilter ;
5452import org .eclipse .jgit .util .References ;
53+ import org .eclipse .jgit .util .SystemReader ;
5554
5655/**
5756 * Walks a commit graph and produces the matching commits in order.
@@ -266,12 +265,9 @@ static DateRevQueue newDateRevQueue(Generator g) throws IOException {
266265 return new DateRevQueue (g );
267266 }
268267
269- @ SuppressWarnings ("boxing" )
270268 private static boolean usePriorityQueue () {
271- return Optional
272- .ofNullable (System .getProperty ("REVWALK_USE_PRIORITY_QUEUE" )) //$NON-NLS-1$
273- .map (Boolean ::parseBoolean )
274- .orElse (false );
269+ return Boolean .parseBoolean (SystemReader .getInstance ()
270+ .getProperty ("REVWALK_USE_PRIORITY_QUEUE" )); //$NON-NLS-1$
275271 }
276272
277273 /**
You can’t perform that action at this time.
0 commit comments