summaryrefslogtreecommitdiffstats
path: root/src/contrib
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2013-08-14 08:25:51 +0000
committerDominik Stadler <centic@apache.org>2013-08-14 08:25:51 +0000
commit607521c2dfa32a783075bb9c9284e092dcdacdb6 (patch)
tree8ed925b1e3a57d3c109d5e45cec32b5ad64b5cd6 /src/contrib
parent48b5c3623c7e9443cfc5d0c5fb1a35f417c267c6 (diff)
downloadpoi-607521c2dfa32a783075bb9c9284e092dcdacdb6.tar.gz
poi-607521c2dfa32a783075bb9c9284e092dcdacdb6.zip
Various small Eclipse warning fixes,
also ensure close() of stream in Ant-Task, although WorkbookFactory usually takes care of this, however in exception-cases it could be missing git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1513764 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/contrib')
-rw-r--r--src/contrib/poi-ruby/java/org/apache/poi/RubyOutputStream.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/contrib/poi-ruby/java/org/apache/poi/RubyOutputStream.java b/src/contrib/poi-ruby/java/org/apache/poi/RubyOutputStream.java
index 78861e3af6..e23a0a7d39 100644
--- a/src/contrib/poi-ruby/java/org/apache/poi/RubyOutputStream.java
+++ b/src/contrib/poi-ruby/java/org/apache/poi/RubyOutputStream.java
@@ -29,7 +29,7 @@ import java.io.IOException;
public class RubyOutputStream extends OutputStream {
- //pointer to native ruby VALUE
+ //pointer to native ruby VALUE
protected long rubyIO;
public RubyOutputStream (long rubyIO)
@@ -38,7 +38,8 @@ public class RubyOutputStream extends OutputStream {
// incRef();
}
- protected void finalize()
+ @Override
+ protected void finalize()
throws Throwable
{
// decRef();
@@ -47,13 +48,15 @@ public class RubyOutputStream extends OutputStream {
// protected native void incRef();
// protected native void decRef();
- public native void close()
+ @Override
+ public native void close()
throws IOException;
/* (non-Javadoc)
* @see java.io.OutputStream#write(int)
*/
+ @Override
public native void write(int arg0) throws IOException;
}