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

kit-data-manager / pit-service / #466

27 Jan 2025 03:11PM UTC coverage: 72.4% (-0.08%) from 72.482%
#466

push

github

Pfeil
[Gradle Release Plugin] - new version commit:  'v2.2.1'.

884 of 1221 relevant lines covered (72.4%)

0.72 hits per line

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

70.0
/src/main/java/edu/kit/datamanager/pit/domain/SimplePair.java
1
package edu.kit.datamanager.pit.domain;
2

3
public class SimplePair {
4
    private String key;
5

6
    private String value;
7

8
    /**
9
     * Required for (de-)serialization.
10
     */
11
    SimplePair() {}
1✔
12

13
    SimplePair(String key, String value) {
1✔
14
        this.key = key;
1✔
15
        this.value = value;
1✔
16
    }
1✔
17

18
    public String getKey() {
19
        return key;
1✔
20
    }
21

22
    public String getValue() {
23
        return value;
1✔
24
    }
25

26
    @Override
27
    public int hashCode() {
28
        final int prime = 31;
1✔
29
        int result = 1;
1✔
30
        result = prime * result + ((key == null) ? 0 : key.hashCode());
1✔
31
        result = prime * result + ((value == null) ? 0 : value.hashCode());
1✔
32
        return result;
1✔
33
    }
34

35
    @Override
36
    public boolean equals(Object obj) {
37
        if (this == obj)
1✔
38
            return true;
×
39
        if (obj == null)
1✔
40
            return false;
×
41
        if (getClass() != obj.getClass())
1✔
42
            return false;
×
43
        SimplePair other = (SimplePair) obj;
1✔
44
        if (key == null) {
1✔
45
            if (other.key != null)
×
46
                return false;
×
47
        } else if (!key.equals(other.key))
1✔
48
            return false;
×
49
        if (value == null) {
1✔
50
            if (other.value != null)
×
51
                return false;
×
52
        } else if (!value.equals(other.value))
1✔
53
            return false;
×
54
        return true;
1✔
55
    }
56
}
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