From acdf1fd34f18160ff889179c690b24da04943101 Mon Sep 17 00:00:00 2001 From: burdziak Date: Fri, 12 Apr 2019 11:43:41 +0200 Subject: Fix sonar issue in MusicCleanUp Change-Id: Ibe813d427d5e83d3e1d0e117fb4c5f73aa9345cf Issue-ID: PORTAL-523 Signed-off-by: burdziak --- .../src/main/java/org/onap/portalapp/music/util/MusicCleanUp.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ecomp-sdk/epsdk-music/src/main/java/org/onap/portalapp/music/util/MusicCleanUp.java b/ecomp-sdk/epsdk-music/src/main/java/org/onap/portalapp/music/util/MusicCleanUp.java index aab04eaf..72ce5f67 100644 --- a/ecomp-sdk/epsdk-music/src/main/java/org/onap/portalapp/music/util/MusicCleanUp.java +++ b/ecomp-sdk/epsdk-music/src/main/java/org/onap/portalapp/music/util/MusicCleanUp.java @@ -42,12 +42,13 @@ import java.util.Date; public class MusicCleanUp { private static volatile MusicCleanUp musicCleanUp = new MusicCleanUp(); + + private Date lastCleanUpTime = new Date(); + // private constructor restricted to this class itself private MusicCleanUp(){ } - private Date lastCleanUpTime = new Date(); - public static MusicCleanUp getInstance(){ return musicCleanUp; } -- cgit 1.2.3-korg