mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
removing unused parameter and field
This commit is contained in:
@@ -207,7 +207,7 @@ public class CompileDriver {
|
||||
compileScope = projectScope;
|
||||
}
|
||||
else {
|
||||
CompileScope scopeWithArtifacts = ArtifactCompileScope.createScopeWithArtifacts(projectScope, ArtifactUtil.getArtifactWithOutputPaths(myProject), false);
|
||||
CompileScope scopeWithArtifacts = ArtifactCompileScope.createScopeWithArtifacts(projectScope, ArtifactUtil.getArtifactWithOutputPaths(myProject));
|
||||
compileScope = addAdditionalRoots(scopeWithArtifacts, ALL_EXCEPT_SOURCE_PROCESSING);
|
||||
}
|
||||
doRebuild(callback, null, true, compileScope);
|
||||
|
||||
+5
-10
@@ -43,8 +43,7 @@ public class ArtifactCompileScope {
|
||||
private static final Key<Boolean> FORCE_ARTIFACT_BUILD = Key.create("force_artifact_build");
|
||||
private static final Key<Artifact[]> ARTIFACTS_KEY = Key.create("artifacts");
|
||||
private static final Key<Set<Artifact>> CACHED_ARTIFACTS_KEY = Key.create("cached_artifacts");
|
||||
private static final Key<Key<?>> ARTIFACTS_CONTENT_ID_KEY = Key.create("build_artifacts_task");
|
||||
|
||||
|
||||
private ArtifactCompileScope() {
|
||||
}
|
||||
|
||||
@@ -61,19 +60,15 @@ public class ArtifactCompileScope {
|
||||
public static CompileScope createArtifactsScope(@NotNull Project project,
|
||||
@NotNull Collection<Artifact> artifacts,
|
||||
final boolean forceArtifactBuild) {
|
||||
return createScopeWithArtifacts(createScopeForModulesInArtifacts(project, artifacts), artifacts, true, forceArtifactBuild);
|
||||
return createScopeWithArtifacts(createScopeForModulesInArtifacts(project, artifacts), artifacts, forceArtifactBuild);
|
||||
}
|
||||
|
||||
public static CompileScope createScopeWithArtifacts(final CompileScope baseScope,
|
||||
@NotNull Collection<Artifact> artifacts,
|
||||
boolean useCustomContentId) {
|
||||
return createScopeWithArtifacts(baseScope, artifacts, useCustomContentId, false);
|
||||
@NotNull Collection<Artifact> artifacts) {
|
||||
return createScopeWithArtifacts(baseScope, artifacts, false);
|
||||
}
|
||||
|
||||
public static CompileScope createScopeWithArtifacts(final CompileScope baseScope,
|
||||
@NotNull Collection<Artifact> artifacts,
|
||||
boolean useCustomContentId,
|
||||
final boolean forceArtifactBuild) {
|
||||
public static CompileScope createScopeWithArtifacts(final CompileScope baseScope, @NotNull Collection<Artifact> artifacts, final boolean forceArtifactBuild) {
|
||||
baseScope.putUserData(ARTIFACTS_KEY, artifacts.toArray(new Artifact[artifacts.size()]));
|
||||
if (forceArtifactBuild) {
|
||||
baseScope.putUserData(FORCE_ARTIFACT_BUILD, Boolean.TRUE);
|
||||
|
||||
+1
-1
@@ -198,7 +198,7 @@ public class AppEngineUploader {
|
||||
|
||||
final CompilerManager compilerManager = CompilerManager.getInstance(myProject);
|
||||
final CompileScope moduleScope = compilerManager.createModuleCompileScope(myAppEngineFacet.getModule(), true);
|
||||
final CompileScope compileScope = ArtifactCompileScope.createScopeWithArtifacts(moduleScope, Collections.singletonList(myArtifact), true);
|
||||
final CompileScope compileScope = ArtifactCompileScope.createScopeWithArtifacts(moduleScope, Collections.singletonList(myArtifact));
|
||||
ApplicationManager.getApplication().invokeLater(new Runnable() {
|
||||
public void run() {
|
||||
compilerManager.make(compileScope, new CompileStatusNotification() {
|
||||
|
||||
Reference in New Issue
Block a user