[YANGTOOLS-217] Eliminate JavassistUtils.getLock() and ClassLoaderUtils.withLock() Created: 16/Jul/14  Updated: 10/Apr/22  Resolved: 29/Jul/14

Status: Resolved
Project: yangtools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement
Reporter: Robert Varga Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All



 Description   

JavassistUtils.getLock() is a remnant from the time of direct xtend use, where we do not have the ability to synchronize on an object.

Now that we are using Java to interact with JavassistUtils, we can use an external synchronized block. Do just that, migrate the users, eliminate getLock().

Once that is done, ClassLoaderUtils' withLock-style methods are no longer used and need to be eliminated.



 Comments   
Comment by Robert Varga [ 25/Jul/14 ]

https://git.opendaylight.org/gerrit/#/c/9319/
https://git.opendaylight.org/gerrit/#/c/9320/

Generated at Wed Feb 07 20:52:36 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.