mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-14 17:01:02 +02:00
Sonar suggestions - file name and constants
- moved class files into a directory that complies with Java naming conventions - extracted a duplicated string literal into a constant Change-Id: I3d0b1378746ee1c7a3d4e541e9d09943886de312
This commit is contained in:
parent
74f9816e6c
commit
41b5302f93
@ -41,6 +41,8 @@ import java.util.Map;
|
|||||||
@Component(immediate = true)
|
@Component(immediate = true)
|
||||||
public class HuaweiModelRegistrator extends AbstractYangModelRegistrator {
|
public class HuaweiModelRegistrator extends AbstractYangModelRegistrator {
|
||||||
|
|
||||||
|
private static final String MODEL_VERSION = "2014-12-25";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates L3VPN model registrator.
|
* Creates L3VPN model registrator.
|
||||||
*/
|
*/
|
||||||
@ -50,19 +52,19 @@ public class HuaweiModelRegistrator extends AbstractYangModelRegistrator {
|
|||||||
|
|
||||||
private static Map<YangModuleId, AppModuleInfo> getAppInfo() {
|
private static Map<YangModuleId, AppModuleInfo> getAppInfo() {
|
||||||
Map<YangModuleId, AppModuleInfo> appInfo = new HashMap<>();
|
Map<YangModuleId, AppModuleInfo> appInfo = new HashMap<>();
|
||||||
appInfo.put(new DefaultYangModuleId("ne-bgpcomm", "2014-12-25"),
|
appInfo.put(new DefaultYangModuleId("ne-bgpcomm", MODEL_VERSION),
|
||||||
new DefaultAppModuleInfo(NeBgpcomm.class, null));
|
new DefaultAppModuleInfo(NeBgpcomm.class, null));
|
||||||
appInfo.put(new DefaultYangModuleId("ne-bgpcomm-type", "2014-12-25"),
|
appInfo.put(new DefaultYangModuleId("ne-bgpcomm-type", MODEL_VERSION),
|
||||||
new DefaultAppModuleInfo(NeBgpcommType.class, null));
|
new DefaultAppModuleInfo(NeBgpcommType.class, null));
|
||||||
appInfo.put(new DefaultYangModuleId("ne-l3vpn-api", "2014-12-25"),
|
appInfo.put(new DefaultYangModuleId("ne-l3vpn-api", MODEL_VERSION),
|
||||||
new DefaultAppModuleInfo(NeL3VpnApi.class, null));
|
new DefaultAppModuleInfo(NeL3VpnApi.class, null));
|
||||||
appInfo.put(new DefaultYangModuleId("ne-l3vpncomm", "2014-12-25"),
|
appInfo.put(new DefaultYangModuleId("ne-l3vpncomm", MODEL_VERSION),
|
||||||
new DefaultAppModuleInfo(NeL3Vpncomm.class, null));
|
new DefaultAppModuleInfo(NeL3Vpncomm.class, null));
|
||||||
appInfo.put(new DefaultYangModuleId("ne-l3vpncomm-type", "2014-12-25"),
|
appInfo.put(new DefaultYangModuleId("ne-l3vpncomm-type", MODEL_VERSION),
|
||||||
new DefaultAppModuleInfo(NeL3VpncommType.class, null));
|
new DefaultAppModuleInfo(NeL3VpncommType.class, null));
|
||||||
appInfo.put(new DefaultYangModuleId("ne-tnlm", "2014-12-25"),
|
appInfo.put(new DefaultYangModuleId("ne-tnlm", MODEL_VERSION),
|
||||||
new DefaultAppModuleInfo(NeTnlm.class, null));
|
new DefaultAppModuleInfo(NeTnlm.class, null));
|
||||||
appInfo.put(new DefaultYangModuleId("ne-tnlm-type", "2014-12-25"),
|
appInfo.put(new DefaultYangModuleId("ne-tnlm-type", MODEL_VERSION),
|
||||||
new DefaultAppModuleInfo(NeTnlmType.class, null));
|
new DefaultAppModuleInfo(NeTnlmType.class, null));
|
||||||
return ImmutableMap.copyOf(appInfo);
|
return ImmutableMap.copyOf(appInfo);
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user