summaryrefslogtreecommitdiff
path: root/java/src/Ice/OptionalObject.java
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2014-08-08 16:09:22 -0230
committerMatthew Newhook <matthew@zeroc.com>2014-08-08 16:09:22 -0230
commit36b0fecf6baca78f86ac16d236ef917d4fb0faff (patch)
treea979f4e822ff1a1a50475a45d4f228aff1353de2 /java/src/Ice/OptionalObject.java
parentICE-5596 add Ice.Default.Timeout property (diff)
downloadice-36b0fecf6baca78f86ac16d236ef917d4fb0faff.tar.bz2
ice-36b0fecf6baca78f86ac16d236ef917d4fb0faff.tar.xz
ice-36b0fecf6baca78f86ac16d236ef917d4fb0faff.zip
Fixed lots of warnings.
Diffstat (limited to 'java/src/Ice/OptionalObject.java')
-rw-r--r--java/src/Ice/OptionalObject.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/java/src/Ice/OptionalObject.java b/java/src/Ice/OptionalObject.java
index 04f85f40584..ef113f68971 100644
--- a/java/src/Ice/OptionalObject.java
+++ b/java/src/Ice/OptionalObject.java
@@ -21,8 +21,9 @@ public class OptionalObject implements ReadObjectCallback, IceInternal.Patcher
* @param cls The formal type required for the unmarshaled object.
* @param type The Slice type ID corresponding to the formal type.
**/
+ @SuppressWarnings("rawtypes")
public
- OptionalObject(Optional opt, Class cls, String type)
+ OptionalObject(Optional opt, Class<?> cls, String type)
{
this.opt = opt;
this.cls = cls;
@@ -34,8 +35,8 @@ public class OptionalObject implements ReadObjectCallback, IceInternal.Patcher
*
* @param v The new object for the optional.
**/
- @Override
@SuppressWarnings("unchecked")
+ @Override
public void
patch(Ice.Object v)
{
@@ -80,12 +81,13 @@ public class OptionalObject implements ReadObjectCallback, IceInternal.Patcher
/**
* The optional object.
**/
+ @SuppressWarnings("rawtypes")
public Optional opt;
/**
* The formal type of the target class.
**/
- public Class cls;
+ public Class<?> cls;
/**
* The Slice type ID of the target class.