tubelius

How to do this right?

Jun 28th, 2013
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. public Integer QtyFromISMap(Iterator S) {
  2. Integer Qty = 0;
  3. while (S.hasNext()) {
  4. Map.Entry pairs = (Map.Entry)S.next();
  5. ItemStack IS = (ItemStack) pairs.getValue();
  6. Qty += IS.getAmount();
  7. S.remove();
  8. }
  9. return Qty;
  10. }
  11.  
  12. Description Resource Path Location Type
  13. Iterator is a raw type. References to generic type Iterator<E> should be parameterized AutoPrice.java /AutoPrice/src/me/tubelius/autoprice line 90 Java Problem
  14. Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized AutoPrice.java /AutoPrice/src/me/tubelius/autoprice line 93 Java Problem
  15. Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized AutoPrice.java /AutoPrice/src/me/tubelius/autoprice line 93 Java Problem
  16. HashMap is a raw type. References to generic type HashMap<K,V> should be parameterized AutoPrice.java /AutoPrice/src/me/tubelius/autoprice line 100 Java Problem
  17. Syntax error, insert "; ; ) Statement" to complete ForStatement AutoPrice.java /AutoPrice/src/me/tubelius/autoprice line 103 Java Problem
  18. Syntax error, insert ";" to complete Statement AutoPrice.java /AutoPrice/src/me/tubelius/autoprice line 102 Java Problem
  19. Syntax error on token ":", ; expected AutoPrice.java /AutoPrice/src/me/tubelius/autoprice line 102 Java Problem
Advertisement
Add Comment
Please, Sign In to add comment