• 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

82.76
/src/main/java/org/commonjava/indy/service/tracking/model/TrackingKey.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

23
public class TrackingKey
24
                implements Externalizable
25
{
26

27
    private String id;
28

29
    public TrackingKey()
30
    {
2 ✔
31
    }
2 ✔
32

33
    public TrackingKey( final String id )
34
    {
2 ✔
35
        setId( id );
2 ✔
36
    }
2 ✔
37

38
    public String getId()
39
    {
40
        return id;
2 ✔
41
    }
42

43
    protected void setId( final String id )
44
    {
45
        if ( id == null )
2 ✔
46
        {
47
            throw new NullPointerException( "tracking id cannot be null." );
2 ✔
48
        }
49

50
        this.id = id;
2 ✔
51
    }
2 ✔
52

53
    @Override
54
    public int hashCode()
55
    {
56
        final int prime = 31;
2 ✔
57
        int result = 1;
2 ✔
58
        result = prime * result + ( ( id == null ) ? 0 : id.hashCode() );
2 ✔
59
        return result;
2 ✔
60
    }
61

62
    @Override
63
    public boolean equals( final Object obj )
64
    {
65
        if ( this == obj )
2 ✔
66
        {
67
            return true;
×
68
        }
69
        if ( obj == null )
2 ✔
70
        {
71
            return false;
×
72
        }
73
        if ( getClass() != obj.getClass() )
2 ✔
74
        {
75
            return false;
×
76
        }
77
        final TrackingKey other = (TrackingKey) obj;
2 ✔
78
        if ( id == null )
2 ✔
79
        {
80
            return other.id == null;
×
81
        }
82
        else
83
            return id.equals( other.id );
2 ✔
84
    }
85

86
    @Override
87
    public String toString()
88
    {
89
        return String.format( "TrackingKey [%s]", id );
×
90
    }
91

92
    @Override
93
    public void writeExternal( final ObjectOutput out ) throws IOException
94
    {
95
        out.writeObject( id );
2 ✔
96
    }
2 ✔
97

98
    @Override
99
    public void readExternal( final ObjectInput in ) throws IOException, ClassNotFoundException
100
    {
101
        id = (String) in.readObject();
2 ✔
102
    }
2 ✔
103
}
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