mdsal.git
12 months agoConvert mdsal-dom-schema-osgi to a JPMS module 13/105813/4
Samuel Schneider [Wed, 3 May 2023 15:51:06 +0000 (17:51 +0200)]
Convert mdsal-dom-schema-osgi to a JPMS module

mdsal-binding-dom-codec-osgi is a rather simple artifact.
Convert it to a JPMS module.

JIRA: MDSAL-748
Change-Id: I00e2e11047f4580ef7d443c4baefc036a1d0a58e
Signed-off-by: Samuel Schneider <samuel.schneider@pantheon.tech>
12 months agoClean up IETF module names 38/105938/3
Robert Varga [Sat, 13 May 2023 21:20:22 +0000 (23:20 +0200)]
Clean up IETF module names

The primary key is the IETF module name, make sure that is reflected in
packaging. The basic idea here is that differing revisions and up
reflecting diffent package names.

This patch allows for differing revisions to exist based on standard
names and the revision -- whereas previously we used the document as a
starting point for the namespace.

JIRA: MDSAL-752
Change-Id: I3ea3f910d2c07dad8396c54fa03044ac6a4ad62b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
12 months agoUpgrade IANA models 37/105937/1
Robert Varga [Sat, 13 May 2023 20:53:28 +0000 (22:53 +0200)]
Upgrade IANA models

Adopt:
- iana-if-type@2023-01-26.yang
- iana-routing-types@2022-08-19.yang

Change-Id: I9ce147047714d8f8ee38fd6119fa47d5954acafc
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
12 months agoAdd Automatic-Module-Name declarations 61/105661/8
Samuel Schneider [Tue, 25 Apr 2023 14:48:47 +0000 (16:48 +0200)]
Add Automatic-Module-Name declarations

Update all packaged models to include Automatic-Module-Name
with correct JPMS module naming.

JIRA: MDSAL-752
Change-Id: I7a8ee5081d97aed0a72570698c4ec729ab57a717
Signed-off-by: Samuel Schneider <samuel.schneider@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
12 months agoRemove convenience model artifacts 23/105723/5
Samuel Schneider [Thu, 27 Apr 2023 10:45:28 +0000 (12:45 +0200)]
Remove convenience model artifacts

Remove empty artifacts as they do not contribute anything to the actual
picture and act only as maven dependency shortcut.

JIRA: MDSAL-823
Change-Id: I01c83ae3e624582048a47d013082d62e983a2590
Signed-off-by: Samuel Schneider <samuel.schneider@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
12 months agoFix runtime type search 73/105773/2
Robert Varga [Tue, 2 May 2023 11:19:54 +0000 (13:19 +0200)]
Fix runtime type search

When searching for children, we should be cognizant of the fact that we
might be looking at an inherited contract -- such as 'output' of an
'action' inherited through 'uses'. Extend the runtime search algorithm
to also look at previous() axis.

JIRA: MDSAL-824
Change-Id: Ic2f57b266825c6121f7bd6156a86112abff4b67a
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
13 months agoAdd tests for BindingObjects with List and LeafLists 57/105657/2
Peter Suna [Tue, 25 Apr 2023 14:03:31 +0000 (16:03 +0200)]
Add tests for BindingObjects with List and LeafLists

These tests cover scenarios for ordered and unordered lists and leaf-lists,
including nested lists within containers.The tests also verify the correct
behavior of user, system-ordered and un-keyed lists.

Signed-off-by: Peter Suna <peter.suna@pantheon.tech>
Change-Id: Id9e85133fe767a22953970e96f9eb6b26a1bd068

13 months agoDo not depend on binding-spec-util 48/105648/1
Robert Varga [Mon, 24 Apr 2023 17:59:34 +0000 (19:59 +0200)]
Do not depend on binding-spec-util

With BindingNaming rehosted, mdsal-binding-java-api-generator has no
business with mdsal-binding-spec-util.

Change-Id: I009ca8eb4d8914480fc32e673c4d1044711b3042
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
13 months agoUse an instanceof pattern 64/105564/2
Robert Varga [Thu, 20 Apr 2023 23:51:16 +0000 (01:51 +0200)]
Use an instanceof pattern

We have a simple check-and-cast, fold them into a instanceof pattern.

Change-Id: I60bb94091b739ced1f886f9c0c29d9b8f86ce49c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
13 months agoCachingNormalizedNodeSerializer should not be instantiated 62/105562/1
Robert Varga [Thu, 20 Apr 2023 23:35:12 +0000 (01:35 +0200)]
CachingNormalizedNodeSerializer should not be instantiated

We only use this class to act as a delegate towards the rest of the
infrastructure. Remove its constructor.

Change-Id: I245fe5204dc3872703c19df320a77789d5a4c6bb
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
13 months agoExpand BindingObject documentation 61/105561/2
Robert Varga [Thu, 20 Apr 2023 23:29:57 +0000 (01:29 +0200)]
Expand BindingObject documentation

Enumerate the constructs we are representing.

Change-Id: Ifca6959868dd67080ca46f598cdc8d430c677138
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
13 months agoImprove BindingContract documentation 60/105560/2
Robert Varga [Thu, 20 Apr 2023 22:43:03 +0000 (00:43 +0200)]
Improve BindingContract documentation

Enumerate the use allowed interfaces and explain how they relate to
BindingContract. This interface is sufficiently disconnect from
BindingObject, which has other implications.

Change-Id: I0f93781dbabb540596fc5ac37dfd1bdb509732e6
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
13 months agoImprove ChoiceIn documentation 59/105559/2
Robert Varga [Thu, 20 Apr 2023 22:19:59 +0000 (00:19 +0200)]
Improve ChoiceIn documentation

