• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

devonfw / IDEasy / 30071790016

24 Jul 2026 06:16AM UTC coverage: 72.586% (+0.03%) from 72.561%
30071790016

Pull #2204

github

web-flow
Merge 8c6327fc3 into dd45e9162
Pull Request #2204: #2192-support-for-auto-completion-synonyms

4990 of 7598 branches covered (65.68%)

Branch coverage included in aggregate %.

12856 of 16988 relevant lines covered (75.68%)

3.2 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
cli/src/main/java/com/devonfw/tools/ide/completion/CompletionCandidateCollectorAdapter.java
1
package com.devonfw.tools.ide.completion;
2

3
import java.util.List;
4
import java.util.Set;
5

6
import com.devonfw.tools.ide.commandlet.Commandlet;
7
import com.devonfw.tools.ide.property.Property;
8

9
/**
10
 * Implementation of {@link CompletionCandidateCollector} that wraps an existing {@link CompletionCandidateCollector} adding a prefix.
11
 */
12
public class CompletionCandidateCollectorAdapter implements CompletionCandidateCollector {
13

14
  private final String prefix;
15

16
  private final CompletionCandidateCollector delegate;
17

18
  /**
19
   * The constructor.
20
   *
21
   * @param prefix the prefix to add to the completions.
22
   * @param delegate the {@link CompletionCandidateCollector} to wrap.
23
   */
24
  public CompletionCandidateCollectorAdapter(String prefix, CompletionCandidateCollector delegate) {
25

26
    super();
×
27
    this.prefix = prefix;
×
28
    this.delegate = delegate;
×
29
  }
×
30

31
  @Override
32
  public void add(String text, String description, Property<?> property, Commandlet commandlet) {
33

34
    this.delegate.add(this.prefix + text, description, property, commandlet);
×
35
  }
×
36

37
  @Override
38
  public List<CompletionCandidate> getCandidates() {
39

40
    return this.delegate.getCandidates();
×
41
  }
42

43
  @Override
44
  public List<CompletionCandidate> getSortedCandidates() {
45

46
    return this.delegate.getSortedCandidates();
×
47
  }
48

49
  @Override
50
  public void disableSorting() {
51

52
    this.delegate.disableSorting();
×
53
  }
×
54

55
  @Override
56
  public void setAlreadyProvided(Set<String> alreadyProvided) {
57

58
    this.delegate.setAlreadyProvided(alreadyProvided);
×
59
  }
×
60

61
  @Override
62
  public Set<String> getAlreadyProvided() {
63

64
    return this.delegate.getAlreadyProvided();
×
65
  }
66
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc