Skip to content

Commit

Permalink
code format
Browse files Browse the repository at this point in the history
  • Loading branch information
agrgr committed May 26, 2024
1 parent 681a02d commit 0c57e1e
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,10 @@ private void convertToAerospikeWriteData(Object source, AerospikeWriteData data)
private Map<String, Object> convertProperties(TypeInformation<?> type, AerospikePersistentEntity<?> entity,
ConvertingPropertyAccessor<?> accessor, boolean isCustomType) {
Map<String, Object> target;
if (!settings.isWriteTreeMaps()) {
target = new HashMap<>();
} else {
if (settings.isWriteTreeMaps()) {
target = new TreeMap<>();
} else {
target = new HashMap<>();
}
typeMapper.writeType(type, target);
entity.doWithProperties((PropertyHandler<AerospikePersistentProperty>) property -> {
Expand Down Expand Up @@ -242,10 +242,10 @@ protected Map<Object, Object> convertMap(final Map<Object, Object> source, final
Assert.notNull(type, "Given type must not be null!");

Supplier<Map<Object, Object>> mapSupplier;
if (!settings.isWriteTreeMaps()) {
mapSupplier = HashMap::new;
} else {
if (settings.isWriteTreeMaps()) {
mapSupplier = TreeMap::new;
} else {
mapSupplier = HashMap::new;
}
Map<Object, Object> map = mapSupplier.get();
for (Map.Entry<Object, Object> e : source.entrySet()) {
Expand Down

0 comments on commit 0c57e1e

Please sign in to comment.