Skip to content

Commit

Permalink
Renaming the methods arguments
Browse files Browse the repository at this point in the history
Signed-off-by: sheche <[email protected]>
  • Loading branch information
jdneo committed Jun 20, 2022
1 parent c26d07a commit eb8f148
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,15 @@ public ProjectConfigurationUpdateHandler(ProjectsManager projectManager) {
this.projectManager = projectManager;
}

public void updateConfigurations(List<TextDocumentIdentifier> param) {
/**
* Update the projects' configurations (build files).
*
* @param identifiers the identifiers which may point to the projects' paths or
* files that belong to some projects in the workspace.
*/
public void updateConfigurations(List<TextDocumentIdentifier> identifiers) {
Set<IProject> projects = new HashSet<>();
for (TextDocumentIdentifier identifier : param) {
for (TextDocumentIdentifier identifier : identifiers) {
IProject project = getProjectFromUri(identifier.getUri());
if (project != null) {
projects.add(project);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ public interface JavaProtocolExtensions {

/**
* Request a project configuration update
*
* @deprecated Please use {@link #projectConfigurationsUpdate(TextDocumentIdentifier)}.
* @param documentUri the document from which the project configuration will be updated
*/
@JsonNotification
Expand All @@ -72,7 +74,7 @@ public interface JavaProtocolExtensions {
* @param documentUris the documents from which the project configuration will be updated
*/
@JsonNotification
void projectConfigurationsUpdate(ProjectConfigurationsUpdateParam documentUris);
void projectConfigurationsUpdate(ProjectConfigurationsUpdateParam params);

@JsonRequest
CompletableFuture<BuildWorkspaceStatus> buildWorkspace(Either<Boolean, boolean[]> forceReBuild);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyBoolean;
import static org.mockito.ArgumentMatchers.eq;
import static org.mockito.Mockito.doNothing;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
Expand Down

0 comments on commit eb8f148

Please sign in to comment.