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

alibaba / jetcache / #433

18 May 2026 09:11AM UTC coverage: 88.696% (-0.03%) from 88.727%
#433

push

areyouok
feat: support jackson3, update jackson and fastjson2

7 of 12 new or added lines in 2 files covered. (58.33%)

4 existing lines in 2 files now uncovered.

4763 of 5370 relevant lines covered (88.7%)

0.89 hits per line

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

71.43
/jetcache-anno/src/main/java/com/alicp/jetcache/anno/support/DefaultKeyConvertorParser.java
1
/**
2
 * Created on 2019/6/7.
3
 */
4
package com.alicp.jetcache.anno.support;
5

6
import com.alicp.jetcache.CacheConfigException;
7
import com.alicp.jetcache.anno.KeyConvertor;
8
import com.alicp.jetcache.support.Fastjson2KeyConvertor;
9
import com.alicp.jetcache.support.FastjsonKeyConvertor;
10
import com.alicp.jetcache.support.Jackson3KeyConvertor;
11
import com.alicp.jetcache.support.JacksonKeyConvertor;
12

13
import java.util.function.Function;
14

15
/**
16
 * @author huangli
17
 */
18
public class DefaultKeyConvertorParser implements KeyConvertorParser {
1✔
19
    @Override
20
    public Function<Object, Object> parseKeyConvertor(String convertor) {
21
        if (convertor == null) {
1✔
22
            return null;
×
23
        }
24
        if (KeyConvertor.FASTJSON.equalsIgnoreCase(convertor)) {
1✔
25
            return FastjsonKeyConvertor.INSTANCE;
1✔
26
        } else if (KeyConvertor.FASTJSON2.equalsIgnoreCase(convertor)) {
1✔
27
            return Fastjson2KeyConvertor.INSTANCE;
1✔
28
        } else if (KeyConvertor.JACKSON.equalsIgnoreCase(convertor)) {
1✔
29
            return JacksonKeyConvertor.INSTANCE;
×
30
        }else if (KeyConvertor.JACKSON3.equalsIgnoreCase(convertor)) {
1✔
NEW
31
            return Jackson3KeyConvertor.INSTANCE;
×
32
        } else if (KeyConvertor.NONE.equalsIgnoreCase(convertor)) {
1✔
33
            return KeyConvertor.NONE_INSTANCE;
1✔
34
        }
35
        throw new CacheConfigException("not supported:" + convertor);
×
36
    }
37
}
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