We have a few typos and the javadoc contains HTML entities. Clean this
up.

Change-Id: Ia09a63d2f55e41c748eceadc3a4d471325ee714e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
13 months agoClean up BindingToNormalizedStreamWriter 58/105558/4
Robert Varga [Thu, 20 Apr 2023 21:21:54 +0000 (23:21 +0200)]
Clean up BindingToNormalizedStreamWriter

Clarify field name: the rootNodeSchema is really a
DataContainerCodecContext the context corresponding to the root object,
hence it should be called rootSchema.

We have multiple calls to current(), which end talking to the Deque,
which is not necessary. We can just access it once, which makes type
checking more obvious.

Finally ditch checkArgument() calls and prefer instanceof patterns,
which makes the type checks more obvious (to the compiler at least).

Change-Id: I472f0f3eec1f83c1755c91c6cbd0b24b77ae9d9a
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
13 months agoRemove BindingToNormalizedStreamWriter.create() 57/105557/2
Robert Varga [Thu, 20 Apr 2023 20:30:12 +0000 (22:30 +0200)]
Remove BindingToNormalizedStreamWriter.create()

We have a lot of indirection going on for little real benefit. Reduce
the tangle by replacing calls to create() with plain constructor and
inlining callers.

Change-Id: Ibaac2f17d1c275e42ad281767ba8a50c6318c649
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
13 months agoClean up CachingNormalizedNodeSerializer 56/105556/2
Robert Varga [Thu, 20 Apr 2023 20:52:54 +0000 (22:52 +0200)]
Clean up CachingNormalizedNodeSerializer

Simplify the class by eliminating unneeded methods and lining
invariants. This makes things a tad clearer and eliminates a caller of
DataContainerCodecContext.createWriter().

Change-Id: Ie1ed39ac20477ff21ce51707c1631db1ec7acf65
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
13 months agoUse instanceof pattern in AbstractBindingNormalizedNodeCacheHolder 54/105554/2
Robert Varga [Thu, 20 Apr 2023 18:34:03 +0000 (20:34 +0200)]
Use instanceof pattern in AbstractBindingNormalizedNodeCacheHolder

Reduce casting and flatten unneeded if/else blocks with returns. Also
mark a FIXME to use a switch expression once we them with pattern
matching.

Change-Id: I45045e3b6e5957486f60887c0c4d074b8924077f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
13 months agoLoad YangFeatureProviders in mdsal-dom-schema-osgi 89/102089/16
Robert Varga [Tue, 16 Aug 2022 11:04:35 +0000 (13:04 +0200)]
Load YangFeatureProviders in mdsal-dom-schema-osgi

YangModuleProvider provides a view into explicitly defined per-module
feature set. These are defined by applications implementing YANG
modules which provide if-feature'd contents and the application does
not support the full feature set.

This patch add the basic smarts to perform loading of providers, and
propagates them to ModuleInfoSnapshotResolver.

JIRA: MDSAL-790
Change-Id: Ib08915be7b5aba785a8a09ec28dd6e008b61db67
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
13 months agoPropagate supported features from ModuleInfoSnapshotResolver 44/105544/4
Robert Varga [Thu, 20 Apr 2023 11:57:05 +0000 (13:57 +0200)]
Propagate supported features from ModuleInfoSnapshotResolver

ModuleInfoSnapshotResolver should follow the same pattern as Builder to
allow users to add supported features -- except it talks to a different
backing entity.

JIRA: MDSAL-789
Change-Id: I901e188e33e2508e5c20d135fe57399bc3c81f68
Signed-off-by: matus.matok <matus.matok@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
13 months agoHide extractYangModuleInfo() 45/105545/2
Robert Varga [Thu, 20 Apr 2023 12:46:11 +0000 (14:46 +0200)]
Hide extractYangModuleInfo()

This method is only used internally, hide it from the rest of the
package.

Change-Id: I77c47e5cff17d0602740823f68c53ff4a813d385
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
13 months agoPropagate supported features from ModuleInfoSnapshotBuilder 77/105277/12
matus.matok [Thu, 6 Apr 2023 12:27:49 +0000 (14:27 +0200)]
Propagate supported features from ModuleInfoSnapshotBuilder

Allow a FeatureSet to be created from a collected
Module/Set<YangFeature> mapping, allowing each reported module to be
registered in ModuleInfoSnapshotBuilder. These are then transformed
into a FeatureSet and passed down to parser.

JIRA: MDSAL-789
Change-Id: I7837fb1debf2ebff3382422b232f047ec05316c1
Signed-off-by: matus.matok <matus.matok@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
13 months agoBump upstreams 43/105543/1
Robert Varga [Thu, 20 Apr 2023 11:25:05 +0000 (13:25 +0200)]
Bump upstreams

Adopt:
- odlparent-12.0.5
- yangtools-10.0.6

Change-Id: I1e5cda11366b81e37628a518bd5432f244b3f26c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 5f0db3b0d12ac15058d09fd4ad914265256b7e19)

13 months agoCleanup AbstractBindingAdapter 00/105400/2
Robert Varga [Tue, 11 Apr 2023 23:01:26 +0000 (01:01 +0200)]
Cleanup AbstractBindingAdapter

@NonNullByDefault does not quite work here, revert back to explicit
@NonNull annotations.

Change-Id: I4f2779f611316701be8bb41199d9a36f03d0b1d9
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
13 months agoCorrect BindingTypes.yangFeature() javadoc 02/105402/1
Robert Varga [Tue, 11 Apr 2023 23:39:42 +0000 (01:39 +0200)]
Correct BindingTypes.yangFeature() javadoc

We are referencing 'notification', betraying our copy&paste source. Fix
that up.

Change-Id: I683d0964fe654ff4b1e9b327594f548fdef300d7
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
13 months agoBump byte-buddy to 1.14.4 93/105393/2
Robert Varga [Tue, 11 Apr 2023 21:24:54 +0000 (23:24 +0200)]
Bump byte-buddy to 1.14.4

https://github.com/raphw/byte-buddy/releases/tag/byte-buddy-1.14.4

Change-Id: I7bc3933c10dc7e947851df72ee28a3f029381582
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
13 months agoFix DOMDataTreeCommitCohort 04/105204/4
Robert Varga [Tue, 4 Apr 2023 07:10:15 +0000 (09:10 +0200)]
Fix DOMDataTreeCommitCohort

The cohort should be exposing EffectiveModelContext in order to provide
correct interactions with other utilities.

JIRA: MDSAL-822
Change-Id: I2b0a3ada8cb677cdbcf9c2fad0ca50d502f6d2e4
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
13 months agoBump byte-buddy to 1.14.3 89/105389/2
Robert Varga [Tue, 11 Apr 2023 18:35:15 +0000 (20:35 +0200)]
Bump byte-buddy to 1.14.3

https://github.com/raphw/byte-buddy/releases/tag/byte-buddy-1.14.3

Change-Id: I3cba45532c0380affd70fa2d1ec1bbb6c30ae0ed
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
13 months agoBump upstreams 83/105383/2
Robert Varga [Tue, 11 Apr 2023 16:05:19 +0000 (18:05 +0200)]
Bump upstreams

Adopt:
- odlparent-12.0.4
- yangtools-10.0.5

Change-Id: If70cc51bda56c6129d359f6b548554ea41e6f696
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
13 months agoTag serialVersionUID with @Serial 78/105378/1
Robert Varga [Tue, 11 Apr 2023 16:16:07 +0000 (18:16 +0200)]
Tag serialVersionUID with @Serial

Java 14+ allows tagging serialization-related constructs. While we do
not do anything fancy, make sure we tak serialVersionUID.

JIRA: MDSAL-821
Change-Id: I1b660df8fb5e7599d9d8b6658d8955251cc49870
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
13 months agoMigrate Optional.get() callers 69/105369/6
Robert Varga [Tue, 11 Apr 2023 11:37:46 +0000 (13:37 +0200)]
Migrate Optional.get() callers

Use Optional.orElseThrow() instanced.

Change-Id: I6ffee0b3e92ddca92a659d0f67d0fda128c02258
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
13 months agoRemove explicit DataTreeChangeService 14/105214/1
Robert Varga [Tue, 4 Apr 2023 09:34:23 +0000 (11:34 +0200)]
Remove explicit DataTreeChangeService

DataBroker always implements DataTreeChangeService, hence we do not need
to spell that out.

Change-Id: If8f3889358cd7d92c59d719b37de040abcb40831
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
13 months agoUse ArgumentMatchers.anyCollection() 05/105205/1
Robert Varga [Tue, 4 Apr 2023 07:14:16 +0000 (09:14 +0200)]
Use ArgumentMatchers.anyCollection()

Remove type safety warnings by using a dedicated method for matching any
collection.

Change-Id: I4607cb370115ec375757cb15277c43890bf06b70
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
14 months agoRename InstanceIdentifierBuilder 90/104990/2
Robert Varga [Fri, 24 Mar 2023 10:02:30 +0000 (11:02 +0100)]
Rename InstanceIdentifierBuilder

Turn the intermediate interface into a sealed abstract class, which
lowers verbosity significantly. We now have three builder classes, only
two of which are exposed.

JIRA: MDSAL-798
Change-Id: I45e23643e196d9d06112053d60b2e2fbf1544311
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
14 months agoIntroduce InstanceIdentifier.KeyedBuilder 42/104142/23
matus.matok [Thu, 23 Feb 2023 12:34:42 +0000 (13:34 +0100)]
Introduce InstanceIdentifier.KeyedBuilder

When we are dealing with the last idem being an identifiable, we should
expose that by producing KeyedInstanceIdentifier.

Introduced KeyedBuilder and switch to this interface whenever the last
item is an IdentifiableItem -- guaranteeing KeyedInstanceIdentifier
return from build() method.

JIRA: MDSAL-798
Change-Id: I404df6aa1f3c79f259ea705adedd58a9d466cb78
Signed-off-by: matus.matok <matus.matok@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
14 months agoClean up InstanceIdentifierTest 85/104985/1
Robert Varga [Wed, 22 Mar 2023 13:32:47 +0000 (14:32 +0100)]
Clean up InstanceIdentifierTest

Add missing spaces and remove unneeded trailing comments.

Change-Id: I44c0db8aa27b145148fc86c3fb43b0d78769ce51
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
14 months agoImprove InstanceIdentifierBuilderImpl.equals() 83/104983/1
Robert Varga [Wed, 22 Mar 2023 10:31:57 +0000 (11:31 +0100)]
Improve InstanceIdentifierBuilderImpl.equals()

Use an instanceof pattern and perform direct comparison on hashcodes.

Change-Id: I345e68b9c29fe32ee68d12808f02446c4636388e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
14 months agoImprove InstanceIdentifierBuilderImpl safety 82/104982/1
Robert Varga [Wed, 22 Mar 2023 09:41:05 +0000 (10:41 +0100)]
Improve InstanceIdentifierBuilderImpl safety

