yangtools.git
9 years agoMerge "BUG-576: fixed possible null pointer dereference in BindingGeneratorImpl"
Robert Varga [Fri, 29 Aug 2014 20:54:16 +0000 (20:54 +0000)]
Merge "BUG-576: fixed possible null pointer dereference in BindingGeneratorImpl"

9 years agoMerge "BUG-1433: augmentation field visibility changed to default"
Robert Varga [Fri, 29 Aug 2014 20:52:17 +0000 (20:52 +0000)]
Merge "BUG-1433: augmentation field visibility changed to default"

9 years agoMerge "Bug 1446: Add new concurrent classes for tracking stats"
Tony Tkacik [Fri, 29 Aug 2014 20:47:04 +0000 (20:47 +0000)]
Merge "Bug 1446: Add new concurrent classes for tracking stats"

9 years agoMerge "BUG-869: removed redundant check for null before an instanceof"
Robert Varga [Fri, 29 Aug 2014 20:40:46 +0000 (20:40 +0000)]
Merge "BUG-869: removed redundant check for null before an instanceof"

9 years agoMerge "BUG-869: added proper handling of nullable parameter"
Robert Varga [Fri, 29 Aug 2014 20:23:26 +0000 (20:23 +0000)]
Merge "BUG-869: added proper handling of nullable parameter"

9 years agoMerge "Fix to feature files to include ietf-yang-types-20130715"
Robert Varga [Fri, 29 Aug 2014 20:04:40 +0000 (20:04 +0000)]
Merge "Fix to feature files to include ietf-yang-types-20130715"

9 years agoFix to feature files to include ietf-yang-types-20130715 70/10470/2
Ed Warnicke [Thu, 28 Aug 2014 20:39:21 +0000 (15:39 -0500)]
Fix to feature files to include ietf-yang-types-20130715

ietf-yang-types-20130715 was missing from feature:

odl-yangtools-models

Change-Id: Idb6c6cd2b3377e8f3c18bd1e4b1dd665f00d2642
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoBug 1446: Add new concurrent classes for tracking stats 37/9837/7
tpantelis [Thu, 7 Aug 2014 21:32:09 +0000 (17:32 -0400)]
Bug 1446: Add new concurrent classes for tracking stats

TrackingLinkedBlockingQueue
    A LinkedBlockingQueue that tracks the largest queue size foridebugging.

CountingRejectedExecutionHandler
    A RejectedExecutionHandler that delegates to a backing RejectedExecutionHandler
    and counts the number of rejected tasks.

DurationStatsTracker
    Class that calculates and tracks time duration statistics.

Change-Id: I1b7bbb45301d8cf682a5de5d51cc64727e3139dc
Signed-off-by: tpantelis <tpanteli@brocade.com>
9 years agoMerge "Bug 1505 - Provide test coverage for binding-data-codec using sal-test-model"
Tony Tkacik [Thu, 28 Aug 2014 16:19:22 +0000 (16:19 +0000)]
Merge "Bug 1505 - Provide test coverage for binding-data-codec using sal-test-model"

9 years agoMerge "Hotfix for gson test."
Tony Tkacik [Thu, 28 Aug 2014 15:03:20 +0000 (15:03 +0000)]
Merge "Hotfix for gson test."

9 years agoMerge "BUG-869: avoid String repetition in RestRestconfService."
Tony Tkacik [Thu, 28 Aug 2014 14:42:09 +0000 (14:42 +0000)]
Merge "BUG-869: avoid String repetition in RestRestconfService."

9 years agoMerge "BUG-576: fixed invalid key used to search map of modules."
Tony Tkacik [Thu, 28 Aug 2014 14:41:41 +0000 (14:41 +0000)]
Merge "BUG-576: fixed invalid key used to search map of modules."

9 years agoMerge "BUG-576: fixed bug in AbstractSchemaRepository.removeSource"
Tony Tkacik [Thu, 28 Aug 2014 14:40:15 +0000 (14:40 +0000)]
Merge "BUG-576: fixed bug in AbstractSchemaRepository.removeSource"

9 years agoMerge "BUG-576: added support for handling nested groupings in code generator."
Tony Tkacik [Thu, 28 Aug 2014 14:39:35 +0000 (14:39 +0000)]
Merge "BUG-576: added support for handling nested groupings in code generator."

9 years agoMerge "BUG-576: fixed invalid if conditions in LazyGeneratedCodecRegistry."
Tony Tkacik [Thu, 28 Aug 2014 14:39:09 +0000 (14:39 +0000)]
Merge "BUG-576: fixed invalid if conditions in LazyGeneratedCodecRegistry."

