Skip to content

Commit

Permalink
don't require data containers to be abstract
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddenton committed Jan 5, 2024
1 parent 8b9f87c commit 462f38f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import java.math.BigDecimal
/**
* Jackson JsonNode-based implementation of the DataContainer
*/
abstract class JsonNodeDataContainer(input: JsonNode) :
open class JsonNodeDataContainer(input: JsonNode) :
DataContainer<JsonNode>(
input,
{ content, it -> content.has(it) },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package dev.forkhandles.data
/**
* Map-based implementation of the DataContainer
*/
abstract class MapDataContainer(input: Map<String, Any?>) :
open class MapDataContainer(input: Map<String, Any?>) :
DataContainer<MutableMap<String, Any?>>(input.toMutableMap(), { content, it -> content.containsKey(it) },
{ content, it -> content[it] },
{ map, name, value -> map[name] = value }
Expand Down

0 comments on commit 462f38f

Please sign in to comment.