aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi/POIDataSamples.java
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2013-08-23 10:44:39 +0000
committerDominik Stadler <centic@apache.org>2013-08-23 10:44:39 +0000
commit5a067c6b972cbb2892ba676916622f9f179d220a (patch)
tree26be2b0d01ea33afd55413ccf60efd08023e54a0 /src/testcases/org/apache/poi/POIDataSamples.java
parentcb6ca3554d19f4cef1e7807db50a4cceb935eed8 (diff)
downloadpoi-5a067c6b972cbb2892ba676916622f9f179d220a.tar.gz
poi-5a067c6b972cbb2892ba676916622f9f179d220a.zip
fix some Eclipse warnings, adjust some unit tests slightly
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1516818 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/POIDataSamples.java')
-rw-r--r--src/testcases/org/apache/poi/POIDataSamples.java19
1 files changed, 14 insertions, 5 deletions
diff --git a/src/testcases/org/apache/poi/POIDataSamples.java b/src/testcases/org/apache/poi/POIDataSamples.java
index 6cdf7ce8f5..b335215390 100644
--- a/src/testcases/org/apache/poi/POIDataSamples.java
+++ b/src/testcases/org/apache/poi/POIDataSamples.java
@@ -16,7 +16,12 @@
==================================================================== */
package org.apache.poi;
-import java.io.*;
+import java.io.ByteArrayOutputStream;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileNotFoundException;
+import java.io.IOException;
+import java.io.InputStream;
/**
* Centralises logic for finding/opening sample files
@@ -219,16 +224,20 @@ public final class POIDataSamples {
_is = is;
}
- public int read() throws IOException {
+ @Override
+ public int read() throws IOException {
return _is.read();
}
- public int read(byte[] b, int off, int len) throws IOException {
+ @Override
+ public int read(byte[] b, int off, int len) throws IOException {
return _is.read(b, off, len);
}
- public boolean markSupported() {
+ @Override
+ public boolean markSupported() {
return false;
}
- public void close() throws IOException {
+ @Override
+ public void close() throws IOException {
_is.close();
}
}