9 years agoHotfix for gson test. 53/10453/1
Lukas Sedlak [Thu, 28 Aug 2014 14:10:27 +0000 (16:10 +0200)]
Hotfix for gson test.

Test had to be modified prior to internal use of hash sets. Test relied on retrieving first item from
parsedData values. That lead to test failure on various platforms. Now test should run without problems.

Change-Id: Icaa920645c0e12bc922eef131b89e27d7a6b213f
Signed-off-by: Lukas Sedlak <lsedlak@cisco.com>
9 years agoMerge "BUG-576: fixed test sources loading in YangModuleInfoCompilationTest."
Tony Tkacik [Thu, 28 Aug 2014 12:18:31 +0000 (12:18 +0000)]
Merge "BUG-576: fixed test sources loading in YangModuleInfoCompilationTest."

9 years agoMerge "BUG-869: removed useless null check from DataValidationException.checkListKey"
Tony Tkacik [Thu, 28 Aug 2014 11:50:24 +0000 (11:50 +0000)]
Merge "BUG-869: removed useless null check from DataValidationException.checkListKey"

9 years agoBUG-869: avoid String repetition in RestRestconfService. 44/10444/1
Martin Vitez [Thu, 28 Aug 2014 11:44:54 +0000 (13:44 +0200)]
BUG-869: avoid String repetition in RestRestconfService.

Change-Id: I5dee877114166842dbbbf3596970e0cea55b7686
Signed-off-by: Martin Vitez <mvitez@cisco.com>
9 years agoBUG-869: removed useless null check from DataValidationException.checkListKey 35/10435/2
Martin Vitez [Thu, 28 Aug 2014 09:46:25 +0000 (11:46 +0200)]
BUG-869: removed useless null check from DataValidationException.checkListKey

Null check is useless because

1. it is already performed in call to overloaded checkListKey
2. value is already dereferenced and if it were null a NullPointerException would have occurred

Expression 'if (isLegal == false)' simplified to 'if (!isLegal)'.

Change-Id: I7bf332e99e35d283726e439caf1d2a39a17df932
Signed-off-by: Martin Vitez <mvitez@cisco.com>
9 years agoMerge "BUG-1590: introduce PathArgument.toRelativeString() and use it"
Tony Tkacik [Thu, 28 Aug 2014 10:43:01 +0000 (10:43 +0000)]
Merge "BUG-1590: introduce PathArgument.toRelativeString() and use it"

9 years agoBUG-869: removed redundant check for null before an instanceof 36/10436/1
Martin Vitez [Thu, 28 Aug 2014 10:01:38 +0000 (12:01 +0200)]
BUG-869: removed redundant check for null before an instanceof

No need to check for null before an instanceof, the instanceof keyword returns false when given a null argument.

Change-Id: Ib572460a5972406a6a27347f73e19d27109f994c
Signed-off-by: Martin Vitez <mvitez@cisco.com>
9 years agoBUG-576: fixed bug in AbstractSchemaRepository.removeSource 34/10434/1
Martin Vitez [Thu, 28 Aug 2014 09:40:48 +0000 (11:40 +0200)]
BUG-576: fixed bug in AbstractSchemaRepository.removeSource

Change-Id: If91f1877c1bcd17eab3f547dbe4dc6613421a129
Signed-off-by: Martin Vitez <mvitez@cisco.com>
9 years agoBUG-869: replaced inefficient use of keySet with entrySet in XmlUtils 31/10431/1
Martin Vitez [Thu, 28 Aug 2014 09:25:57 +0000 (11:25 +0200)]
BUG-869: replaced inefficient use of keySet with entrySet in XmlUtils

Change-Id: Ib665da6c15b6906e6eb220fd0ec53b7ecfbba04f
Signed-off-by: Martin Vitez <mvitez@cisco.com>
9 years agoBUG-576: fixed invalid if conditions in LazyGeneratedCodecRegistry. 30/10430/1
Martin Vitez [Thu, 28 Aug 2014 09:03:39 +0000 (11:03 +0200)]
BUG-576: fixed invalid if conditions in LazyGeneratedCodecRegistry.

1. fixed check to 'previous instanceof DataNodeContainer' - this check always return true
2. fixed incorrect equals parameter: expected URI but was QName

Change-Id: Ib67ac5b1fc87296bcaa117e9bf1d5f04185c367b
Signed-off-by: Martin Vitez <mvitez@cisco.com>
9 years agoBug 1505 - Provide test coverage for binding-data-codec using 07/10307/4
Jan Hajnar [Thu, 21 Aug 2014 13:07:33 +0000 (15:07 +0200)]
Bug 1505 - Provide test coverage for binding-data-codec using
sal-test-model

* added test yang modules to bindig-test-model
* added tests for serialization/deserialization of normalized nodes and
paths to binding-data-codec

Change-Id: Ibdf24dd9e51281be488fb40481a79d6f086a2115
Signed-off-by: Jan Hajnar <jhajnar@cisco.com>
9 years agoMerge "Fixed incorrect instanceof in yang-data-operations."
Robert Varga [Wed, 27 Aug 2014 16:37:08 +0000 (16:37 +0000)]
Merge "Fixed incorrect instanceof in yang-data-operations."

9 years agoBUG-576: fixed test sources loading in YangModuleInfoCompilationTest. 58/10358/3
Martin Vitez [Wed, 27 Aug 2014 08:42:57 +0000 (10:42 +0200)]
BUG-576: fixed test sources loading in YangModuleInfoCompilationTest.

Fixed test to parse File sources with relative test.

Change-Id: I4af05166a2c26cf4a3f673b1651ac28c717dd43e
Signed-off-by: Martin Vitez <mvitez@cisco.com>
9 years agoMerge "Bug 1630: Updated normalized to binding codec to exclude LeafSetEntryNode."
Tony Tkacik [Wed, 27 Aug 2014 14:19:24 +0000 (14:19 +0000)]
Merge "Bug 1630: Updated normalized to binding codec to exclude LeafSetEntryNode."

9 years agoBug 1630: Updated normalized to binding codec to exclude LeafSetEntryNode. 78/10378/1
Tony Tkacik [Wed, 27 Aug 2014 14:12:44 +0000 (16:12 +0200)]
Bug 1630: Updated normalized to binding codec to exclude LeafSetEntryNode.

Change-Id: I8d921ed8d03e19a3fb9868ef9a0a8ebecb02563c
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
9 years agoMerge "Fixed merge job breakage."
Tony Tkacik [Wed, 27 Aug 2014 14:08:47 +0000 (14:08 +0000)]
Merge "Fixed merge job breakage."

9 years agoFixed merge job breakage. 76/10376/1
Tony Tkacik [Wed, 27 Aug 2014 13:39:17 +0000 (15:39 +0200)]
Fixed merge job breakage.

Change-Id: I981e5e70e8798492403ef14c9d7af091145765d0
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
9 years agoMerge "BUG-869: reworked check for integer value."
Tony Tkacik [Wed, 27 Aug 2014 13:23:55 +0000 (13:23 +0000)]
Merge "BUG-869: reworked check for integer value."

9 years agoMerge "ModifiedNode instantiation improvement."
Tony Tkacik [Wed, 27 Aug 2014 13:10:11 +0000 (13:10 +0000)]
Merge "ModifiedNode instantiation improvement."

9 years agoMerge "Bug 1258: Implement DataTree partial indexing"
Tony Tkacik [Wed, 27 Aug 2014 13:09:47 +0000 (13:09 +0000)]
Merge "Bug 1258: Implement DataTree partial indexing"

9 years agoBUG-1630: fix warning message format 70/10370/1
Robert Varga [Wed, 27 Aug 2014 12:15:28 +0000 (14:15 +0200)]
BUG-1630: fix warning message format

The bug has been reasolved by change
I4a35ff27725dab7f35b83ae1bcc6d728a313bd1c, this patch just fixes the
message format.

Change-Id: Ic77f0675c8adb1c6d2ba29ea555335e7eaba4a34
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoMerge "BUG-650: add missing bypass"
Tony Tkacik [Wed, 27 Aug 2014 12:09:12 +0000 (12:09 +0000)]
Merge "BUG-650: add missing bypass"

9 years agoMerge "BUG-650: improve toYangInstanceIdentifier() speed"
Tony Tkacik [Wed, 27 Aug 2014 11:19:25 +0000 (11:19 +0000)]
Merge "BUG-650: improve toYangInstanceIdentifier() speed"

9 years agoBUG-650: add missing bypass 63/10363/1
Robert Varga [Wed, 27 Aug 2014 10:29:55 +0000 (12:29 +0200)]
BUG-650: add missing bypass

ChoiceNode is not representable either, so check for it early. Also
eliminate the FIXME, now that we are in the clear about what needs to
happen. Finally log offending class in warning, so we can track it down.

Change-Id: I4a35ff27725dab7f35b83ae1bcc6d728a313bd1c
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoMerge "Pre-cache child node set"
Tony Tkacik [Wed, 27 Aug 2014 10:28:15 +0000 (10:28 +0000)]
Merge "Pre-cache child node set"

