Skip to main content
summaryrefslogtreecommitdiffstats
path: root/jaxb
diff options
context:
space:
mode:
authorpfullbright2012-04-11 16:38:12 -0400
committerpfullbright2012-04-11 16:38:12 -0400
commit477d7a016d155f3160350385eae2fc3f63fed66c (patch)
tree43fd3bd95b8e40ed9a0efcdbb29f5391e25a5d4e /jaxb
parente689724a74c3819843dc47159316d8faed7be8ac (diff)
downloadwebtools.dali-477d7a016d155f3160350385eae2fc3f63fed66c.tar.gz
webtools.dali-477d7a016d155f3160350385eae2fc3f63fed66c.tar.xz
webtools.dali-477d7a016d155f3160350385eae2fc3f63fed66c.zip
loosened up to allow for OutputStreams
Diffstat (limited to 'jaxb')
-rw-r--r--jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/resource/AbstractJaxbFileResourceModel.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/resource/AbstractJaxbFileResourceModel.java b/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/resource/AbstractJaxbFileResourceModel.java
index 82237263e9..f9873364c4 100644
--- a/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/resource/AbstractJaxbFileResourceModel.java
+++ b/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/resource/AbstractJaxbFileResourceModel.java
@@ -10,6 +10,7 @@
package org.eclipse.jpt.jaxb.core.internal.resource;
import java.io.BufferedInputStream;
+import java.io.Closeable;
import java.io.IOException;
import java.io.InputStream;
import org.eclipse.core.resources.IFile;
@@ -91,7 +92,7 @@ public abstract class AbstractJaxbFileResourceModel<S>
*/
protected abstract void load(InputStream stream) throws IOException;
- protected void closeStream(InputStream stream) {
+ protected void closeStream(Closeable stream) {
try {
if (stream != null) {
stream.close();

Back to the top