• 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/Fastjson2KeyConvertor.java
1
/**
2
 * Created on  13-09-10 15:45
3
 */
4
package com.alicp.jetcache.support;
5

6
import com.alibaba.fastjson2.JSON;
7

8
import java.util.function.Function;
9

10
/**
11
 * @author huangli
12
 */
13
public class Fastjson2KeyConvertor implements Function<Object, Object> {
×
14

15
    public static final Fastjson2KeyConvertor INSTANCE = new Fastjson2KeyConvertor();
×
16

17
    @Override
18
    public Object apply(Object originalKey) {
19
        if (originalKey == null) {
×
20
            return null;
×
21
        }
22
        if (originalKey instanceof String) {
×
23
            return originalKey;
×
24
        }
25
        return JSON.toJSONString(originalKey);
×
26
    }
27

28
}
29

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