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

devonfw / IDEasy / 26101908636

19 May 2026 01:55PM UTC coverage: 70.982% (+0.003%) from 70.979%
26101908636

Pull #1859

github

web-flow
Merge cf4a7f717 into b4eeee25f
Pull Request #1859: #1392: Smart completions

4472 of 6964 branches covered (64.22%)

Branch coverage included in aggregate %.

11521 of 15567 relevant lines covered (74.01%)

3.14 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

5
/**
6
 * Implementation of {@link CompletionCandidateCollector} that wraps an existing {@link CompletionCandidateCollector} adding a prefix.
7
 */
8
public class CompletionCandidateCollectorAdapter implements CompletionCandidateCollector {
9

10
  private final String prefix;
11

12
  private final CompletionCandidateCollector delegate;
13

14
  /**
15
   * The constructor.
16
   *
17
   * @param prefix the prefix to add to the completions.
18
   * @param delegate the {@link CompletionCandidateCollector} to wrap.
19
   */
20
  public CompletionCandidateCollectorAdapter(String prefix, CompletionCandidateCollector delegate) {
21

22
    super();
×
23
    this.prefix = prefix;
×
24
    this.delegate = delegate;
×
25
  }
×
26

27
  @Override
28
  public void add(CompletionCandidate completion) {
29
    this.delegate.add(this.prefix + completion.text(), completion.description());
×
30
  }
×
31

32
  @Override
33
  public void add(String text, String description) {
34
    this.delegate.add(this.prefix + text, description);
×
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
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc