diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2013-08-12 17:28:12 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2013-08-12 17:35:25 +0200 |
commit | c139e1846248555fe6096c0291ed2ef2ddbfe01d (patch) | |
tree | 55505366342fb3a795c2f0a9a8b973e79bf5e523 /sonar-plugin-api/src | |
parent | b2b78e6333268b30e8d5825de2ed5d2c5958d7a8 (diff) | |
download | sonarqube-c139e1846248555fe6096c0291ed2ef2ddbfe01d.tar.gz sonarqube-c139e1846248555fe6096c0291ed2ef2ddbfe01d.zip |
SONAR-4563 Use strict comparison for createdAfter in the Issues search engine
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/issue/IssueQuery.java | 14 | ||||
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/issue/RubyIssueService.java | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/issue/IssueQuery.java b/sonar-plugin-api/src/main/java/org/sonar/api/issue/IssueQuery.java index d7ce899c4f8..9826894fc23 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/issue/IssueQuery.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/issue/IssueQuery.java @@ -70,7 +70,7 @@ public class IssueQuery { private final Boolean assigned; private final Boolean planned; private final Boolean resolved; - private final Date createdAtOrAfter; + private final Date createdAt; private final Date createdAfter; private final Date createdBefore; private final String sort; @@ -97,7 +97,7 @@ public class IssueQuery { this.assigned = builder.assigned; this.planned = builder.planned; this.resolved = builder.resolved; - this.createdAtOrAfter = builder.createdAtOrAfter; + this.createdAt = builder.createdAt; this.createdAfter = builder.createdAfter; this.createdBefore = builder.createdBefore; this.sort = builder.sort; @@ -168,8 +168,8 @@ public class IssueQuery { } @CheckForNull - public Date createdAtOrAfter() { - return (createdAtOrAfter == null ? null : new Date(createdAtOrAfter.getTime())); + public Date createdAt() { + return (createdAt == null ? null : new Date(createdAt.getTime())); } @CheckForNull @@ -226,7 +226,7 @@ public class IssueQuery { private Boolean assigned = null; private Boolean planned = null; private Boolean resolved = null; - private Date createdAtOrAfter; + private Date createdAt; private Date createdAfter; private Date createdBefore; private String sort; @@ -315,8 +315,8 @@ public class IssueQuery { return this; } - public Builder createdAtOrAfter(@Nullable Date d) { - this.createdAtOrAfter = (d == null ? null : new Date(d.getTime())); + public Builder createdAt(@Nullable Date d) { + this.createdAt = (d == null ? null : new Date(d.getTime())); return this; } diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/issue/RubyIssueService.java b/sonar-plugin-api/src/main/java/org/sonar/api/issue/RubyIssueService.java index 1afd5e480ee..26bea532feb 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/issue/RubyIssueService.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/issue/RubyIssueService.java @@ -65,7 +65,7 @@ public interface RubyIssueService extends ServerComponent { * <li>'assigned': true to get only assigned issues, false to get only unassigned issues. By default no filtering is done.</li> * <li>'createdAfter': match all the issues created after the given date (strictly). * Both date and datetime ISO formats are supported: 2013-05-18 or 2010-05-18T15:50:45+0100</li> - * <li>'createdAtOrAfter': match all the issues created after the given date (inclusive). + * <li>'createdAt': match all the issues created at the given date (require second precision). * Both date and datetime ISO formats are supported: 2013-05-18 or 2010-05-18T15:50:45+0100</li> * <li>'createdBefore': match all the issues created before the given date (exclusive). * Both date and datetime ISO formats are supported: 2013-05-18 or 2010-05-18T15:50:45+0100</li> |