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

alibaba / jetcache / #444

21 May 2026 07:54AM UTC coverage: 89.292% (+0.6%) from 88.701%
#444

push

areyouok
chore: remove Spring XML namespace support

4778 of 5351 relevant lines covered (89.29%)

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.Jackson3KeyConvertor;
10
import com.alicp.jetcache.support.JacksonKeyConvertor;
11

12
import java.util.function.Function;
13

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