Archived

This forum has been archived. Please start a new discussion on GitHub.

Generic version of Java evictor servant locator

There was an unchecked cast warning in the code in IceJ-3.2.0-java5/demo/book/evictor so I decided to convert the code to use Java generics.

Please find attached the two files. It would be nice to include this in the Ice distribution, along with the raw type version, say in two different directories, so people can decide which one they want.

BTW, the warning I got was:
EvictorBase.java:70: warning: [unchecked] unchecked call to put(K,V) as a member of the raw type java.util.Map
    [javac]             _map.put(c.id, ec.entry);

Regards,
Blair