|
[Yaml-core] [PATCH] jvyaml: Object[] cast to stop RepresenterImpl
java5 warning
From: Zenaan Harkness <zen@fr...> - 2007-12-20 02:48
|
Hello, here is my first jvYaml patch.
This simply adds a cast of a null, to suppress compile time warning of that
otherwise implicit cast, from recent Java5 (or whichever??).
Regards
Zen
---
src/org/jvyaml/RepresenterImpl.java | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/org/jvyaml/RepresenterImpl.java b/src/org/jvyaml/RepresenterImpl.java
index 2fd4565..331fd1e 100644
--- a/src/org/jvyaml/RepresenterImpl.java
+++ b/src/org/jvyaml/RepresenterImpl.java
@@ -355,7 +355,7 @@ public class RepresenterImpl implements Representer {
}
if(null != pname) {
try {
- values.put(pname, ems[i].invoke(data,null));
+ values.put(pname, ems[i].invoke(data,(Object[])null));
} catch(final Exception exe) {
values.put(pname, null);
}
--
1.5.3.7.1066.g7a4a2e
--
Homepage: http://www.SoulSound.net -- Free Australia: http://www.UPMART.org
Please respect the confidentiality of this email as sensibly warranted.
|
| Thread | Author | Date |
|---|---|---|
| [Yaml-core] [PATCH] jvyaml: Object[] cast to stop RepresenterImpl java5 warning | Zenaan Harkness <zen@fr...> |