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

vidal-community / atom-jaxb / #297

12 Apr 2024 09:23PM UTC coverage: 76.208%. Remained the same
#297

push

github

jcgay
Bump org.jacoco:jacoco-maven-plugin from 0.8.8 to 0.8.12

Bumps [org.jacoco:jacoco-maven-plugin](https://github.com/jacoco/jacoco) from 0.8.8 to 0.8.12.
- [Release notes](https://github.com/jacoco/jacoco/releases)
- [Commits](https://github.com/jacoco/jacoco/compare/v0.8.8...v0.8.12)

---
updated-dependencies:
- dependency-name: org.jacoco:jacoco-maven-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

410 of 538 relevant lines covered (76.21%)

0.76 hits per line

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

73.91
/src/main/java/fr/vidal/oss/jaxb/atom/core/Summary.java
1
package fr.vidal.oss.jaxb.atom.core;
2

3
import jakarta.xml.bind.annotation.XmlAttribute;
4
import jakarta.xml.bind.annotation.XmlValue;
5
import java.util.Objects;
6

7
public class Summary {
8

9
    @XmlValue
10
    private final String value;
11
    @XmlAttribute(name = "type")
12
    private final String type;
13

14
    @SuppressWarnings("unused") //jaxb
15
    private Summary() {
16
        this(null, null);
1✔
17
    }
1✔
18

19
    private Summary(String value, String type) {
1✔
20
        this.value = value;
1✔
21
        this.type = type;
1✔
22
    }
1✔
23

24
    public static Builder builder() {
25
        return new Builder();
1✔
26
    }
27

28
    public String getValue() {
29
        return value;
×
30
    }
31

32
    public String getType() {
33
        return type;
×
34
    }
35

36
    @Override
37
    public int hashCode() {
38
        return Objects.hash(value, type);
×
39
    }
40

41
    @Override
42
    public boolean equals(Object obj) {
43
        if (this == obj) {
1✔
44
            return true;
×
45
        }
46
        if (obj == null || getClass() != obj.getClass()) {
1✔
47
            return false;
×
48
        }
49
        final Summary other = (Summary) obj;
1✔
50
        return Objects.equals(this.value, other.value)
1✔
51
            && Objects.equals(this.type, other.type);
1✔
52
    }
53

54
    @Override
55
    public String toString() {
56
        return "Summary{" +
×
57
            "value='" + value + '\'' +
58
            ", type='" + type + '\'' +
59
            '}';
60
    }
61

62
    public static class Builder {
63

64
        private String value;
65
        private String type;
66

67
        private Builder() {
68
        }
69

70
        public Builder withValue(String value) {
71
            this.value = value;
1✔
72
            return this;
1✔
73
        }
74

75
        public Builder withType(String type) {
76
            this.type = type;
1✔
77
            return this;
1✔
78
        }
79

80
        public Summary build() {
81
            return new Summary(value, type);
1✔
82
        }
83
    }
84
}
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

© 2025 Coveralls, Inc