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

            Assignee:
            shinn.lok Shinn Lok
            Reporter:
            rvdev Herve DEVOS (Inactive)
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              7 years, 19 weeks ago

                Packages

                Version Package
                6.2.0 CE B3