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

devonfw / IDEasy / 13788808942

11 Mar 2025 01:08PM UTC coverage: 66.998% (-1.6%) from 68.619%
13788808942

Pull #1017

github

web-flow
Merge 2597874a1 into 2cf68279f
Pull Request #1017: #404: enhance logging with custom slf4j bridge

3034 of 4951 branches covered (61.28%)

Branch coverage included in aggregate %.

7831 of 11266 relevant lines covered (69.51%)

3.03 hits per line

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

66.67
cli/src/main/java/com/devonfw/tools/ide/url/model/AbstractUrlArtifactWithParent.java
1
package com.devonfw.tools.ide.url.model;
2

3
import com.devonfw.tools.ide.url.model.folder.AbstractUrlFolder;
4
import com.devonfw.tools.ide.url.model.folder.UrlFolder;
5

6
/**
7
 * Abstract base implementation of {@link UrlFolder} and {@link UrlArtifactWithParent}.
8
 *
9
 * @param <P> type of the {@link #getParent() parent} {@link UrlFolder folder}.
10
 */
11
public abstract class AbstractUrlArtifactWithParent<P extends AbstractUrlFolder<?>> extends AbstractUrlArtifact
12
    implements UrlArtifactWithParent<P> {
13

14
  private final P parent;
15

16
  /**
17
   * The constructor.
18
   *
19
   * @param parent the {@link #getParent() parent folder}.
20
   * @param name the {@link #getName() filename}.
21
   */
22
  public AbstractUrlArtifactWithParent(P parent, String name) {
23

24
    super(parent.getPath().resolve(name), name);
7✔
25
    this.parent = parent;
3✔
26
  }
1✔
27

28
  @Override
29
  public P getParent() {
30

31
    return this.parent;
3✔
32
  }
33

34
  @Override
35
  public void delete() {
36
    getParent().deleteChild(getName());
×
37
  }
×
38
}
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