[
https://issues.apache.org/jira/browse/JENA-2004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17302924#comment-17302924
]
ASF subversion and git services commented on JENA-2004:
-------------------------------------------------------
Commit 523fdf28ff730fb4ebb84cfa935e3ae35177fd29 in jena's branch
refs/heads/main from Andy Seaborne
[ https://gitbox.apache.org/repos/asf?p=jena.git;h=523fdf2 ]
Merge pull request #954 from afs/transactional
JENA-2004: Add application methods to Transactional
> 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
> Priority: Minor
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)