Skip to content

Commit 48743f8

Browse files
committed
change option name from Object to Boolean
1 parent 193da6b commit 48743f8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/com/aerospike/mapper/tools/mappers/BooleanMapper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class BooleanMapper extends TypeMapper {
1010

1111
public enum Encoding {
1212
Numeric,
13-
Object
13+
Boolean
1414
}
1515

1616
private final ClassConfig classConfig;
@@ -27,7 +27,7 @@ public Object toAerospikeFormat(Object value) {
2727
useObjectEncoding = ClassCache.getInstance()
2828
.getClassConfig(Boolean.class)
2929
.getBoolEncoding()
30-
.equals(Encoding.Object);
30+
.equals(Encoding.Boolean);
3131
} else {
3232
useObjectEncoding = false;
3333
}

src/test/java/com/aerospike/mapper/BooleanTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public void testObjectEncoding() throws JsonProcessingException {
6161
" key:\n" +
6262
" field: id\n" +
6363
" - class: java.lang.Boolean\n" +
64-
" boolEncoding: Object\n";
64+
" boolEncoding: Boolean\n";
6565

6666
AeroMapper mapper = new AeroMapper.Builder(client).withConfiguration(config).build();
6767
mapper.save(b);

0 commit comments

Comments
 (0)