fix deprecated warnings (erasure => runtimeClass)
Merge pull request #13 from jozic/fix-deprecated-warnings

fix deprecated warnings (erasure => runtimeClass)