@@ -421,19 +421,19 @@ public Object execute(ExecutionEvent event) throws ExecutionException {
421421 // #optimization available streams. These are the "filtered" streams.
422422 Set <Stream > candidates = streamSet == null ? Collections .emptySet ()
423423 : streamSet .parallelStream ().filter (s -> {
424- String pluginId = FrameworkUtil .getBundle (Stream .class ).getSymbolicName ();
424+ String pluginId = FrameworkUtil .getBundle (Stream .class ).getSymbolicName ();
425425
426- // error related to reachability.
427- RefactoringStatusEntry reachabilityError = s .getStatus ().getEntryMatchingCode (pluginId ,
428- PreconditionFailure .STREAM_CODE_NOT_REACHABLE .getCode ());
426+ // error related to reachability.
427+ RefactoringStatusEntry reachabilityError = s .getStatus ().getEntryMatchingCode (pluginId ,
428+ PreconditionFailure .STREAM_CODE_NOT_REACHABLE .getCode ());
429429
430- // error related to missing entry points.
431- RefactoringStatusEntry entryPointError = s .getStatus ().getEntryMatchingCode (pluginId ,
432- PreconditionFailure .NO_ENTRY_POINT .getCode ());
430+ // error related to missing entry points.
431+ RefactoringStatusEntry entryPointError = s .getStatus ().getEntryMatchingCode (pluginId ,
432+ PreconditionFailure .NO_ENTRY_POINT .getCode ());
433433
434- // filter streams without such errors.
435- return reachabilityError == null && entryPointError == null ;
436- }).collect (Collectors .toSet ());
434+ // filter streams without such errors.
435+ return reachabilityError == null && entryPointError == null ;
436+ }).collect (Collectors .toSet ());
437437
438438 resultsPrinter .print (candidates .size ()); // number.
439439
@@ -448,28 +448,28 @@ public Object execute(ExecutionEvent event) throws ExecutionException {
448448 // stream attributes.
449449 if (streamSet != null )
450450 for (Stream stream : streamSet ) {
451- streamAttributesPrinter .printRecord (javaProject .getElementName (), stream .getCreation (),
452- stream .getCreation ().getStartPosition (), stream .getCreation ().getLength (),
453- Util .getMethodIdentifier (stream .getEnclosingEclipseMethod ()),
454- stream .getEnclosingType () == null ? null
455- : stream .getEnclosingType ().getFullyQualifiedName (),
456- stream .hasPossibleSideEffects (), stream .hasPossibleStatefulIntermediateOperations (),
457- stream .reduceOrderingPossiblyMatters (), stream .getRefactoring (),
458- stream .getPassingPrecondition (), stream .getStatus ().isOK () ? 0
459- : stream .getStatus ().getEntryWithHighestSeverity ().getSeverity ());
451+ streamAttributesPrinter .printRecord (javaProject .getElementName (), stream .getCreation (),
452+ stream .getCreation ().getStartPosition (), stream .getCreation ().getLength (),
453+ Util .getMethodIdentifier (stream .getEnclosingEclipseMethod ()),
454+ stream .getEnclosingType () == null ? null
455+ : stream .getEnclosingType ().getFullyQualifiedName (),
456+ stream .hasPossibleSideEffects (), stream .hasPossibleStatefulIntermediateOperations (),
457+ stream .reduceOrderingPossiblyMatters (), stream .getRefactoring (),
458+ stream .getPassingPrecondition (), stream .getStatus ().isOK () ? 0
459+ : stream .getStatus ().getEntryWithHighestSeverity ().getSeverity ());
460460
461- String method = Util .getMethodIdentifier (stream .getEnclosingEclipseMethod ());
461+ String method = Util .getMethodIdentifier (stream .getEnclosingEclipseMethod ());
462462
463- printStreamAttributesWithMultipleValues (stream .getActions (), streamActionsPrinter , stream ,
464- method , javaProject );
463+ printStreamAttributesWithMultipleValues (stream .getActions (), streamActionsPrinter , stream ,
464+ method , javaProject );
465465
466- printStreamAttributesWithMultipleValues (stream .getPossibleExecutionModes (),
467- streamExecutionModePrinter , stream , method , javaProject );
466+ printStreamAttributesWithMultipleValues (stream .getPossibleExecutionModes (),
467+ streamExecutionModePrinter , stream , method , javaProject );
468468
469469 printStreamAttributesWithMultipleValues (stream .getPossibleOrderings (),
470470 streamOrderingPrinter , stream , method , javaProject );
471471
472- }
472+ }
473473
474474 // #optimizable streams.
475475 Set <Stream > optimizableStreams = processor .getOptimizableStreams ();
@@ -528,7 +528,7 @@ public Object execute(ExecutionEvent event) throws ExecutionException {
528528 for (Refactoring refactoring : Refactoring .values ())
529529 resultsPrinter .print (streamSet == null ? 0
530530 : streamSet .parallelStream ().map (Stream ::getRefactoring )
531- .filter (r -> Objects .equals (r , refactoring )).count ());
531+ .filter (r -> Objects .equals (r , refactoring )).count ());
532532
533533 // Precondition success counts.
534534 for (PreconditionSuccess preconditionSuccess : PreconditionSuccess .values ())
@@ -545,7 +545,7 @@ public Object execute(ExecutionEvent event) throws ExecutionException {
545545
546546 // actually perform the refactoring if there are no fatal
547547 // errors.
548- if (EvaluateConvertToParallelStreamRefactoringHandler . shouldPerformChange ())
548+ if (shouldPerformChange ())
549549 if (!status .hasFatalError ()) {
550550 resultsTimeCollector .start ();
551551 Change change = new ProcessorBasedRefactoring (processor )
0 commit comments