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

apache / rocketmq-dashboard / 200

pending completion
200

Pull #130

travis-ci-com

web-flow
Merge e87e98135 into 86bdb0636
Pull Request #130: Bump snakeyaml from 1.30 to 1.32

2374 of 2869 relevant lines covered (82.75%)

1.65 hits per line

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

50.0
/src/main/java/org/apache/rocketmq/dashboard/support/JsonResult.java
1
/*
2
 * Licensed to the Apache Software Foundation (ASF) under one or more
3
 * contributor license agreements.  See the NOTICE file distributed with
4
 * this work for additional information regarding copyright ownership.
5
 * The ASF licenses this file to You under the Apache License, Version 2.0
6
 * (the "License"); you may not use this file except in compliance with
7
 * the License.  You may obtain a copy of the License at
8
 *
9
 *     http://www.apache.org/licenses/LICENSE-2.0
10
 *
11
 * Unless required by applicable law or agreed to in writing, software
12
 * distributed under the License is distributed on an "AS IS" BASIS,
13
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
 * See the License for the specific language governing permissions and
15
 * limitations under the License.
16
 */
17

18
package org.apache.rocketmq.dashboard.support;
19

20
public class JsonResult<T> {
21
    private int status = 0;
2✔
22
    private T data;
23
    private String errMsg;
24

25
    public JsonResult(T data) {
2✔
26
        this.data = data;
2✔
27
    }
2✔
28

29
    public JsonResult(int status, String errMsg) {
2✔
30
        this.status = status;
2✔
31
        this.errMsg = errMsg;
2✔
32
    }
2✔
33

34
    public JsonResult(int status, T data, String errMsg) {
×
35
        this.status = status;
×
36
        this.data = data;
×
37
        this.errMsg = errMsg;
×
38
    }
×
39

40
    public int getStatus() {
41
        return status;
2✔
42
    }
43

44
    public void setStatus(int status) {
45
        this.status = status;
×
46
    }
×
47

48
    public T getData() {
49
        return data;
2✔
50
    }
51

52
    public void setData(T data) {
53
        this.data = data;
×
54
    }
×
55

56
    public String getErrMsg() {
57
        return errMsg;
2✔
58
    }
59

60
    public void setErrMsg(String errMsg) {
61
        this.errMsg = errMsg;
×
62
    }
×
63
}
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

© 2025 Coveralls, Inc