9 years agoMerge "Bug 1443: Added support for misplaced augmentations."
Lukas Sedlak [Wed, 27 Aug 2014 09:11:08 +0000 (09:11 +0000)]
Merge "Bug 1443: Added support for misplaced augmentations."

9 years agoFixed incorrect instanceof in yang-data-operations. 14/10314/3
Tony Tkacik [Tue, 26 Aug 2014 14:35:19 +0000 (16:35 +0200)]
Fixed incorrect instanceof in yang-data-operations.

Intended check was to check for AugmentationIdentifier,
AugmentationNode was incorrectly checked.

Change-Id: Ice6f31407c1b8f0bb2400685730324503cd05e44
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
9 years agoBug 1443: Added support for misplaced augmentations. 01/10301/5
Tony Tkacik [Tue, 26 Aug 2014 11:35:22 +0000 (13:35 +0200)]
Bug 1443: Added support for misplaced augmentations.

Binding Specification reuses elements inside groupings
as part of normal data tree. Augmentations and augmented
cases could be copied by user using copy builders
and may be used at incorrect place, where augmentation
with same data is present.

Binding Data Codec will treat this augmentations as
same, if augmentation definining same data subtree
is present at real location.

Change-Id: Ie232ef9b5e5bbe84f5562bfce612d8ea03b9a9a5
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
9 years agoBUG-650: improve toYangInstanceIdentifier() speed 41/10341/2
Robert Varga [Tue, 26 Aug 2014 20:06:01 +0000 (22:06 +0200)]
BUG-650: improve toYangInstanceIdentifier() speed

This removes a superfluous call to getCodecContextNode(), since that
call is already performed by the InstanceIdentifierCodec.

Change-Id: I2077e70517adf6795f805b6c37c0a7e29b4fb9e5
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoBUG-650: clarify BindingNormalizedNodeSerializer API contract 40/10340/2
Robert Varga [Tue, 26 Aug 2014 19:55:22 +0000 (21:55 +0200)]
BUG-650: clarify BindingNormalizedNodeSerializer API contract

Non-representable YangInstanceIdentifiers are properly reported via a
null return instead of raising an undocumented IllegalArgumentException.

Also does some implementation house-cleaning geared towards performance,
as ArrayList gives better locality.

Change-Id: Iea4717c19587fd2cc1e403aae4c5967811240e9a
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoRemove unused arguments from UnionTypeCodec.loader() 39/10339/1
Robert Varga [Tue, 26 Aug 2014 18:42:17 +0000 (20:42 +0200)]
Remove unused arguments from UnionTypeCodec.loader()

The two codecs passed in were unused, so remove them, fix the callsite
and remove the useless warnings suppression.

Change-Id: Ib3d052109303c1c18f9a4d58d2eafeefea37caba
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoUnionTypeCodec should not throw raw Exception 38/10338/1
Robert Varga [Tue, 26 Aug 2014 18:39:29 +0000 (20:39 +0200)]
UnionTypeCodec should not throw raw Exception

This is a callable, and we know what types of exceptions can be thrown,
so get rid of the implied sonar warning.

Change-Id: Iab62d6749cd1d33096297c2072e02c42ddebd878
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoMerge "BUG-865: removed use of deprecated YangInstanceIdentifier.getPath method"
Robert Varga [Tue, 26 Aug 2014 18:30:56 +0000 (18:30 +0000)]
Merge "BUG-865: removed use of deprecated YangInstanceIdentifier.getPath method"

9 years agoMerge "Bug 1505 - Added test model and instance identifier test for augmentations"
Robert Varga [Tue, 26 Aug 2014 18:29:06 +0000 (18:29 +0000)]
Merge "Bug 1505 - Added test model and instance identifier test for augmentations"

9 years agoBUG-576: added support for handling nested groupings in code generator. 20/10320/1
Martin Vitez [Tue, 26 Aug 2014 15:30:45 +0000 (17:30 +0200)]
BUG-576: added support for handling nested groupings in code generator.

Failing example (causing NullPointerException):

container foo {
  grouping bar {}
  uses bar;
}

Added call to resolve groupings before resolving uses.

Change-Id: I171b3bbdd26feaf67c3488a55e7d9e3b6ec4a915
Signed-off-by: Martin Vitez <mvitez@cisco.com>
9 years agoPre-cache child node set 29/10229/2
Robert Varga [Sun, 24 Aug 2014 21:48:20 +0000 (23:48 +0200)]
Pre-cache child node set

Tracing has shown this method gets called ~5.7M times, contributing to
some 10% bootup time. Pre-cache the set of nodes to speed things up.

