[PATCH] jvyaml: Object[] cast to stop RepresenterImpl java5 warning
Zenaan Harkness <[email protected]>
| Newsgroups | gmane.text.yaml.general |
|---|---|
| Message-ID | <[email protected]> |
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: www.SoulSound.net -- Free Australia: www.UPMART.org
Please respect the confidentiality of this email as sensibly warranted.
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace