@@ -447,7 +447,7 @@ public static Collection<Module> getLoadedModules() {
447447 *
448448 * @return map<ModuleId, Module>
449449 */
450- public static synchronized Map <String , Module > getLoadedModulesMap () {
450+ public static Map <String , Module > getLoadedModulesMap () {
451451 if (loadedModules == null ) {
452452 loadedModules = new WeakHashMap <String , Module >();
453453 }
@@ -461,7 +461,7 @@ public static synchronized Map<String, Module> getLoadedModulesMap() {
461461 *
462462 * @return map<PackageName, Module>
463463 */
464- public static synchronized Map <String , Module > getLoadedModulesMapPackage () {
464+ public static Map <String , Module > getLoadedModulesMapPackage () {
465465 if (loadedModules == null ) {
466466 loadedModules = new WeakHashMap <String , Module >();
467467 return loadedModules ;
@@ -505,7 +505,7 @@ public static List<Module> getStartedModulesInOrder() {
505505 *
506506 * @return Map<ModuleId, Module>
507507 */
508- public static synchronized Map <String , Module > getStartedModulesMap () {
508+ public static Map <String , Module > getStartedModulesMap () {
509509 if (startedModules == null ) {
510510 startedModules = new WeakHashMap <String , Module >();
511511 }
@@ -628,7 +628,7 @@ public static Module startModuleInternal(Module module) throws ModuleException {
628628 * @param applicationContext the spring application context instance to refresh
629629 * @param applicationContext the spring application context instance to refresh
630630 */
631- public static synchronized Module startModuleInternal (Module module , boolean isOpenmrsStartup ,
631+ public static Module startModuleInternal (Module module , boolean isOpenmrsStartup ,
632632 AbstractRefreshableApplicationContext applicationContext ) throws ModuleException {
633633
634634 if (module != null ) {
@@ -1406,7 +1406,7 @@ public static Collection<ModuleClassLoader> getModuleClassLoaders() {
14061406 *
14071407 * @return Map<Module, ModuleClassLoader>
14081408 */
1409- public static synchronized Map <Module , ModuleClassLoader > getModuleClassLoaderMap () {
1409+ public static Map <Module , ModuleClassLoader > getModuleClassLoaderMap () {
14101410 if (moduleClassLoaders == null ) {
14111411 moduleClassLoaders = new WeakHashMap <Module , ModuleClassLoader >();
14121412 }
@@ -1419,7 +1419,7 @@ public static synchronized Map<Module, ModuleClassLoader> getModuleClassLoaderMa
14191419 *
14201420 * @return Map<String, List<Extension>>
14211421 */
1422- public static synchronized Map <String , List <Extension >> getExtensionMap () {
1422+ public static Map <String , List <Extension >> getExtensionMap () {
14231423 if (extensionMap == null ) {
14241424 extensionMap = new WeakHashMap <String , List <Extension >>();
14251425 }
0 commit comments