summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-music
diff options
context:
space:
mode:
authorLorraine Welch <lb2391@att.com>2020-05-24 13:50:16 +0000
committerGerrit Code Review <gerrit@onap.org>2020-05-24 13:50:16 +0000
commite67bffe06d008763083ab6445d5204157f8555e2 (patch)
tree15da9baf20192f0631c95c2e05ed2473be6f5699 /ecomp-sdk/epsdk-music
parent798d7f5247d638c44a8aca8057a60d3316241f63 (diff)
parent91bd8f3aff7086af5d8f15046532f4499079d6d8 (diff)
Merge "reduced code smells in some components"
Diffstat (limited to 'ecomp-sdk/epsdk-music')
-rw-r--r--ecomp-sdk/epsdk-music/src/main/java/org/onap/portalapp/music/conf/MusicSession.java3
-rw-r--r--ecomp-sdk/epsdk-music/src/main/java/org/onap/portalapp/music/conf/MusicSessionRepository.java2
2 files changed, 1 insertions, 4 deletions
diff --git a/ecomp-sdk/epsdk-music/src/main/java/org/onap/portalapp/music/conf/MusicSession.java b/ecomp-sdk/epsdk-music/src/main/java/org/onap/portalapp/music/conf/MusicSession.java
index ca60d398..ee585a79 100644
--- a/ecomp-sdk/epsdk-music/src/main/java/org/onap/portalapp/music/conf/MusicSession.java
+++ b/ecomp-sdk/epsdk-music/src/main/java/org/onap/portalapp/music/conf/MusicSession.java
@@ -38,7 +38,7 @@
/*
* Copyright 2014-2017 the original author or authors.
*
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
@@ -338,7 +338,6 @@ public final class MusicSession implements Session, Serializable {
* @param creationTime the time that this {@link Session} was created.
*/
public void setCreationTime(Instant creationTime) {
- //MusicService musicService = new MusicService();
this.creationTime = creationTime;
try{
MusicService.setAttribute(MusicProperties.CREATION_TIME, creationTime, this.id);
diff --git a/ecomp-sdk/epsdk-music/src/main/java/org/onap/portalapp/music/conf/MusicSessionRepository.java b/ecomp-sdk/epsdk-music/src/main/java/org/onap/portalapp/music/conf/MusicSessionRepository.java
index f2f8fee5..54750644 100644
--- a/ecomp-sdk/epsdk-music/src/main/java/org/onap/portalapp/music/conf/MusicSessionRepository.java
+++ b/ecomp-sdk/epsdk-music/src/main/java/org/onap/portalapp/music/conf/MusicSessionRepository.java
@@ -100,7 +100,6 @@ public class MusicSessionRepository implements SessionRepository<MusicSession>
this.sessionHandler.remove(session.getOriginalId());
session.setOriginalId(session.getId());
}
- // this.sessionHandler.put(session.getId(), new MusicSession(session));
this.sessionHandler.put(session.getId(), new MusicSession(session));
}
@@ -114,7 +113,6 @@ public class MusicSessionRepository implements SessionRepository<MusicSession>
deleteById(saved.getId());
return null;
}
- //return sessionHandler.session(saved);
return new MusicSession(saved);
}