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

alibaba / jetcache / #405

16 Apr 2024 05:58AM UTC coverage: 0.0% (-88.9%) from 88.866%
#405

push

areyouok
add encoding to fix coverage report

0 of 5353 relevant lines covered (0.0%)

0.0 hits per line

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

0.0
/jetcache-core/src/main/java/com/alicp/jetcache/support/Fastjson2ValueDecoder.java
1
package com.alicp.jetcache.support;
2

3
import com.alibaba.fastjson2.JSON;
4

5
import java.nio.charset.StandardCharsets;
6

7
/**
8
 * Created on 2022/07/26.
9
 *
10
 * @author huangli
11
 */
12
public class Fastjson2ValueDecoder extends AbstractJsonDecoder {
13

14
    public static final Fastjson2ValueDecoder INSTANCE = new Fastjson2ValueDecoder(true);
×
15

16
    public Fastjson2ValueDecoder(boolean useIdentityNumber) {
17
        super(useIdentityNumber);
×
18
    }
×
19

20
    @Override
21
    protected Object parseObject(byte[] buffer, int index, int len, Class clazz) {
22
        String s = new String(buffer, index, len, StandardCharsets.UTF_8);
×
23
        return JSON.parseObject(s, clazz);
×
24
    }
25
}
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