#vulnerable code 
                                public static RankManager getInstance() {
        if (instance == null) {
            new RankManager();
        }
        return instance;
    } 
                            #location 3 
                            #vulnerability type THREAD_SAFETY_VIOLATION
#fixed code
                                public static RankManager getInstance() {
        return INSTANCE;
    }