Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-40373

Two UserGroupLocalServiceUtil.search have potentially same method signature

Details

    Description

      Two search methods in UserGroupLocalServiceUtil can potentially have same method signature:

      public static java.util.List<com.liferay.portal.model.UserGroup> search(
      long companyId, java.lang.String keywords,
      java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
      int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
      throws com.liferay.portal.kernel.exception.SystemException

      { return getService().search(companyId, keywords, params, start, end, obc); }

      -> Javadoc indicates that keywords and obc can potentially be null.

      public static com.liferay.portal.kernel.search.Hits search(long companyId,
      java.lang.String keywords,
      java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
      int start, int end, com.liferay.portal.kernel.search.Sort sort)
      throws com.liferay.portal.kernel.exception.SystemException

      { return getService().search(companyId, keywords, params, start, end, sort); }

      -> Javadoc indicates that keywords and sort can potentially be null.

      In case that keywords and sort both are null, those two methods have same method signature.

      Attachments

        Activity

          People

            shinn.lok Shinn Lok (Inactive)
            rvdev Herve DEVOS (Inactive)
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              9 years, 37 weeks, 2 days ago

              Packages

                Version Package
                6.2.0 CE B3