Code Review
/
portal
/
ric-dashboard.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Improve coverage and silence sonar warnings
[portal/ric-dashboard.git]
/
webapp-backend
/
src
/
main
/
java
/
org
/
oransc
/
ric
/
portal
/
dashboard
/
model
/
AppTransport.java
diff --git
a/webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/model/AppTransport.java
b/webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/model/AppTransport.java
index
f4312ca
..
abe026b
100644
(file)
--- a/
webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/model/AppTransport.java
+++ b/
webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/model/AppTransport.java
@@
-2,7
+2,7
@@
* ========================LICENSE_START=================================
* O-RAN-SC
* %%
* ========================LICENSE_START=================================
* O-RAN-SC
* %%
- * Copyright (C) 2019 AT&T Intellectual Property
and Nokia
+ * Copyright (C) 2019 AT&T Intellectual Property
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-21,9
+21,8
@@
package org.oransc.ric.portal.dashboard.model;
/**
package org.oransc.ric.portal.dashboard.model;
/**
- * Trivial model to transport available application from the App manager. I
- * expect that system will soon add additional attributes. This allows coding to
- * a structure rather than a scalar.
+ * Trivial model to transport available application details from the App
+ * manager.
*/
public class AppTransport implements IDashboardResponse {
*/
public class AppTransport implements IDashboardResponse {
@@
-40,11
+39,11
@@
public class AppTransport implements IDashboardResponse {
/**
* Builds an object with the specified value.
*
/**
* Builds an object with the specified value.
*
- * @param
s
- *
value to transport.
+ * @param
n
+ *
Name to transport
*/
*/
- public AppTransport(String
s
) {
- this.name =
s
;
+ public AppTransport(String
n
) {
+ this.name =
n
;
}
public String getName() {
}
public String getName() {
@@
-63,4
+62,9
@@
public class AppTransport implements IDashboardResponse {
this.version = version;
}
this.version = version;
}
+ @Override
+ public String toString() {
+ return this.getClass().getName() + "[name=" + getName() + ", version=" + getVersion() + "]";
+ }
+
}
}