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

Add java5 generics to store#execute methods and callbacks

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • 1.4 M2
    • 1.4 M1
    • Storage
    • None

    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

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

            Dates

              Created:
              Updated:
              Resolved: