diff options
author | Mark Spruiell <mes@zeroc.com> | 2008-01-30 06:15:20 -0800 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2008-01-30 06:15:20 -0800 |
commit | f3c3029ff651d294a1a0df0e79e72771307310fc (patch) | |
tree | 1f061a96f5f46051b6daf45ccbdb63ebd2cdd746 /java/src/IceInternal/DictionaryPatcher.java | |
parent | Fixed and moved fixVersion.py/fixCopyright.py (diff) | |
download | ice-f3c3029ff651d294a1a0df0e79e72771307310fc.tar.bz2 ice-f3c3029ff651d294a1a0df0e79e72771307310fc.tar.xz ice-f3c3029ff651d294a1a0df0e79e72771307310fc.zip |
using Java5 types in Ice core; general cleanup
Diffstat (limited to 'java/src/IceInternal/DictionaryPatcher.java')
-rw-r--r-- | java/src/IceInternal/DictionaryPatcher.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/java/src/IceInternal/DictionaryPatcher.java b/java/src/IceInternal/DictionaryPatcher.java index 67367acceca..545d474ca08 100644 --- a/java/src/IceInternal/DictionaryPatcher.java +++ b/java/src/IceInternal/DictionaryPatcher.java @@ -9,10 +9,10 @@ package IceInternal; -public class DictionaryPatcher implements Patcher, Ice.ReadObjectCallback +public class DictionaryPatcher<K, V> implements Patcher, Ice.ReadObjectCallback { public - DictionaryPatcher(java.util.Map dict, Class cls, String type, java.lang.Object key) + DictionaryPatcher(java.util.Map<K, V> dict, Class<V> cls, String type, K key) { _dict = dict; _cls = cls; @@ -35,7 +35,7 @@ public class DictionaryPatcher implements Patcher, Ice.ReadObjectCallback } } - _dict.put(_key, v); + _dict.put(_key, _cls.cast(v)); } public String @@ -50,8 +50,8 @@ public class DictionaryPatcher implements Patcher, Ice.ReadObjectCallback patch(v); } - private java.util.Map _dict; - private Class _cls; + private java.util.Map<K, V> _dict; + private Class<V> _cls; private String _type; - private java.lang.Object _key; + private K _key; } |