aboutsummaryrefslogtreecommitdiffstats
path: root/poi-scratchpad
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2023-08-24 08:53:01 +0000
committerDominik Stadler <centic@apache.org>2023-08-24 08:53:01 +0000
commit29990737157a4af2e2462252a44db665671e2a6e (patch)
tree6c786386001dd094b690e5fa100372f5919fd509 /poi-scratchpad
parentcdb2ba13989badf60d88c75daf69c94ae6ac2e13 (diff)
downloadpoi-29990737157a4af2e2462252a44db665671e2a6e.tar.gz
poi-29990737157a4af2e2462252a44db665671e2a6e.zip
Apply some IDE suggestions, add tests, set unit-test to isolated
Without Isolation, one test did change static settings and thus could cause flaky tests git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911891 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-scratchpad')
-rw-r--r--poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlideShowImpl.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlideShowImpl.java b/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlideShowImpl.java
index 7fa5162a14..9f55214ee5 100644
--- a/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlideShowImpl.java
+++ b/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlideShowImpl.java
@@ -1085,17 +1085,17 @@ public final class HSLFSlideShowImpl extends POIDocument implements Closeable {
int count;
@Override
- public void write(int b) throws IOException {
+ public void write(int b) {
count++;
}
@Override
- public void write(byte[] b) throws IOException {
+ public void write(byte[] b) {
count += b.length;
}
@Override
- public void write(byte[] b, int off, int len) throws IOException {
+ public void write(byte[] b, int off, int len) {
count += len;
}