Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-2277

Add java5 generics to store#execute methods and callbacks

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4 M1
    • Fix Version/s: 1.4 M2
    • Component/s: Storage
    • Labels:
      None
    • Similar issues:

      Description

      how to use:
      before:

      return (XWikiRCSNodeContent) executeRead(context, bTransaction, new HibernateCallback()
      {
                  public Object doInHibernate(Session session) throws HibernateException
                  {
                      ...
                      return content;
                  }
      });
      

      after:

      return executeRead(context, bTransaction, new HibernateCallback<XWikiRCSNodeContent>()
      {
                  public XWikiRCSNodeContent doInHibernate(Session session) throws HibernateException
                  {
                      ...
                      return content;
                  }
      });
      

      no class casting at all.

        Attachments

          Activity

            People

            • Assignee:
              amelentev Artem Melentev
              Reporter:
              amelentev Artem Melentev
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: