Microsoft
Software
Hardware
Network
Question : Conforming to new Java syntax
I am working on some code that looks like this...
1) Map<Integer, ColumnData> columnValues = data.getColumnValues();
2) Iterator it = columnValues.entrySet().it
erator();
3) while (it.hasNext()) {
4) Map.Entry<Integer, ColumnData> value = (Map.Entry)it.next();
.........
I am getting the following warnings
on line 2) Iterator is a raw type. References to generic type Iterator<E> should be parameterized
on line 4) Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized
the code works fine....I just want to clean up the warnings....how do I do that and conform to Java syntax.
Answer : Conforming to new Java syntax
Iterator:
1:
Iterator<Map.Entry<Integer, ColumnnData>> it = columnValues.entrySet().iterator();
Random Solutions
Slow upload behind ISA Server 2004
Joining MacOS 10.6 to a windows 2008 domain
Home drive showing root share instead of user share
Hide/remove "administrative tools" from Start up menu
Move Mailbox from Exchange 2003 to Exchange 2010
How to turn off iTunes/Mac alarm
TSQL Scalar Function using select inside the function & excluding date
Lotus Notes 5.12 will not launch Office 2007 files .docx
Moving WSUS 3.0 from Server 2003 R2 - Server 2008 R2
Best database for a manufacturing warehouse