Change-Id: I20bf25b55a4c52a725c160d7d52c6cdd8ce4dfa0
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoModifiedNode instantiation improvement. 15/10315/1
Lukas Sedlak [Tue, 26 Aug 2014 14:24:18 +0000 (16:24 +0200)]
ModifiedNode instantiation improvement.

Every instance of ModifiedNode will contain children with hash map instance based on Modified Node ordering. Now if ModifiedNode
will cary Ordered Children LinkedHashMap will be used otherwise ordinary HashMap will be used. This should improve performance
during validation process.

Change-Id: I83dfe70a02ca5f4a6a25c4b5ebe38debad16e46b
Signed-off-by: Lukas Sedlak <lsedlak@cisco.com>
9 years agoBug 1258: Implement DataTree partial indexing 96/9696/5
Lukas Sedlak [Tue, 5 Aug 2014 14:05:48 +0000 (16:05 +0200)]
Bug 1258: Implement DataTree partial indexing

Now the TreeNode elements are instantiated lazily per applyWrite/applyMerge/applySubtreeChange operations.
Implemented createTreeNode in TreeNodeFactory to create non recursively single node instance in TreeNode
Renamed create to createTreeNodeRecursively.

Added benchmarks project directly into the root of yangtools project.
Benchmarks project contains benchmark for testing performance of InMemoryDataTree implementation.
Tool used for benchmarks is JHM.

Change-Id: I70c9745fc9ed8751c643d9bd3e9d58be10aa4a0e
Signed-off-by: Lukas Sedlak <lsedlak@cisco.com>
9 years agoMerge "BUG-869: description field in BitsType made static"
Tony Tkacik [Tue, 26 Aug 2014 14:19:50 +0000 (14:19 +0000)]
Merge "BUG-869: description field in BitsType made static"

9 years agoMerge "BUG-865: removed UnknownType class"
Tony Tkacik [Tue, 26 Aug 2014 14:07:21 +0000 (14:07 +0000)]
Merge "BUG-865: removed UnknownType class"

9 years agoMerge "BUG-869: avoid unused constructor parameter namespace in YangModelDependencyIn...
Tony Tkacik [Tue, 26 Aug 2014 14:06:56 +0000 (14:06 +0000)]
Merge "BUG-869: avoid unused constructor parameter namespace in YangModelDependencyInfo.ModuleDependencyInfo"

9 years agoMerge "BUG-869: simplified if expressions as suggested by Sonar."
Tony Tkacik [Tue, 26 Aug 2014 14:06:46 +0000 (14:06 +0000)]
Merge "BUG-869: simplified if expressions as suggested by Sonar."

9 years agoMerge "BUG-869: fixed code style violations in TypeProviderImpl reported by Sonar"
Tony Tkacik [Tue, 26 Aug 2014 14:06:22 +0000 (14:06 +0000)]
Merge "BUG-869: fixed code style violations in TypeProviderImpl reported by Sonar"

9 years agoMerge "Fix for features - added missing dependency"
Martin Vitez [Tue, 26 Aug 2014 13:22:25 +0000 (13:22 +0000)]
Merge "Fix for features - added missing dependency"

9 years agoBUG-1590: introduce PathArgument.toRelativeString() and use it 07/10107/2
Robert Varga [Wed, 20 Aug 2014 15:58:15 +0000 (17:58 +0200)]
BUG-1590: introduce PathArgument.toRelativeString() and use it

This patch introduces a new method, toRelativeString(), which does the
same thing as toString(), but takes into account previous path argument
and does not emit namespace if it matches the previous namespace.

Change-Id: Ia75c7cbf4a2fd7639a7c991e5b8242bd5f2a439a
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoBug 1505 - Added test model and instance identifier test for augmentations 00/10300/2
Tony Tkacik [Tue, 26 Aug 2014 11:33:02 +0000 (13:33 +0200)]
Bug 1505 - Added test model and instance identifier test for augmentations

Added binding-test-model, which contains models for unit testing
and integration testing of binding runtime components such as binding-data-codec.

Change-Id: Ib8219252eec5c2e1b4ddda806bea7367b7c41f9b
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
9 years agoBUG-865: removed use of deprecated YangInstanceIdentifier.getPath method 08/10308/1
Martin Vitez [Tue, 26 Aug 2014 12:17:27 +0000 (14:17 +0200)]
BUG-865: removed use of deprecated YangInstanceIdentifier.getPath method

Change-Id: I4f95e92173cc062deeea5ca0174a110126f43613
Signed-off-by: Martin Vitez <mvitez@cisco.com>
9 years agoFix for features - added missing dependency 06/10306/1
Ed Warnicke [Tue, 26 Aug 2014 12:02:12 +0000 (07:02 -0500)]
Fix for features - added missing dependency

