• 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

6.06
/src/main/java/org/commonjava/indy/service/tracking/model/dto/ContentDTO.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.dto;
17

18
import org.commonjava.indy.service.tracking.model.TrackingKey;
19

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

27
public class ContentDTO
28
                implements Externalizable
29
{
30

31
    private TrackingKey key;
32

33
    private Set<ContentEntryDTO> uploads;
34

35
    private Set<ContentEntryDTO> downloads;
36

37
    public ContentDTO()
38
    {
2 ✔
39
    }
2 ✔
40

41
    public ContentDTO( final TrackingKey key, final Set<ContentEntryDTO> uploads, final Set<ContentEntryDTO> downloads )
42
    {
×
43
        this.key = key;
×
44
        this.uploads = uploads;
×
45
        this.downloads = downloads;
×
46
    }
×
47

48
    public TrackingKey getKey()
49
    {
50
        return key;
×
51
    }
52

53
    public void setKey( TrackingKey key )
54
    {
55
        this.key = key;
×
56
    }
×
57

58
    public Set<ContentEntryDTO> getUploads()
59
    {
60
        return uploads;
×
61
    }
62

63
    public void setUploads( Set<ContentEntryDTO> uploads )
64
    {
65
        this.uploads = uploads;
×
66
    }
×
67

68
    public Set<ContentEntryDTO> getDownloads( Set<ContentEntryDTO> downloads )
69
    {
70
        return downloads;
×
71
    }
72

73
    public void setDownloads( Set<ContentEntryDTO> downloads )
74
    {
75
        this.downloads = downloads;
×
76
    }
×
77

78
    @Override
79
    public boolean equals( Object o )
80
    {
81
        if ( this == o )
×
82
        {
83
            return true;
×
84
        }
85
        if ( !( o instanceof TrackedContentDTO ) )
×
86
        {
87
            return false;
×
88
        }
89

90
        TrackedContentDTO that = (TrackedContentDTO) o;
×
91

92
        return getKey() != null ? getKey().equals( that.getKey() ) : that.getKey() == null;
×
93

94
    }
95

96
    @Override
97
    public int hashCode()
98
    {
99
        return getKey() != null ? getKey().hashCode() : 0;
×
100
    }
101

102
    @Override
103
    public void writeExternal( ObjectOutput objectOutput ) throws IOException
104
    {
105
        objectOutput.writeObject( key );
×
106
        objectOutput.writeObject( uploads );
×
107
        objectOutput.writeObject( downloads );
×
108
    }
×
109

110
    @Override
111
    public void readExternal( ObjectInput objectInput ) throws IOException, ClassNotFoundException
112
    {
113
        key = (TrackingKey) objectInput.readObject();
×
114
        Set<ContentEntryDTO> ups = (Set<ContentEntryDTO>) objectInput.readObject();
×
115
        uploads = ups == null ? new HashSet<>() : new HashSet<>( ups );
×
116

117
        Set<ContentEntryDTO> downs = (Set<ContentEntryDTO>) objectInput.readObject();
×
118
        downloads = downs == null ? new HashSet<>() : new HashSet<>( downs );
×
119
    }
×
120
}
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