Bug 5819 - Violation of synchronization rules in AbstractSchemaRepository 14/38914/1
authorAlexis de Talhouët <adetalhouet@inocybe.com>
Fri, 29 Apr 2016 11:54:00 +0000 (07:54 -0400)
committerRobert Varga <rovarga@cisco.com>
Mon, 16 May 2016 08:12:06 +0000 (10:12 +0200)
commit98ac2b04a469af0b0d69d17ef66799fb46a9c4ed
tree94656e35315344bb798c1e707408f1df53b1f0f4
parent6d3f5a4c3ea77747d8d5e262e1032488db35f52f
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>
(cherry picked from commit 36bdb3a032d4924b36dc86d782e58043954adadc)
yang/yang-model-util/src/main/java/org/opendaylight/yangtools/yang/model/repo/util/AbstractSchemaRepository.java