There was a missing dependency in the features/pom.xml
In some circumstances, it was causing downstream breakage.
This patch fixes that.

Change-Id: I8d2c98b4812084dd131055bcecbb57a4871c09ba
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoBUG-869: reworked check for integer value. 04/10304/2
Martin Vitez [Tue, 26 Aug 2014 11:48:28 +0000 (13:48 +0200)]
BUG-869: reworked check for integer value.

Change-Id: I65b34369eeb546cd8f1716b2b7adfd25232ddece
Signed-off-by: Martin Vitez <mvitez@cisco.com>
9 years agoBUG-576: fixed possible null pointer dereference in BindingGeneratorImpl 99/10299/1
Martin Vitez [Tue, 26 Aug 2014 11:28:58 +0000 (13:28 +0200)]
BUG-576: fixed possible null pointer dereference in BindingGeneratorImpl

Possible null pointer dereference of resultTOBuilder.

Change-Id: I5f50f1ca0fb19d7310e5278f8f6915e6dd180723
Signed-off-by: Martin Vitez <mvitez@cisco.com>
9 years agoBUG-576: fixed invalid key used to search map of modules. 97/10297/1
Martin Vitez [Tue, 26 Aug 2014 11:11:04 +0000 (13:11 +0200)]
BUG-576: fixed invalid key used to search map of modules.

Removed useless null check when searching for grouping.

Change-Id: Ifd8c05560a2ea6377eb3118f03466af1176666c9
Signed-off-by: Martin Vitez <mvitez@cisco.com>
9 years agoBUG-869: added proper handling of nullable parameter 95/10295/1
Martin Vitez [Tue, 26 Aug 2014 10:51:54 +0000 (12:51 +0200)]
BUG-869: added proper handling of nullable parameter

Argument of Function.apply method is marked as Nullable, but previous implementation assumed it
as nonnull parameter.

Change-Id: Ifc49803443d7cc71e7ff7f062f30119840519377
Signed-off-by: Martin Vitez <mvitez@cisco.com>
9 years agoBUG-869: description field in BitsType made static 89/10289/2
Martin Vitez [Tue, 26 Aug 2014 09:23:47 +0000 (11:23 +0200)]
BUG-869: description field in BitsType made static

Change-Id: Idbd7886fd641ff2a2fdc8fa7f6921e3f0e0c7db2
Signed-off-by: Martin Vitez <mvitez@cisco.com>
9 years agoBUG-869: fixed code style violations in TypeProviderImpl reported by Sonar 93/10293/1
Martin Vitez [Tue, 26 Aug 2014 10:33:42 +0000 (12:33 +0200)]
BUG-869: fixed code style violations in TypeProviderImpl reported by Sonar

Change-Id: Ica2e34c2157c48f44227f66042fff444fd56105a
Signed-off-by: Martin Vitez <mvitez@cisco.com>
9 years agoBUG-866: improved test resource loading 92/10292/1
Martin Vitez [Tue, 26 Aug 2014 10:17:19 +0000 (12:17 +0200)]
BUG-866: improved test resource loading

Change-Id: I479299cacf0b2070fac6325a0d0165362ee0d0fa
Signed-off-by: Martin Vitez <mvitez@cisco.com>
9 years agoBUG-865: removed UnknownType class 88/10288/1
Martin Vitez [Tue, 26 Aug 2014 09:18:45 +0000 (11:18 +0200)]
BUG-865: removed UnknownType class

UnknownType class is no longer used in yangtools.

Change-Id: I726db6d1b26a7c552967a9ffc5dd5dd1cfe0e93b
Signed-off-by: Martin Vitez <mvitez@cisco.com>
9 years agoBUG-869: avoid unused constructor parameter namespace in YangModelDependencyInfo... 85/10285/1
Martin Vitez [Tue, 26 Aug 2014 08:16:14 +0000 (10:16 +0200)]
BUG-869: avoid unused constructor parameter namespace in YangModelDependencyInfo.ModuleDependencyInfo

Change-Id: Id50accca7f7c6ba1259007d6b6a6c5816bcc7f9e
Signed-off-by: Martin Vitez <mvitez@cisco.com>
9 years agoBUG-869: simplified if expressions as suggested by Sonar. 83/10283/1
Martin Vitez [Tue, 26 Aug 2014 07:53:58 +0000 (09:53 +0200)]
BUG-869: simplified if expressions as suggested by Sonar.

