@@ -138,23 +138,26 @@ public static void setLoggingLevel(int level) {
138
138
139
139
private boolean useImplicitEntrypoints = true ;
140
140
141
+ private boolean useImplicitTestEntrypoints = false ;
142
+
141
143
public ConvertToParallelStreamRefactoringProcessor () throws JavaModelException {
142
- this (null , null , false , true , Optional .empty ());
144
+ this (null , null , false , true , false , Optional .empty ());
143
145
}
144
146
145
147
public ConvertToParallelStreamRefactoringProcessor (final CodeGenerationSettings settings ,
146
148
Optional <IProgressMonitor > monitor ) throws JavaModelException {
147
- this (null , settings , false , true , monitor );
149
+ this (null , settings , false , true , false , monitor );
148
150
}
149
151
150
152
public ConvertToParallelStreamRefactoringProcessor (IJavaProject [] javaProjects ,
151
153
final CodeGenerationSettings settings , boolean layer , boolean useImplicitEntrypoints ,
152
- Optional <IProgressMonitor > monitor ) throws JavaModelException {
154
+ boolean useImplicitTestEntrypoints , Optional <IProgressMonitor > monitor ) throws JavaModelException {
153
155
try {
154
156
this .javaProjects = javaProjects ;
155
157
this .settings = settings ;
156
158
this .layer = layer ;
157
159
this .useImplicitEntrypoints = useImplicitEntrypoints ;
160
+ this .useImplicitTestEntrypoints = useImplicitTestEntrypoints ;
158
161
} finally {
159
162
monitor .ifPresent (IProgressMonitor ::done );
160
163
}
@@ -163,16 +166,16 @@ public ConvertToParallelStreamRefactoringProcessor(IJavaProject[] javaProjects,
163
166
public ConvertToParallelStreamRefactoringProcessor (IJavaProject [] javaProjects ,
164
167
final CodeGenerationSettings settings , boolean useImplicitJoinpoints , Optional <IProgressMonitor > monitor )
165
168
throws JavaModelException {
166
- this (javaProjects , settings , false , useImplicitJoinpoints , monitor );
169
+ this (javaProjects , settings , false , useImplicitJoinpoints , false , monitor );
167
170
}
168
171
169
172
public ConvertToParallelStreamRefactoringProcessor (IJavaProject [] javaProjects ,
170
173
final CodeGenerationSettings settings , Optional <IProgressMonitor > monitor ) throws JavaModelException {
171
- this (javaProjects , settings , false , true , monitor );
174
+ this (javaProjects , settings , false , true , false , monitor );
172
175
}
173
176
174
177
public ConvertToParallelStreamRefactoringProcessor (Optional <IProgressMonitor > monitor ) throws JavaModelException {
175
- this (null , null , false , true , monitor );
178
+ this (null , null , false , true , false , monitor );
176
179
}
177
180
178
181
private RefactoringStatus checkExistence (IMember member , PreconditionFailure failure ) {
@@ -189,7 +192,8 @@ public RefactoringStatus checkFinalConditions(final IProgressMonitor monitor, fi
189
192
SubMonitor subMonitor = SubMonitor .convert (monitor , Messages .CheckingPreconditions ,
190
193
this .getJavaProjects ().length * 1000 );
191
194
final RefactoringStatus status = new RefactoringStatus ();
192
- StreamAnalyzer analyzer = new StreamAnalyzer (false , this .getUseImplicitEntrypoints ());
195
+ StreamAnalyzer analyzer = new StreamAnalyzer (false , this .getUseImplicitEntrypoints (),
196
+ this .getUseImplicitTestEntrypoints ());
193
197
this .setStreamSet (analyzer .getStreamSet ());
194
198
195
199
for (IJavaProject jproj : this .getJavaProjects ()) {
@@ -449,6 +453,10 @@ private boolean getUseImplicitEntrypoints() {
449
453
return this .useImplicitEntrypoints ;
450
454
}
451
455
456
+ private boolean getUseImplicitTestEntrypoints () {
457
+ return this .useImplicitTestEntrypoints ;
458
+ }
459
+
452
460
@ Override
453
461
public boolean isApplicable () throws CoreException {
454
462
// return
0 commit comments