From: <ni...@us...> - 2012-12-08 18:06:35
|
Revision: 17798 http://jmol.svn.sourceforge.net/jmol/?rev=17798&view=rev Author: nicove Date: 2012-12-08 18:06:13 +0000 (Sat, 08 Dec 2012) Log Message: ----------- Warnings Modified Paths: -------------- trunk/Jmol/src/org/jmol/viewer/PropertyManager.java Modified: trunk/Jmol/src/org/jmol/viewer/PropertyManager.java =================================================================== --- trunk/Jmol/src/org/jmol/viewer/PropertyManager.java 2012-12-08 18:03:27 UTC (rev 17797) +++ trunk/Jmol/src/org/jmol/viewer/PropertyManager.java 2012-12-08 18:06:13 UTC (rev 17798) @@ -482,15 +482,14 @@ info.append("\n getProperty ").append(data[i]); return info.toString(); } - - @SuppressWarnings("unchecked") + static Object getFileInfo(Object objHeader, String type) { - Map ht = new Hashtable(); + Map<String, String> ht = new Hashtable<String, String>(); if (objHeader == null) return ht; boolean haveType = (type != null && type.length() > 0); if (objHeader instanceof Map) { - return (haveType ? ((Map) objHeader).get(type) : objHeader); + return (haveType ? ((Map<?, ?>) objHeader).get(type) : objHeader); } String[] lines = TextFormat.split((String)objHeader, '\n'); String keyLast = ""; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |