[
https://issues.apache.org/jira/browse/JENA-2004?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andy Seaborne resolved JENA-2004.
---------------------------------
Fix Version/s: Jena 4.0.0
Assignee: Andy Seaborne
Resolution: Done
> Implement functionality currently provided by Txn class directly in
> Transactional. Deprecate Txn class.
> --------------------------------------------------------------------------------------------------------
>
> Key: JENA-2004
> URL: https://issues.apache.org/jira/browse/JENA-2004
> Project: Apache Jena
> Issue Type: Improvement
> Environment: The default methods feature introduced in Java 8 allows
> us to implement the functionality currently provided by Txn class directly in
> Transactional.
> That would allow us instead of writing
> {code:java}
> import org.apache.jena.system.Txn;
> . . .
> Txn.executeRead(ds, ()-> {
> . . .
> });
> {code}
> write just
> {code:java}
> ds.executeRead(()-> {
> . . .
> });
> {code}
> Reporter: Pavel Mikhailovskii
> Assignee: Andy Seaborne
> Priority: Minor
> Fix For: Jena 4.0.0
>
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)