import java.util.Date;

public class CreateMutableCloneResolutionExample {
    Date myDate = new Date();

    public Date getMyDate() {
        return (Date) myDate.clone();
    }
}

import java.util.Date;

public class CreateMutableCloneResolutionExample {
    Date myDate = new Date();

    public Date getMyDate() {
        return myDate == null ? null : (Date) myDate.clone();
    }
}

test fix for quick fix update on mutable date