• 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

50.0
/src/main/java/org/commonjava/indy/service/tracking/util/jackson/StoreKeyDeserializer.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.util.jackson;
17

18
import com.fasterxml.jackson.core.JsonParser;
19
import com.fasterxml.jackson.databind.DeserializationContext;
20
import com.fasterxml.jackson.databind.JsonNode;
21
import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
22
import org.commonjava.indy.service.tracking.model.StoreKey;
23
import org.commonjava.indy.service.tracking.model.StoreType;
24

25
import java.io.IOException;
26

27
public final class StoreKeyDeserializer
28
                extends StdDeserializer<StoreKey>
29
{
30
    private static final long serialVersionUID = 1L;
31

32
    public StoreKeyDeserializer()
33
    {
34
        super( StoreKey.class );
2 ✔
35
    }
2 ✔
36

37
    @Override
38
    public StoreKey deserialize( final JsonParser parser, final DeserializationContext context ) throws IOException
39
    {
40
        final String keyStr = parser.getText();
2 ✔
41
        if ( keyStr != null && keyStr.trim().equals( "{" ) )
2 ✔
42
        {
43
            JsonNode node = parser.getCodec().readTree( parser );
×
44
            String pkgType = node.get( "packageType" ).textValue();
×
45
            String type = node.get( "type" ).textValue();
×
46
            String name = node.get( "name" ).textValue();
×
47
            return new StoreKey( pkgType, StoreType.get( type ), name );
×
48
        }
49
        return StoreKey.fromString( keyStr );
2 ✔
50
    }
51

52
}
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