File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
main/java/com/aerospike/mapper/tools/mappers
test/java/com/aerospike/mapper Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ public class BooleanMapper extends TypeMapper {
10
10
11
11
public enum Encoding {
12
12
Numeric ,
13
- Object
13
+ Boolean
14
14
}
15
15
16
16
private final ClassConfig classConfig ;
@@ -27,7 +27,7 @@ public Object toAerospikeFormat(Object value) {
27
27
useObjectEncoding = ClassCache .getInstance ()
28
28
.getClassConfig (Boolean .class )
29
29
.getBoolEncoding ()
30
- .equals (Encoding .Object );
30
+ .equals (Encoding .Boolean );
31
31
} else {
32
32
useObjectEncoding = false ;
33
33
}
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ public void testObjectEncoding() throws JsonProcessingException {
61
61
" key:\n " +
62
62
" field: id\n " +
63
63
" - class: java.lang.Boolean\n " +
64
- " boolEncoding: Object \n " ;
64
+ " boolEncoding: Boolean \n " ;
65
65
66
66
AeroMapper mapper = new AeroMapper .Builder (client ).withConfiguration (config ).build ();
67
67
mapper .save (b );
You can’t perform that action at this time.
0 commit comments