Change-Id: I8f79d9c8d7bf381fe089f7bba1e1fa77462f83c6
Signed-off-by: Martin Vitez <mvitez@cisco.com>
9 years agoMerge ".equals() should check for null"
Tony Tkacik [Tue, 26 Aug 2014 07:38:00 +0000 (07:38 +0000)]
Merge ".equals() should check for null"

9 years agoImprove InstanceIdentifierCodecImpl performance 60/10260/2
Robert Varga [Mon, 25 Aug 2014 20:07:06 +0000 (22:07 +0200)]
Improve InstanceIdentifierCodecImpl performance

Instead of key iterator and lookup, use entrySet(), just as suggested by
Sonar.

Change-Id: Idada8d9a01a92b4398589df593f96b39748394a9
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years ago.equals() should check for null 58/10258/1
Robert Varga [Mon, 25 Aug 2014 20:04:11 +0000 (22:04 +0200)]
.equals() should check for null

This fixes a sonar warning.

Change-Id: Ia33f58ffa0668d1eae811b9dc9d2848a7c7ec96e
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoMerge "BUG-1589 Exclude xml* prefixes from RandomPrefix"
Robert Varga [Mon, 25 Aug 2014 19:17:01 +0000 (19:17 +0000)]
Merge "BUG-1589 Exclude xml* prefixes from RandomPrefix"

9 years agoAllow empty augmentations in Yang modules. 51/10251/1
Tony Tkacik [Mon, 25 Aug 2014 14:23:05 +0000 (16:23 +0200)]
Allow empty augmentations in Yang modules.

Change-Id: I39d2ca5457461357c9834568e81e2b06608717d0
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
9 years agoFixed breakage of uses generation in Binding 49/10249/1
Tony Tkacik [Mon, 25 Aug 2014 13:08:10 +0000 (15:08 +0200)]
Fixed breakage of uses generation in Binding

Change-Id: I0913de13f426906ca8fd2f5e131b022444194648
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
9 years agoMerge "BUG-576: fixed text file loading in test."
Tony Tkacik [Mon, 25 Aug 2014 10:35:48 +0000 (10:35 +0000)]
Merge "BUG-576: fixed text file loading in test."

9 years agoMerge "BUG-1514: fixed bug in module sort."
Tony Tkacik [Mon, 25 Aug 2014 10:33:47 +0000 (10:33 +0000)]
Merge "BUG-1514: fixed bug in module sort."

9 years agoMerge "BUG-1537: improved YangModuleInfo."
Tony Tkacik [Mon, 25 Aug 2014 10:32:33 +0000 (10:32 +0000)]
Merge "BUG-1537: improved YangModuleInfo."

9 years agoMerge changes If1e9a750,Ib530560c,Id01393c3,I2d375382,Id60447ef,I350611fb,I0dbd80db
Tony Tkacik [Mon, 25 Aug 2014 10:25:30 +0000 (10:25 +0000)]
Merge changes If1e9a750,Ib530560c,Id01393c3,I2d375382,Id60447ef,I350611fb,I0dbd80db

* changes:
  BUG-1611: make sure runtime components create short comments
  BUG-1611: force maven plugin generating verbose comments
  BUG-1611: make verbose comments optional
  BUG-1611: use CharMatcher to remove characters
  BUG-1611: drop a FIXME for thread-safety
  BUG-1611: do not instantiate splitters needlessly
  BUG-1611: fix SimpleDateFormat

9 years agoMerge "BUG-576: fixed grammar to handle union type with only one type definition."
Tony Tkacik [Mon, 25 Aug 2014 10:19:38 +0000 (10:19 +0000)]
Merge "BUG-576: fixed grammar to handle union type with only one type definition."

9 years agoMerge "BUG-576: fixed javadoc warnings."
Tony Tkacik [Mon, 25 Aug 2014 10:19:22 +0000 (10:19 +0000)]
Merge "BUG-576: fixed javadoc warnings."

9 years agoMerge "BUG-576: if replaced with else-if in enterImport_stmt method."
Tony Tkacik [Mon, 25 Aug 2014 10:18:57 +0000 (10:18 +0000)]
Merge "BUG-576: if replaced with else-if in enterImport_stmt method."

9 years agoMerge "BUG-997: Fix URLSchemaContextResolver"
Tony Tkacik [Mon, 25 Aug 2014 10:17:37 +0000 (10:17 +0000)]
Merge "BUG-997: Fix URLSchemaContextResolver"

9 years agoBUG-1589 Exclude xml* prefixes from RandomPrefix 40/10240/1
Maros Marsalek [Mon, 25 Aug 2014 09:50:32 +0000 (11:50 +0200)]
BUG-1589 Exclude xml* prefixes from RandomPrefix