Add a constructor which explicitly takes (Identifiable)Item, removing the
need to use type arguments and hiding the intermediate empty constructor
as well as the methods to add items.

Change-Id: Ib45485b0ab3b10ab0666b4ad6797dc710cd00130
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
14 months agoSimplify AbstractPathArgument.equals() 81/104981/1
Robert Varga [Wed, 22 Mar 2023 09:31:38 +0000 (10:31 +0100)]
Simplify AbstractPathArgument.equals()

Use instanceof pattern to simplify the equals method.

Change-Id: I31eb8b095a701a43ece60008bc1b797a9ef6ebac
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
14 months agoRemove internal callers of isWildcarded() 80/104980/1
Robert Varga [Wed, 22 Mar 2023 09:22:12 +0000 (10:22 +0100)]
Remove internal callers of isWildcarded()

We have two internal callers who can just refer to the field, fix them
up.

Change-Id: Ia634c2f65b809dd719746bd85061feee14f44ec9
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
14 months agoCorrect InstanceIdentifier.trustedCreate() 76/104976/1
Robert Varga [Tue, 21 Mar 2023 15:24:31 +0000 (16:24 +0100)]
Correct InstanceIdentifier.trustedCreate()

The check for wildcard is not correct: we should just consider the last
item when deciding to create a KeyedInstanceIdentifier. Add an explicit
test and fix the checks.

JIRA: MDSAL-818
Change-Id: Ic6fedca7e182eaf0d983e3e39b49dd75d01f8ae8
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
14 months agoRehost BindingMapping in yang.binding.contract.Naming 84/104484/6
Šimon Ukuš [Wed, 22 Feb 2023 12:06:39 +0000 (13:06 +0100)]
Rehost BindingMapping in yang.binding.contract.Naming

Preparation stage for further changes requested by MDSAL-804,
where all the constants and utility methods are moved to
yang.binding.contract.Naming.
Includes moving from BindingMappingTest to NamingTest.

JIRA: MDSAL-804
Change-Id: I8c34f4c4eef40f9c040a0eaeadd49fdfed6dca13
Signed-off-by: Šimon Ukuš <simon.ukus@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
14 months agoBump byte-buddy to 1.14.2 40/104840/1
Robert Varga [Mon, 13 Mar 2023 12:39:14 +0000 (13:39 +0100)]
Bump byte-buddy to 1.14.2

https://github.com/raphw/byte-buddy/releases/tag/byte-buddy-1.14.1
https://github.com/raphw/byte-buddy/releases/tag/byte-buddy-1.14.2

Change-Id: I1763b4314eead1f822d9cfee948d703aea9f9d51
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
14 months agoBump xtend to 2.30.0 71/104671/1
Robert Varga [Wed, 1 Mar 2023 23:10:30 +0000 (00:10 +0100)]
Bump xtend to 2.30.0

https://www.eclipse.org/xtend/releasenotes.html#/releasenotes/2023/02/27/version-2-30-0

Change-Id: If861cb4f3148a2d7d40ec8bc47ea3f8f8cc21feb
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
14 months agoImprove DOMMountPointServiceImpl error message 65/104665/1
Robert Varga [Wed, 1 Mar 2023 14:35:52 +0000 (15:35 +0100)]
Improve DOMMountPointServiceImpl error message

The checkState() we perform is rather ugly, as it does not provide
enough diagnostic information. We already have a nicer checkState()
in the register() path. Extract it to a common method and reuse it from
both places.

Also improve safety by checking for null path before anything and also
take the lock to ensure serialization with others.

JIRA: NETCONF-621
Change-Id: I55845f9bbd7b3f4dbfa06a91724abcb601dc4f7f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
14 months agoBump versions to 12.0.0-SNAPSHOT 18/104618/1
Robert Varga [Tue, 28 Feb 2023 10:22:33 +0000 (11:22 +0100)]
Bump versions to 12.0.0-SNAPSHOT

This starts the next major development iteration.

Change-Id: Iae454a79260f3633994976e086f45458a6240185
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
15 months agoUse mockito-subclass 58/104558/1
Robert Varga [Thu, 23 Feb 2023 15:10:24 +0000 (16:10 +0100)]
Use mockito-subclass

Reduce the workaround here to use mockito-subclass instead of forcing an
old mockito version.

Change-Id: Ibcf45b9101133f2c7852e404081b58c25cd3b888
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
15 months agoAdd IdentityKeyTest 55/104555/1
Robert Varga [Thu, 23 Feb 2023 12:58:44 +0000 (13:58 +0100)]
Add IdentityKeyTest

Add an explicit test for there/back conversion of identitiable items
with identity-bearing keys.

Change-Id: Iee6ef612aac91058dff658025fc6670c8b8b4f56
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
15 months agoBump versions to 11.0.8-SNAPSHOT 95/104495/1
Robert Varga [Thu, 23 Feb 2023 09:48:12 +0000 (10:48 +0100)]
Bump versions to 11.0.8-SNAPSHOT

This starts the next development iteration.

Change-Id: I80ca407339914e3c26aa72b30936c141625e1544
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
15 months agoMigrate user of TypeDescription.OBJECT 94/104494/1
Robert Varga [Wed, 22 Feb 2023 20:48:34 +0000 (21:48 +0100)]
Migrate user of TypeDescription.OBJECT

Use TypeDescription.ForLoadedType.of() instead. Also shorten references
to TypeDescription.ForLoadedType, as we already have it imported.

Change-Id: I2e5531b8e0199d341ee943792369bafb7ab64dc3
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
15 months agoBump upstreams 39/104439/5
Robert Varga [Fri, 17 Feb 2023 14:28:20 +0000 (15:28 +0100)]
Bump upstreams

Adopt:
- odlparent-12.0.3
- yangtools-10.0.4

Change-Id: I98d91e0dac8b396e6164c8b3820c57ba4c5304ae
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
15 months agoRemove unneeded declaration 93/104493/1
Robert Varga [Wed, 22 Feb 2023 20:12:01 +0000 (21:12 +0100)]
Remove unneeded declaration

junit-jupiter-params is pulled in by default, remove the declaration.

Change-Id: I8bed9db5e4b50d114357ed308cb9479ed29f1078
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
15 months agoUse text blocks in BuilderGeneratorTest 91/104491/3
Robert Varga [Wed, 22 Feb 2023 19:09:28 +0000 (20:09 +0100)]
Use text blocks in BuilderGeneratorTest

Java 17 has text blocks, which we can use to make the test a lot more
readable.

Change-Id: Ifa4236e09f6e576b339be7fba0dd2c91469ce9a7
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
15 months agoReduce bindingEquals() verbosity 90/104490/3
Robert Varga [Wed, 22 Feb 2023 19:03:31 +0000 (20:03 +0100)]
Reduce bindingEquals() verbosity

We are generating a cascade of checks, all of which must pass for us to
return 'true'. Rather that generating a number of 'if/return' blocks,
use a single expression to achieve the same result.

Change-Id: I13c7abe4ef81d2a2822b6b4d0456f277dd5ce288
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
15 months agoUse {@code null} instead of plain null 88/104488/5
Robert Varga [Wed, 22 Feb 2023 18:41:56 +0000 (19:41 +0100)]
Use {@code null} instead of plain null

We want to highlight null, make sure we do that.

Change-Id: I489c42a5e8f28bec5799ba22c78b960fc4e753cb
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
15 months agoClean up dependencies 89/104489/3
Robert Varga [Wed, 22 Feb 2023 19:02:37 +0000 (20:02 +0100)]
Clean up dependencies

We rely on rfc8040-model-api in generator, add that to dependencies to
supporess a warning.

Change-Id: I28f2a16b8eff90cc757a4ccebebe3940033a4739
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
15 months agoBump byte-buddy to 1.14.0 92/104492/1
Robert Varga [Wed, 22 Feb 2023 19:12:46 +0000 (20:12 +0100)]
Bump byte-buddy to 1.14.0

https://github.com/raphw/byte-buddy/releases/tag/byte-buddy-1.12.20
https://github.com/raphw/byte-buddy/releases/tag/byte-buddy-1.12.21
https://github.com/raphw/byte-buddy/releases/tag/byte-buddy-1.12.22
https://github.com/raphw/byte-buddy/releases/tag/byte-buddy-1.12.23
https://github.com/raphw/byte-buddy/releases/tag/byte-buddy-1.13.0
https://github.com/raphw/byte-buddy/releases/tag/byte-buddy-1.14.0

Change-Id: I5fded158100395f841b15fba08245399d7973b85
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
15 months agoBump versions to 11.0.7-SNAPSHOT 48/104248/1
Robert Varga [Sun, 5 Feb 2023 11:09:03 +0000 (12:09 +0100)]
Bump versions to 11.0.7-SNAPSHOT

This starts the next development iteration.

Change-Id: I5220b28e9fd077c1b88acb89a25485fa16742f5d
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
15 months agoExpand StatementNamespace 41/104241/2
Robert Varga [Thu, 2 Feb 2023 22:49:35 +0000 (23:49 +0100)]
Expand StatementNamespace

We are dealing with weird generated models in some cases. Expand
StatementNamespace to cover all the possible inter-statement conflicts
by dedicating suffixes.

JIRA: MDSAL-810
Change-Id: If5e99f89a03f1fa6287dc3516f193bed3de097e8
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
15 months agoMove appendPrefix() 35/104235/2
Robert Varga [Thu, 2 Feb 2023 22:00:01 +0000 (23:00 +0100)]
Move appendPrefix()

The decision to append a prefix is a policy decision, hence it should
live in NamingStrategy. StatementNamespace only provides the knobs.

Change-Id: I3439930b2f9978a157f03f7ca685250c010242f1
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
15 months agoUpdate listeners in registerNotificationListeners 44/104244/1
Sangwook Ha [Sat, 4 Feb 2023 19:18:38 +0000 (11:18 -0800)]
Update listeners in registerNotificationListeners

'registerNotificationListeners' does not include a step to replace the
the listener map with a new one. Make sure that the listener map is
actually updated. Also, add test cases for the registration methods.

JIRA: MDSAL-811
Change-Id: I469000b6f92e8d45186cafa1a3a2c737f642de01
Signed-off-by: Sangwook Ha <sangwook.ha@verizon.com>
15 months agoBump versions to 11.0.6-SNAPSHOT 13/104213/1
Robert Varga [Wed, 1 Feb 2023 12:58:07 +0000 (13:58 +0100)]
Bump versions to 11.0.6-SNAPSHOT

This starts the next development iteration.

Change-Id: Idf89c631cd7dcd33f4469c3a05c30f0da33d319e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
15 months agoAdd BindingRuntimeContext.getYangDataClass() 12/104212/1
Robert Varga [Wed, 1 Feb 2023 10:38:11 +0000 (11:38 +0100)]
Add BindingRuntimeContext.getYangDataClass()

For runtime support we need the ability to load YangData classes, this
patch adds that ability.

JIRA: MDSAL-675
Change-Id: Ia318c2cd7b47e6477144938d9f67f69972e4d7c6
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
15 months agoAdd BindingRuntimeTypes.findYangData() 11/104211/1
Robert Varga [Wed, 1 Feb 2023 10:28:44 +0000 (11:28 +0100)]
Add BindingRuntimeTypes.findYangData()

BindingRuntimeTypes (as well as ModuleRuntimeType) need to expose the
ability to locate YangDataRuntimeTypes. This patch adds that capability.

JIRA: MDSAL-675
Change-Id: Ibb5da804ffa04750f6b450ace3a240b910fc7eac
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
15 months agoUse instanceof pattern 10/104210/1
Robert Varga [Wed, 1 Feb 2023 10:11:09 +0000 (11:11 +0100)]
Use instanceof pattern

Remove an explicit cast, making things a bit cleaner.

Change-Id: I5a06c7fcfa74dcca61e7c767cd9107fb926e7894
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
15 months agoRFC8040 'rc:yang-data' support for mdsal binding generator 81/97381/32
Ruslan Kashapov [Tue, 13 Dec 2022 10:34:08 +0000 (12:34 +0200)]
RFC8040 'rc:yang-data' support for mdsal binding generator

New naming strategy is introduced to generate artifact names out of
yang-data argument: if name is yang identifier compliant the camel-case
transformation used, otherwise non-compliant characters are encoded.

JIRA: MDSAL-675
JIRA: MDSAL-808
Change-Id: I6644f550a378cd176e5f53a201ee6e70b32c6410
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
15 months agoSeparate out YangIdentifierClassNamingStrategy 07/104207/3
Robert Varga [Tue, 31 Jan 2023 22:13:23 +0000 (23:13 +0100)]
Separate out YangIdentifierClassNamingStrategy

Our current ClassNamingStrategies rely on the fact that each YANG
statement's argument provides an AbstractQName from which we can extract
a YANG identifier (i.e. AbstractQName.getLocalName()).

ietf-restconf:yang-data's argument is any non-empty String, so we just
cannot keep this contract.

Separate current handing into a separate class, which inherits the
notion of having a nodeIdentifier(), except that fact is purely internal
field. This also neatly re-joins Module and CamelCase to use the same
simpleClassName() method.

JIRA: MDSAL-675
Change-Id: Iaa1a43ba865ff78aa98ac69459e16373634eff40
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
15 months agoRevert "Make CamelCaseWithNamespaceNamingStrategy reusable" 06/104206/1
Robert Varga [Tue, 31 Jan 2023 21:46:27 +0000 (22:46 +0100)]
Revert "Make CamelCaseWithNamespaceNamingStrategy reusable"

This reverts commit 74423fd58d3af3c3fcafd179be4b174aeace2230. As it
turns out we do not need fallback for yang-data after all.

JIRA: MDSAL-675
Change-Id: I3ecba0c7d93bc3e0d33479221b95adea40b4befe
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
15 months agoMove ClassNamingStrategy.simpleClassName() 96/104196/1
Robert Varga [Mon, 30 Jan 2023 20:04:06 +0000 (21:04 +0100)]
Move ClassNamingStrategy.simpleClassName()

Class name generation must not depend on YANG identifier, as there very
well may be other implementations. This results in a bit of duplicate
code, but that's fine.

JIRA: MDSAL-675
Change-Id: Iccbcf77ea68a7f6cf1c5cff18a218a27c04c40a8
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
15 months agoMake CamelCaseWithNamespaceNamingStrategy reusable 95/104195/1
Robert Varga [Mon, 30 Jan 2023 18:44:57 +0000 (19:44 +0100)]
Make CamelCaseWithNamespaceNamingStrategy reusable

Appending a suffix is usable for other strategies as well, rename this
class to AppendNamespaceNamingStrategy and extract the fact that a
strategy has a namespace to AppendNamespaceNamingStrategy, which
automatic fallback.

JIRA: MDSAL-675
Change-Id: Ib1614b84591b4c0349f81785846f7216e0e87ec4
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
15 months agoAdd YangData base interface 64/104064/5
Robert Varga [Tue, 17 Jan 2023 20:52:18 +0000 (21:52 +0100)]
Add YangData base interface

RFC8040 defines a yang-data extension, which defines a piece of data,
which is yang-modeled, but does not tie to any of the RFC7950
constructs.

Add a baseline binding interface which captures its basic contract and
codegen generates interfaces on top of it.

JIRA: MDSAL-675
Change-Id: I6f93733ce15ad47294c7c04bc7de2d7aa22ac9cd
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
15 months agoBump upstreams 94/104194/2
Robert Varga [Mon, 30 Jan 2023 17:36:29 +0000 (18:36 +0100)]
Bump upstreams

Adopt:
- odlparent-12.0.2
- yangtools-10.0.3

Change-Id: I557f7fab6650da3980109cde573bf509a27dd5f7
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
16 months agoBump versions to 11.0.5-SNAPSHOT 95/104095/1
Robert Varga [Mon, 23 Jan 2023 09:45:36 +0000 (10:45 +0100)]
Bump versions to 11.0.5-SNAPSHOT

This starts the next development iteration.

Change-Id: If57c4c2a776554c1892bf23e30b032966eabc059
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
16 months agoFix typedef/bits code generation 41/104041/5
Robert Varga [Mon, 16 Jan 2023 13:42:30 +0000 (14:42 +0100)]
Fix typedef/bits code generation

bits/typedef seemed to be generating code which does not compile.

Add a test to check if the generated code contains desired method and
fix the check for bits type.

JIRA: MDSAL-807
Change-Id: I4618269fff1fc284b65e9efb1d49501248d233c3
Signed-off-by: matus.matok <matus.matok@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
16 months agoAdd Augmentable.augmentationOrElseThrow() 36/104036/5
Robert Varga [Mon, 16 Jan 2023 00:27:40 +0000 (01:27 +0100)]
Add Augmentable.augmentationOrElseThrow()

A number of places assume, or check-or-throw on, presence of a
particular Augmentation. Add convenience methods to short-circuit
the equivalent of Optional.orElseThrow(), so users get more comfort
expressing this.

JIRA: MDSAL-806
Change-Id: I457a93ac1689087a7ceace57489e528b488ed207
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
16 months agoUse instanceof patterns for argument checking 65/104065/1
Robert Varga [Tue, 17 Jan 2023 22:07:13 +0000 (23:07 +0100)]
Use instanceof patterns for argument checking

Eliminate the need for explicit casts by inlining verify(instanceof)
calls.

Change-Id: Ice2508ea44693bac4198b55779f82a9d51cbe514
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
16 months agoAdd FIXMEs to Rpc{Input,Output} 63/104063/1
Robert Varga [Tue, 17 Jan 2023 20:38:10 +0000 (21:38 +0100)]
Add FIXMEs to Rpc{Input,Output}

DataObject has implications which cover the possibility of being an
interior node of a structured data. RpcInput and RpcOutput are
explicitly excluded from that contract, similarly as BaseNotification
is.

Add FIXMEs to reconcile this modeling problem.

Change-Id: I84b6f5ca90cbfb685209559863f29634c5744772
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
16 months agoMore use of instanceof patterns 59/103959/1
Robert Varga [Fri, 6 Jan 2023 22:28:26 +0000 (23:28 +0100)]
More use of instanceof patterns

Reduce the number of explicit casts by integrating them into instanceof
patterns, which leads to reduction of nested if statements in some
cases.

Change-Id: I1255b4c9998faa1ec0de037fc54dc0d79544ed4f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
17 months agoBump versions to 11.0.4-SNAPSHOT 97/103697/1
Robert Varga [Sun, 18 Dec 2022 11:08:25 +0000 (12:08 +0100)]
Bump versions to 11.0.4-SNAPSHOT

This starts the next development iteration.

Change-Id: I3e4125653c6fe0cff8fe61d052fa0b3f9facdf0d
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
17 months agoDeprecate DataObjectReadingUtil 65/103665/1
Robert Varga [Tue, 13 Dec 2022 16:50:38 +0000 (17:50 +0100)]
Deprecate DataObjectReadingUtil

This class is not used anywhere and is a rather heavy user of
reflection. Deprecate it for removal.

JIRA: MDSAL-802
Change-Id: If3f94622b9ae11b8f63f4d93e3ee211d456725f8
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
17 months agoDeprecate BindingReflections.getModelRootPackageName() 64/103664/2
Robert Varga [Tue, 13 Dec 2022 16:22:17 +0000 (17:22 +0100)]
Deprecate BindingReflections.getModelRootPackageName()

This implementation is a pure mapping thing, hence it has nothing
to do with reflection. Introduce the same method in BindingMapping
and deprecate old methods for removal.

JIRA: MDSAL-800
Change-Id: I598807e481db629e6c12380271ca160430b5fa66
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
17 months agoDeprecate WriteTransaction.mergeParentStructure*() 37/103637/1
Robert Varga [Thu, 8 Dec 2022 22:09:13 +0000 (23:09 +0100)]
Deprecate WriteTransaction.mergeParentStructure*()

These methods hark to our dark past. Most of their uses should be
superfluous with current semantics and they paper over important
lifecycle management questions. Furthermore there are corner cases for
which they cannot be made to work simply because of the semantics
involved.

Deprecate these method so their users are pointed out and can be
gradually migrated.

Change-Id: Ib85d42a9514b33fcdb1efb1ddb273b4c6ee0e554
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
17 months agoFix union/bits string mapping 03/103603/1
Robert Varga [Mon, 5 Dec 2022 17:50:10 +0000 (18:50 +0100)]
Fix union/bits string mapping

BitsTypeObject changed the name of the value getter -- it is now
values(), not getValue(). Adjust UnionTemplate reference and update
tests to covert this case.

JIRA: MDSAL-797
Change-Id: I8b8789b87ae5ea43eaa942b932690dc3e35a161e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
17 months agoSet Xtend generation target to Java 17 74/103574/1
Robert Varga [Sun, 4 Dec 2022 17:59:36 +0000 (18:59 +0100)]
Set Xtend generation target to Java 17

Xtend can now support Java 17, let's use it.

Change-Id: I3135f893b89e453af2a13abd67e1fde59fd0ac5c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
17 months agoBump Xtend to 2.29.0 73/103573/1
Robert Varga [Sun, 4 Dec 2022 17:59:09 +0000 (18:59 +0100)]
Bump Xtend to 2.29.0

Pick up latest upgrade.

Change-Id: Ie5d3c7e508b6e2886c55985ea5e4e5c46c61f722
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
17 months agoBump versions to 11.0.3-SNAPSHOT 69/103569/1
Robert Varga [Sun, 4 Dec 2022 14:37:14 +0000 (15:37 +0100)]
Bump versions to 11.0.3-SNAPSHOT

This starts the next development iteration.

Change-Id: I4a8f80b45a971542dd1ca5d0a696b26b60118b71
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
17 months agoBump yangtools to 10.0.2 68/103568/1
Robert Varga [Sun, 4 Dec 2022 14:31:49 +0000 (15:31 +0100)]
Bump yangtools to 10.0.2

Pick up the fix for XML parser regression.

Change-Id: Idd5789f19ae3925e12950a8cf51a5901370bcb96
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
17 months agoBump versions to 11.0.2-SNAPSHOT 43/103443/1
Robert Varga [Mon, 28 Nov 2022 17:08:45 +0000 (18:08 +0100)]
Bump versions to 11.0.2-SNAPSHOT

This starts the next development iteration.

Change-Id: I7a2367609de91fe1d2231ee3c8f48fe6851387ba
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
17 months agoFix AbstractDOMRoutingTable.{add,remove}All() 42/103442/4
Robert Varga [Mon, 28 Nov 2022 13:15:17 +0000 (14:15 +0100)]
Fix AbstractDOMRoutingTable.{add,remove}All()

Our naive implementation breaks down if we are registering multiple
items, as we end up adding unmodified entries each and every time.

Fix this up by decomposing identifiers in the caller, keeping them in a
table and then have addAll()/removeAll() work on the table, with careful
checks.

JIRA: MDSAL-796
Change-Id: I0a52763e047026c1a641d9a25d82ee1d193fd573
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
17 months agoMake invertImplementationsMap() static 39/103439/1
Robert Varga [Mon, 28 Nov 2022 10:42:41 +0000 (11:42 +0100)]
Make invertImplementationsMap() static

This method is not touching staste, make it static to make that clear.

Change-Id: I1c6366c3f36bae4a8b77c84edeea9e8770eae968
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
18 months agoRefactor createDomRpcIdentifiers() 25/103425/2
Robert Varga [Sat, 26 Nov 2022 15:32:05 +0000 (16:32 +0100)]
Refactor createDomRpcIdentifiers()

We are creating a temporary HashMap, there is just no need to do that,
and we can further de-duplicate callers by introducing register()
which registered a transformed map.

Change-Id: I6ac52eb9b383ebfefc790596cdbb92ce418871a8
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
18 months agoSimplify transactionAborted() 10/103410/3
Robert Varga [Sat, 26 Nov 2022 09:22:30 +0000 (10:22 +0100)]
Simplify transactionAborted()

We have introduced instanceof patterns, which simplify the structure
enough so Sonar points out we should merge if statements. Do that and
inline 'success' as well.

Change-Id: I23bc76a3abe26b25d534e6a22f8b672310f987c1
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
18 months agoModernize AbstractIetfInetUtil 11/103411/4
Robert Varga [Sat, 26 Nov 2022 09:36:55 +0000 (10:36 +0100)]
Modernize AbstractIetfInetUtil

Centralize thrown exceptions, inline the checks and use switch
expressions. This should make Sonar happier.

Change-Id: Ibc71439eb8ebe4f8b7f60d018b70d2e255bdcfb0
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
18 months agoEnable HTML linting 07/103407/2
Robert Varga [Sat, 26 Nov 2022 09:01:17 +0000 (10:01 +0100)]
Enable HTML linting

We require JDK17, hence we can properly lint HTML.

Change-Id: Ie845b23530f96f5ab3ee3eacae42734b0f754281
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
18 months agoUse explicit exceptions in benchmark 09/103409/1
Robert Varga [Sat, 26 Nov 2022 09:19:04 +0000 (10:19 +0100)]
Use explicit exceptions in benchmark

Sonar does not like Exception, fix the issues reported.

Change-Id: I483b4bb04839f577261f4a141ddfc0dd8b90b08a
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
18 months agoLog timeouts 08/103408/2
Robert Varga [Sat, 26 Nov 2022 09:06:59 +0000 (10:06 +0100)]
Log timeouts

Sonar is complaining about TimeoutException, log them.

Change-Id: Ia3f33fb5f66b7bba71763e281172184c56b46394
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
18 months agoUse RpcEffectiveStatement.input() 06/103406/1
Robert Varga [Sat, 26 Nov 2022 07:54:00 +0000 (08:54 +0100)]
Use RpcEffectiveStatement.input()

This saves a bit of code.

Change-Id: I77c482b6566fb4cb5102eae8ab84999f4d9ad083
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
18 months agoBump versions to 11.0.1-SNAPSHOT 02/103402/1
Robert Varga [Fri, 25 Nov 2022 16:44:54 +0000 (17:44 +0100)]
Bump versions to 11.0.1-SNAPSHOT

This starts the next development iteration.

Change-Id: Ia40325bfd0a3da4de33c05f8484f1e24c80204e5
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
18 months agoBump upstream versions 01/103401/1
Robert Varga [Fri, 25 Nov 2022 15:46:44 +0000 (16:46 +0100)]
Bump upstream versions

Adopt:
- odlparent-12.0.1
- yangtools-10.0.1

Change-Id: I376c482c8c050a14a3de94c4768cad2c01320e1e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
18 months agoFix a module warning 84/103384/2
Robert Varga [Fri, 25 Nov 2022 02:43:32 +0000 (03:43 +0100)]
Fix a module warning

We are exposing javax.inject-annotated class, user should therefore
know about javax.inject (although there should not be any).

Change-Id: I076f82b9921b00d9483703f684277512e565d33e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
18 months agoImprove SchemaUnawareCodec 83/103383/2
Robert Varga [Fri, 25 Nov 2022 02:36:09 +0000 (03:36 +0100)]
Improve SchemaUnawareCodec

Propagate type safety a bit and reduce casts a bit.

JIRA: MDSAL-743
Change-Id: I05a727f9eb21f55f41c84b3dd5bb264aefd71a73
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>