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

devonfw / IDEasy / 11660539114

04 Nov 2024 08:27AM UTC coverage: 66.948% (+0.03%) from 66.917%
11660539114

push

github

web-flow
#727: allow fallback to edition independent dependencies.json (#728)

2421 of 3958 branches covered (61.17%)

Branch coverage included in aggregate %.

6311 of 9085 relevant lines covered (69.47%)

3.06 hits per line

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

20.0
cli/src/main/java/com/devonfw/tools/ide/url/model/folder/UrlEdition.java
1
package com.devonfw.tools.ide.url.model.folder;
2

3
import com.devonfw.tools.ide.url.model.file.UrlSecurityFile;
4

5
/**
6
 * An {@link UrlFolder} representing the actual edition of a {@link UrlTool}. The default edition may have the same {@link #getName() name} as the
7
 * {@link UrlTool} itself. However, tools like "intellij" may have editions like "community" or "ultimate".
8
 */
9
public class UrlEdition extends AbstractUrlToolOrEdition<UrlTool, UrlVersion> {
10

11
  private UrlSecurityFile securityFile;
12

13
  /**
14
   * The constructor.
15
   *
16
   * @param parent the {@link #getParent() parent folder}.
17
   * @param name the {@link #getName() filename}.
18
   */
19
  public UrlEdition(UrlTool parent, String name) {
20

21
    super(parent, name);
4✔
22
  }
1✔
23

24
  /**
25
   * This method is used to add new children to the children collection of an instance from this class.
26
   *
27
   * @param name The name of the {@link UrlVersion} object that should be created.
28
   */
29
  @Override
30
  protected UrlVersion newChild(String name) {
31

32
    return new UrlVersion(this, name);
6✔
33
  }
34

35
  /**
36
   * @return the {@link UrlSecurityFile} of this {@link UrlEdition}. Will be lazily initialized on the first call of this method. If the file exists, it will be
37
   *     loaded, otherwise it will be empty and only created on save if data was added.
38
   */
39
  public UrlSecurityFile getSecurityFile() {
40

41
    if (this.securityFile == null) {
×
42
      this.securityFile = new UrlSecurityFile(this);
×
43
      this.securityFile.load(false);
×
44
    }
45
    return this.securityFile;
×
46
  }
47

48
  @Override
49
  public void save() {
50

51
    super.save();
×
52
    if (this.securityFile != null) {
×
53
      this.securityFile.save();
×
54
    }
55
  }
×
56

57
}
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