Change-Id: Ief1807e0124a1d54ff737dd1c24fcea21f0574ed
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
9 years agoBUG-576: fixed grammar to handle union type with only one type definition. 38/10238/1
Martin Vitez [Mon, 25 Aug 2014 09:20:25 +0000 (11:20 +0200)]
BUG-576: fixed grammar to handle union type with only one type definition.

Change-Id: I5a26c7a0e15de5333fa8ce3d7a17e0fb3aa8ca50
Signed-off-by: Martin Vitez <mvitez@cisco.com>
9 years agoBug 1572: Fixed duplicate and inconsistent allocation of Version 36/10236/2
Tony Tkacik [Mon, 25 Aug 2014 08:17:10 +0000 (10:17 +0200)]
Bug 1572: Fixed duplicate and inconsistent allocation of Version

After switching from numeric version objects to non-numeric Version
modifications based on modifications was broken due to duplicate
allocation of versions - one when derived modification
was allocated and other one when modification was commited,
this make all writes effectivelly conflicting, since
same node was seen with two different versions.

Change-Id: I366f77a96b74db3aa13a2f374d9437e7cfeb2da5
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
9 years agoBUG-576: fixed text file loading in test. 37/10237/1
Martin Vitez [Mon, 25 Aug 2014 09:12:02 +0000 (11:12 +0200)]
BUG-576: fixed text file loading in test.

Change-Id: Iff660142345ba292d9492b06a1199db1e11dd265
Signed-off-by: Martin Vitez <mvitez@cisco.com>
9 years agoBug 1604: Fixed incorrect check in Normalized Node Writer startOrderedMapNode 35/10235/2
Tony Tkacik [Mon, 25 Aug 2014 07:19:47 +0000 (09:19 +0200)]
Bug 1604: Fixed incorrect check in Normalized Node Writer startOrderedMapNode

Check which was used in startOrderedMapNode was meant to be part
of startMapEntry. Check for startOrderedMapNode should be
same as for startMapEntry, only used builder should be different.

Change-Id: I0062f184cc33ee6d1fd6783933f1f4c845f1c4d4
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
9 years agoBUG-576: fixed javadoc warnings. 90/10090/3
Martin Vitez [Wed, 20 Aug 2014 08:32:19 +0000 (10:32 +0200)]
BUG-576: fixed javadoc warnings.

Change-Id: Iec42e1c310267c2df09a66b3c49c5d94948d8b58
Signed-off-by: Martin Vitez <mvitez@cisco.com>
9 years agoBUG-576: if replaced with else-if in enterImport_stmt method. 89/10089/3
Martin Vitez [Wed, 20 Aug 2014 08:12:19 +0000 (10:12 +0200)]
BUG-576: if replaced with else-if in enterImport_stmt method.

Change-Id: Ibf1257d542261c2f96091cd38897351ef315b2bc
Signed-off-by: Martin Vitez <mvitez@cisco.com>
9 years agoBUG-1514: fixed bug in module sort. 23/10023/4
Martin Vitez [Mon, 18 Aug 2014 10:45:49 +0000 (12:45 +0200)]
BUG-1514: fixed bug in module sort.

Change-Id: If8e2848ebd45ca6d51201e46928d3b2c0b9426c9
Signed-off-by: Martin Vitez <mvitez@cisco.com>
9 years agoMerge "BUG 1440 - json stream to normalized node stream writer"
Tony Tkacik [Mon, 25 Aug 2014 07:59:36 +0000 (07:59 +0000)]
Merge "BUG 1440 - json stream to normalized node stream writer"

9 years agoMerge "BUG-1605: Fixup yang-data-api interface"
Tony Tkacik [Mon, 25 Aug 2014 07:59:30 +0000 (07:59 +0000)]
Merge "BUG-1605: Fixup yang-data-api interface"

9 years agoMerge "BUG-1605: Fix yang-binding interfaces"
Tony Tkacik [Mon, 25 Aug 2014 07:59:24 +0000 (07:59 +0000)]
Merge "BUG-1605: Fix yang-binding interfaces"

9 years agoMerge "Fix javadocs a bit"
Tony Tkacik [Mon, 25 Aug 2014 07:56:22 +0000 (07:56 +0000)]
Merge "Fix javadocs a bit"

9 years agoMerge "BUG-997: fix InMemorySchemaSourceCache interface"
Tony Tkacik [Mon, 25 Aug 2014 07:52:34 +0000 (07:52 +0000)]
Merge "BUG-997: fix InMemorySchemaSourceCache interface"