diff options
author | Indrijeet kumar <indriku1@in.ibm.com> | 2020-05-21 11:23:08 +0530 |
---|---|---|
committer | Indrijeet kumar <indriku1@in.ibm.com> | 2020-05-21 11:23:14 +0530 |
commit | 91bd8f3aff7086af5d8f15046532f4499079d6d8 (patch) | |
tree | 1eb70b30ed62ca3b2c861e5612d6517a116b4f8d /ecomp-sdk/epsdk-music/src | |
parent | 2053ff0eaa2e4d1efcdb56a953af7c631757369e (diff) |
reduced code smells in some components
reduced code smells in some components
Issue-ID: PORTAL-813
Change-Id: I9a003165d260fd332e2e5199525412aeeb9fff05
Signed-off-by: Indrijeet Kumar <indriku1@in.ibm.com>
Diffstat (limited to 'ecomp-sdk/epsdk-music/src')
-rw-r--r-- | ecomp-sdk/epsdk-music/src/main/java/org/onap/portalapp/music/conf/MusicSession.java | 3 | ||||
-rw-r--r-- | ecomp-sdk/epsdk-music/src/main/java/org/onap/portalapp/music/conf/MusicSessionRepository.java | 2 |
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); } |