Permalink
Browse files

Merge pull request #207 from cast-/core-1.5.x

fixed resource reference in JazzySpellChecker
  • Loading branch information...
2 parents 306d615 + 2bb6fb1 commit 195cba9d0f6fb3186b535b63de0e6b525fad0026 @martin-g martin-g committed Apr 5, 2013
@@ -34,7 +34,6 @@
import org.apache.wicket.request.cycle.RequestCycle;
import org.apache.wicket.request.http.WebResponse;
import org.apache.wicket.request.resource.AbstractResource;
-import org.apache.wicket.util.resource.IResourceStreamWriter;
import org.apache.wicket.util.resource.StringBufferResourceStream;
import org.apache.wicket.util.time.Time;
import org.json.JSONArray;
@@ -123,15 +122,7 @@ protected ResourceResponse newResourceResponse(Attributes attributes)
@Override
public void writeData(Attributes attributes)
{
- ((IResourceStreamWriter)resourceStream).write(attributes.getResponse());
- try
- {
- resourceStream.close();
- }
- catch (IOException e)
- {
- throw new RuntimeException(e);
- }
+ attributes.getResponse().write(resourceStream.asString());
}
});
return resourceResponse;

0 comments on commit 195cba9

Please sign in to comment.