Bug 5819 - Violation of synchronization rules in AbstractSchemaRepository 36/38236/5
authorAlexis de Talhouët <adetalhouet@inocybe.com>
Fri, 29 Apr 2016 11:54:00 +0000 (07:54 -0400)
committerAlexis de Talhouët <adetalhouet@inocybe.com>
Tue, 3 May 2016 21:10:47 +0000 (21:10 +0000)
commit36bdb3a032d4924b36dc86d782e58043954adadc
tree3cd034f3002f317a6eaa790b88d5416743d84ed7
parent237554012c89d7cfed712e2db3f7593ce80e2b20
Bug 5819 - Violation of synchronization rules in AbstractSchemaRepository

As noted by @GuardedBy annotation, access to sources field need to be
performed while holding the object monitor. Refactor getSchemaSource()
to create a copy under lock and then release it for further processing.

Change-Id: I65fddf5830e657c3601c85fd976f12e3c8bb3ff6
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
Signed-off-by: Robert Varga <nite@hq.sk>
yang/yang-model-util/src/main/java/org/opendaylight/yangtools/yang/model/repo/util/AbstractSchemaRepository.java