Casting type in Java – Type safety: Unchecked cast from Object to Hashtable

java

Problem

How resolve warning: Type safety: Unchecked cast from Object to Hashtable.

Type safety: Unchecked cast from Object to Hashtable at line 23 and 24. Solution alt line 38

[pastacode lang=”java” user=”karol-preiskorn” repos=”java-examples” path_id=”/src/main/java/ultima/HashTable.java” revision=”master” highlight=”23, 24″ lines=”37″ provider=”github”/]

Code

[pastacode lang=”java” user=”karol-preiskorn” repos=”java-examples” path_id=”/src/main/java/ultima/HashTable.java” revision=”master” highlight=”23, 24, 37″ lines=”” provider=”github”/]

 

Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments