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

Commonjava / indy-tracking-service / 44786446415

20 Nov 2026 05:46PM UTC coverage: 37.562% (-29.5%) from 67.036%
44786446415

push

github

rnc
Bump org.commonjava.atlas:atlas-relationships-api from 1.2.2 to 1.2.3

Bumps [org.commonjava.atlas:atlas-relationships-api](https://github.com/Commonjava/atlas) from 1.2.2 to 1.2.3.
- [Release notes](https://github.com/Commonjava/atlas/releases)
- [Commits](https://github.com/Commonjava/atlas/compare/atlas-parent-1.2.2...atlas-parent-1.2.3)

---
updated-dependencies:
- dependency-name: org.commonjava.atlas:atlas-relationships-api
  dependency-version: 1.2.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

678 of 1805 relevant lines covered (37.56%)

0.75 hits per line

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

66.67
/src/main/java/org/commonjava/indy/service/tracking/model/TrackedContent.java
1
/**
2
 * Copyright (C) 2022-2023 Red Hat, Inc. (https://github.com/Commonjava/indy-tracking-service)
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 *         http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16
package org.commonjava.indy.service.tracking.model;
17

18
import java.io.Externalizable;
19
import java.io.IOException;
20
import java.io.ObjectInput;
21
import java.io.ObjectOutput;
22
import java.util.HashSet;
23
import java.util.Set;
24

25
public class TrackedContent
26
                implements Externalizable
27
{
28

29
    private TrackingKey key;
30

31
    private Set<TrackedContentEntry> uploads;
32

33
    private Set<TrackedContentEntry> downloads;
34

35
    public TrackedContent()
36
    {
2 ✔
37
    }
2 ✔
38

39
    public TrackedContent( final TrackingKey key, final Set<TrackedContentEntry> uploads,
40
                           final Set<TrackedContentEntry> downloads )
41
    {
2 ✔
42
        this.key = key;
2 ✔
43
        this.uploads = uploads;
2 ✔
44
        this.downloads = downloads;
2 ✔
45
    }
2 ✔
46

47
    public TrackingKey getKey()
48
    {
49
        return key;
2 ✔
50
    }
51

52
    public Set<TrackedContentEntry> getUploads()
53
    {
54
        return uploads;
×
55
    }
56

57
    public Set<TrackedContentEntry> getDownloads()
58
    {
59
        return downloads;
×
60
    }
61

62
    @Override
63
    public boolean equals( Object o )
64
    {
65
        if ( this == o )
2 ✔
66
        {
67
            return true;
2 ✔
68
        }
69
        if ( !( o instanceof TrackedContent ) )
2 ✔
70
        {
71
            return false;
2 ✔
72
        }
73

74
        TrackedContent that = (TrackedContent) o;
2 ✔
75

76
        return getKey() != null ? getKey().equals( that.getKey() ) : that.getKey() == null;
2 ✔
77

78
    }
79

80
    @Override
81
    public int hashCode()
82
    {
83
        return getKey() != null ? getKey().hashCode() : 0;
×
84
    }
85

86
    @Override
87
    public void writeExternal( ObjectOutput objectOutput ) throws IOException
88
    {
89
        objectOutput.writeObject( key );
2 ✔
90
        objectOutput.writeObject( uploads );
2 ✔
91
        objectOutput.writeObject( downloads );
2 ✔
92
    }
2 ✔
93

94
    @Override
95
    public void readExternal( ObjectInput objectInput ) throws IOException, ClassNotFoundException
96
    {
97
        key = (TrackingKey) objectInput.readObject();
×
98
        Set<TrackedContentEntry> ups = (Set<TrackedContentEntry>) objectInput.readObject();
×
99
        uploads = ups == null ? new HashSet<>() : new HashSet<>( ups );
×
100

101
        Set<TrackedContentEntry> downs = (Set<TrackedContentEntry>) objectInput.readObject();
×
102
        downloads = downs == null ? new HashSet<>() : new HashSet<>( downs );
×
103
    }
×
104
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc