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

devonfw / IDEasy / 13858963404

14 Mar 2025 02:38PM UTC coverage: 67.657% (-1.0%) from 68.619%
13858963404

push

github

web-flow
#1024: Move urls into url-updater module (#1025)

Co-authored-by: Jörg Hohwiller <hohwille@users.noreply.github.com>

3036 of 4915 branches covered (61.77%)

Branch coverage included in aggregate %.

7825 of 11138 relevant lines covered (70.25%)

3.07 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/npm/NpmJsonVersions.java
1
package com.devonfw.tools.ide.npm;
2

3
import java.util.HashMap;
4
import java.util.Map;
5

6
import com.devonfw.tools.ide.json.JsonObject;
7
import com.fasterxml.jackson.annotation.JsonAnySetter;
8

9
/**
10
 * {@link JsonObject} for {@link NpmJsonVersion}.
11
 */
12
public class NpmJsonVersions {
×
13

14
  private Map<String, NpmJsonVersion> versions;
15

16
  @JsonAnySetter
17
  public void setDetails(String key, NpmJsonVersion val) {
18

19
    if (this.versions == null) {
×
20
      this.versions = new HashMap<>();
×
21
    }
22
    this.versions.put(key, val);
×
23
  }
×
24

25
  /**
26
   * @return the {@link Map} of {@link NpmJsonVersion}s.
27
   */
28
  public Map<String, NpmJsonVersion> getVersionMap() {
29

30
    return this.versions;
×
31
  }
32
}
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