Black lines and spots in vision.

So for years and years I've had black lines and spots in my vision, they move when I move my eyes, they're there sometimes and sometimes not. They're is only a few but noticeable. What are they? My eye doctor said it's probably floaters. He said as long as I don't see shadows then I'm fine. Not sure what he meant by shadows though. Anyone else have these?