Skip to content

Commit

Permalink
Initialize 'fCollapsedTypes' in the constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
testforstephen committed Mar 5, 2024
1 parent 1fe85a6 commit 4599b2d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public class CompletionProposalDescriptionProvider {
*/
private CompletionContext fContext;
private ICompilationUnit fUnit;
private Map<String, Integer> fCollapsedTypes = new HashMap<>();
private Map<String, Integer> fCollapsedTypes;

/**
* Creates a new label provider.
Expand All @@ -70,11 +70,13 @@ public CompletionProposalDescriptionProvider(ICompilationUnit unit, CompletionCo
super();
fContext = context;
fUnit = unit;
fCollapsedTypes = new HashMap<>();
}

public CompletionProposalDescriptionProvider(CompletionContext context) {
super();
fContext = context;
fCollapsedTypes = new HashMap<>();
}

/**
Expand Down

0 comments on commit 4599b2d

Please sign in to comment.