1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-19 23:15:24 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2016-02-23 20:04:31 -08:00
parent 8c0ea6af0b
commit a913d61e4f

View file

@ -634,8 +634,8 @@ public class IncludeOrganizer {
for (InclusionRequest request : requests) {
if (!request.isResolved() && !isExportedBinding(request, headerSubstitutor)) {
List<IPath> candidatePaths = request.getCandidatePaths();
Set<IPath> representativeHeaders = new HashSet<IPath>();
Set<IPath> representedHeaders = new HashSet<IPath>();
Set<IPath> representativeHeaders = new HashSet<>();
Set<IPath> representedHeaders = new HashSet<>();
boolean allRepresented = true;
for (IPath path : candidatePaths) {
if (fContext.isIncluded(path)) {
@ -813,7 +813,7 @@ public class IncludeOrganizer {
private List<InclusionRequest> createInclusionRequests(IASTTranslationUnit ast,
Set<IBinding> bindingsToInclude, boolean allowDeclarations,
IIndexFileSet reachableHeaders) throws CoreException {
List<InclusionRequest> requests = new ArrayList<InclusionRequest>(bindingsToInclude.size());
List<InclusionRequest> requests = new ArrayList<>(bindingsToInclude.size());
IIndex index = fContext.getIndex();
binding_loop: for (IBinding binding : bindingsToInclude) {