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

jreleaser / jreleaser / #544

28 Oct 2025 03:56PM UTC coverage: 48.245% (-0.03%) from 48.273%
#544

push

github

web-flow
feat(announce): Add Reddit announcer support

Fixes #1457

188 of 414 new or added lines in 16 files covered. (45.41%)

6 existing lines in 2 files now uncovered.

26009 of 53910 relevant lines covered (48.25%)

0.48 hits per line

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

57.14
/sdks/jreleaser-reddit-java-sdk/src/main/java/org/jreleaser/sdk/reddit/api/SubmissionResponse.java
1
/*
2
 * SPDX-License-Identifier: Apache-2.0
3
 *
4
 * Copyright 2020-2025 The JReleaser authors.
5
 *
6
 * Licensed under the Apache License, Version 2.0 (the "License");
7
 * you may not use this file except in compliance with the License.
8
 * You may obtain a copy of the License at
9
 *
10
 *     https://www.apache.org/licenses/LICENSE-2.0
11
 *
12
 * Unless required by applicable law or agreed to in writing, software
13
 * distributed under the License is distributed on an "AS IS" BASIS,
14
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
 * See the License for the specific language governing permissions and
16
 * limitations under the License.
17
 */
18
package org.jreleaser.sdk.reddit.api;
19

20
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
21

22
import java.util.List;
23
import java.util.Map;
24

25
/**
26
 * @author Usman Shaikh
27
 * @since 1.21.0
28
 */
29
@JsonIgnoreProperties(ignoreUnknown = true)
30
public class SubmissionResponse {
1✔
31
    private JsonWrapper json;
32

33
    public JsonWrapper getJson() {
NEW
34
        return json;
×
35
    }
36

37
    public void setJson(JsonWrapper json) {
38
        this.json = json;
1✔
39
    }
1✔
40

41
    public boolean hasErrors() {
42
        return json != null && json.getErrors() != null && !json.getErrors().isEmpty();
1✔
43
    }
44

45
    public List<Object> getErrors() {
NEW
46
        return json != null ? json.getErrors() : null;
×
47
    }
48

49
    public Map<String, Object> getData() {
NEW
50
        return json != null ? json.getData() : null;
×
51
    }
52

53
    @JsonIgnoreProperties(ignoreUnknown = true)
54
    public static class JsonWrapper {
1✔
55
        private List<Object> errors;
56
        private Map<String, Object> data;
57

58
        public List<Object> getErrors() {
59
            return errors;
1✔
60
        }
61

62
        public void setErrors(List<Object> errors) {
63
            this.errors = errors;
1✔
64
        }
1✔
65

66
        public Map<String, Object> getData() {
NEW
67
            return data;
×
68
        }
69

70
        public void setData(Map<String, Object> data) {
NEW
71
            this.data = data;
×
NEW
72
        }
×
73
    }
74
}
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

© 2026 Coveralls, Inc