Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Commit aebf557

Browse files
Vidyashree-Huaweigauravagrawal07
authored andcommitted
Allow multiple registrator to register classes
Change-Id: I35a56b889c45b936bb022a9639702fda21619258
1 parent afdcd1c commit aebf557

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

runtime/src/main/java/org/onosproject/yang/runtime/impl/DefaultYangModelRegistry.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,7 @@ public void registerModel(ModelRegistrationParam param) throws
150150
if (!modelIdStore.containsKey(id)) {
151151
updateRegClassStore(param);
152152
modelIdStore.put(id, model);
153-
} else if ((info != null) &&
154-
(!registerClassStore.containsValue(info.getModuleClass()))) {
153+
} else if (info != null) {
155154
updateRegClassStore(param);
156155
} else {
157156
throw new IllegalArgumentException("ModelId " + id + " already exist");

0 commit comments

Comments
 (0)