@@ -246,12 +246,16 @@ public Object execute(ExecutionEvent event) throws ExecutionException {
246
246
// lines of code
247
247
resultsPrinter .print (getProjectLinesOfCode (javaProject ));
248
248
249
+ // set up analysis.
249
250
TimeCollector resultsTimeCollector = new TimeCollector ();
251
+ boolean shouldFindImplicitEntrypoints = shouldFindImplicitEntrypoints ();
252
+ boolean shouldFindImplicitTestEntrypoints = shouldFindImplicitTestEntrypoints ();
253
+ boolean shouldFindImplicitBenchmarkEntrypoints = shouldFindImplicitBenchmarkEntrypoints ();
250
254
251
255
resultsTimeCollector .start ();
252
256
processor = createConvertToParallelStreamRefactoringProcessor (new IJavaProject [] { javaProject },
253
- this . shouldFindImplicitEntrypoints (), this . shouldFindImplicitTestEntrypoints () ,
254
- this . shouldFindImplicitBenchmarkEntrypoints () , Optional .of (monitor ));
257
+ shouldFindImplicitEntrypoints , shouldFindImplicitTestEntrypoints ,
258
+ shouldFindImplicitBenchmarkEntrypoints , Optional .of (monitor ));
255
259
resultsTimeCollector .stop ();
256
260
ConvertToParallelStreamRefactoringProcessor .setLoggingLevel (LOGGING_LEVEL );
257
261
@@ -482,7 +486,7 @@ public void acceptSearchMatch(SearchMatch match) throws CoreException {
482
486
return ret ;
483
487
}
484
488
485
- private boolean shouldFindImplicitBenchmarkEntrypoints () {
489
+ private static boolean shouldFindImplicitBenchmarkEntrypoints () {
486
490
String findImplicitBenchmarkEntrypoints = System .getenv (FIND_IMPLICIT_BENCHMARK_ENTRYPOINTS_PROPERTY_KEY );
487
491
488
492
if (findImplicitBenchmarkEntrypoints == null )
@@ -491,7 +495,7 @@ private boolean shouldFindImplicitBenchmarkEntrypoints() {
491
495
return Boolean .valueOf (findImplicitBenchmarkEntrypoints );
492
496
}
493
497
494
- private boolean shouldFindImplicitEntrypoints () {
498
+ private static boolean shouldFindImplicitEntrypoints () {
495
499
String findImplicitEntrypoits = System .getenv (FIND_IMPLICIT_ENTRYPOINTS_PROPERTY_KEY );
496
500
497
501
if (findImplicitEntrypoits == null )
@@ -500,7 +504,7 @@ private boolean shouldFindImplicitEntrypoints() {
500
504
return Boolean .valueOf (findImplicitEntrypoits );
501
505
}
502
506
503
- private boolean shouldFindImplicitTestEntrypoints () {
507
+ private static boolean shouldFindImplicitTestEntrypoints () {
504
508
String findImplicitTestEntrypoints = System .getenv (FIND_IMPLICIT_TEST_ENTRYPOINTS_PROPERTY_KEY );
505
509
506
510
if (findImplicitTestEntrypoints == null )
@@ -509,7 +513,7 @@ private boolean shouldFindImplicitTestEntrypoints() {
509
513
return Boolean .valueOf (findImplicitTestEntrypoints );
510
514
}
511
515
512
- private boolean shouldPerformChange () {
516
+ private static boolean shouldPerformChange () {
513
517
String performChangePropertyValue = System .getenv (PERFORM_CHANGE_PROPERTY_KEY );
514
518
515
519
if (performChangePropertyValue == null )
0 commit comments