]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4383 Revert modification in IssueMapper
authorJulien Lancelot <julien.lancelot@gmail.com>
Thu, 13 Jun 2013 09:18:35 +0000 (11:18 +0200)
committerJulien Lancelot <julien.lancelot@gmail.com>
Thu, 13 Jun 2013 09:18:35 +0000 (11:18 +0200)
sonar-core/src/main/resources/org/sonar/core/issue/db/IssueMapper.xml

index 11d5244da845c40f14e497b215bb22eb51841bc6..61246d6c239cdda5ca0cf12013a3d053cf88ebc4 100644 (file)
       r.plugin_name=#{rule.repository} and r.plugin_rule_key=#{rule.rule}</foreach>)
     </if>
     <where>
-      <if test="query.issueKeys() != null and query.issueKeys().size() > 0">
+      <if test="query.issueKeys() != null">
         and i.kee in
         <foreach item="key" index="index" collection="query.issueKeys()" open="(" separator="," close=")">#{key}
         </foreach>
       </if>
-      <if test="query.severities() != null and query.severities().size() > 0">
+      <if test="query.severities() != null">
         and i.severity in
         <foreach item="severity" index="index" collection="query.severities()" open="(" separator="," close=")">#{severity}
         </foreach>
       </if>
-      <if test="query.statuses() != null and query.statuses().size() > 0">
+      <if test="query.statuses() != null">
         and i.status in
         <foreach item="status" index="index" collection="query.statuses()" open="(" separator="," close=")">#{status}
         </foreach>
       </if>
-      <if test="query.resolutions() != null and query.resolutions().size() > 0">
+      <if test="query.resolutions() != null">
         and i.resolution in
         <foreach item="resolution" index="index" collection="query.resolutions()" open="(" separator="," close=")">#{resolution}
         </foreach>
           and i.resolution is null
         </if>
       </if>
-      <if test="query.reporters() != null and query.reporters().size() > 0">
+      <if test="query.reporters() != null">
         and i.reporter in
         <foreach item="reporter" index="index" collection="query.reporters()" open="(" separator="," close=")">#{reporter}
         </foreach>
       </if>
-      <if test="query.assignees() != null and query.assignees().size() > 0">
+      <if test="query.assignees() != null">
         and i.assignee in
         <foreach item="assignee" index="index" collection="query.assignees()" open="(" separator="," close=")">#{assignee}
         </foreach>
           and i.action_plan_key is null
         </if>
       </if>
-      <if test="query.actionPlans() != null and query.actionPlans().size() > 0">
+      <if test="query.actionPlans() != null">
         and i.action_plan_key in
         <foreach item="action_plan" index="index" collection="query.actionPlans()" open="(" separator="," close=")">
           #{action_plan}