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

devonfw / IDEasy / 14130423940

28 Mar 2025 01:49PM UTC coverage: 67.945% (+0.3%) from 67.602%
14130423940

Pull #1183

github

web-flow
Merge 06f6b024d into 1d8a6b99a
Pull Request #1183: #103: create java resemblance for security.json

3053 of 4922 branches covered (62.03%)

Branch coverage included in aggregate %.

7880 of 11169 relevant lines covered (70.55%)

3.08 hits per line

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

70.0
cli/src/main/java/com/devonfw/tools/ide/url/model/file/UrlSecurityFile.java
1
package com.devonfw.tools.ide.url.model.file;
2

3
import com.devonfw.tools.ide.url.model.file.json.ToolSecurity;
4
import com.devonfw.tools.ide.url.model.folder.AbstractUrlToolOrEdition;
5
import com.devonfw.tools.ide.url.model.folder.UrlEdition;
6

7
/**
8
 * {@link UrlFile} with the security information for an {@link UrlEdition}.
9
 */
10
public class UrlSecurityFile extends AbstractUrlFile<AbstractUrlToolOrEdition<?, ?>> {
11

12
  /** {@link #getName() Name} of security file. */
13
  public static final String SECURITY_JSON = "security.json";
14

15
  private ToolSecurity security;
16

17
  /**
18
   * The constructor.
19
   *
20
   * @param parent the {@link #getParent() parent folder}.
21
   */
22
  public UrlSecurityFile(AbstractUrlToolOrEdition<?, ?> parent) {
23

24
    super(parent, SECURITY_JSON);
4✔
25
  }
1✔
26

27
  /**
28
   * @return the content of the CVE map of the security.json file
29
   */
30
  public ToolSecurity getSecurity() {
31

32
    if (this.security == null) {
3!
33
      return ToolSecurity.getEmpty();
×
34
    }
35
    return this.security;
3✔
36
  }
37

38
  @Override
39
  protected void doLoad() {
40
    this.security = ToolSecurity.of(getPath());
5✔
41
  }
1✔
42

43
  @Override
44
  protected void doSave() {
45

46
  }
×
47
}
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