Skip to content

Commit 32034c0

Browse files
committed
refactoring: renamed ArangoJsonNode
1 parent db43ef5 commit 32034c0

File tree

6 files changed

+156
-156
lines changed

6 files changed

+156
-156
lines changed

src/main/java/com/arangodb/springframework/config/ArangoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public <T> T deserialize(byte[] content, Class<T> clazz) {
9393
@Override
9494
public <T> T deserialize(byte[] content, Class<T> clazz, RequestContext ctx) {
9595
try {
96-
return converter.read(clazz, new TxJsonNode(om.readTree(content), new TransactionMappingContext(ctx)));
96+
return converter.read(clazz, new ArangoJsonNode(om.readTree(content), new TransactionMappingContext(ctx)));
9797
} catch (Exception e) {
9898
throw new MappingException("Exception while deserializing.", e);
9999
}

src/main/java/com/arangodb/springframework/core/convert/ArangoEntityReader.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
* @author Mark Vollmary
2929
* @author Christian Lechner
3030
*/
31-
public interface ArangoEntityReader extends EntityReader<Object, TxJsonNode> {
31+
public interface ArangoEntityReader extends EntityReader<Object, ArangoJsonNode> {
3232

3333
default <R> R read(Class<R> type, JsonNode source) {
34-
return read(type, new TxJsonNode(source, TransactionMappingContext.EMPTY));
34+
return read(type, new ArangoJsonNode(source, TransactionMappingContext.EMPTY));
3535
}
3636

3737
}

src/main/java/com/arangodb/springframework/core/convert/TxJsonNode.java renamed to src/main/java/com/arangodb/springframework/core/convert/ArangoJsonNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/**
77
* JsonNode with TransactionMappingContext
88
*/
9-
public record TxJsonNode(
9+
public record ArangoJsonNode(
1010
JsonNode value,
1111
TransactionMappingContext transactionContext
1212
) {

0 commit comments

Comments
 (0)