git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'develop' into releases/Release_2_11_1_Branch
[jalview.git]
/
src
/
jalview
/
ws
/
rest
/
HttpResultSet.java
diff --git
a/src/jalview/ws/rest/HttpResultSet.java
b/src/jalview/ws/rest/HttpResultSet.java
index
4d5a2aa
..
5bfe3b5
100644
(file)
--- a/
src/jalview/ws/rest/HttpResultSet.java
+++ b/
src/jalview/ws/rest/HttpResultSet.java
@@
-50,7
+50,7
@@
import org.apache.james.mime4j.parser.MimeStreamParser;
*
*/
*
*/
-public class HttpResultSet extends FileParse
+public class HttpResultSet extends FileParse implements AutoCloseable
{
private HttpRequestBase cachedRequest;
{
private HttpRequestBase cachedRequest;
@@
-89,7
+89,7
@@
public class HttpResultSet extends FileParse
*/
public List<DataProvider> createResultDataProviders()
{
*/
public List<DataProvider> createResultDataProviders()
{
- List<DataProvider> dp = new ArrayList<DataProvider>();
+ List<DataProvider> dp = new ArrayList<>();
for (JvDataType type : restJob.rsd.getResultDataTypes())
{
dp.add(new SimpleDataProvider(type, this, null));
for (JvDataType type : restJob.rsd.getResultDataTypes())
{
dp.add(new SimpleDataProvider(type, this, null));
@@
-106,7
+106,7
@@
public class HttpResultSet extends FileParse
*/
public Object[] parseResultSet() throws Exception, Error
{
*/
public Object[] parseResultSet() throws Exception, Error
{
- List<DataProvider> dp = new ArrayList<DataProvider>();
+ List<DataProvider> dp = new ArrayList<>();
Object[] results = null;
if (en == null)
Object[] results = null;
if (en == null)
@@
-200,7
+200,7
@@
public class HttpResultSet extends FileParse
}
@Override
}
@Override
- protected void finalize() throws Throwable
+ public void close()
{
dataIn = null;
cachedRequest = null;
{
dataIn = null;
cachedRequest = null;
@@
-215,7
+215,8
@@
public class HttpResultSet extends FileParse
} catch (Error ex)
{
}
} catch (Error ex)
{
}
- super.finalize();
+ // no finalize for FileParse
+ // super.close();
}
/**
}
/**