diff options
author | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2015-06-05 10:44:30 +0200 |
---|---|---|
committer | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2015-06-05 10:44:30 +0200 |
commit | 2029453c4933b478ff50d50d31e99d225a783ff6 (patch) | |
tree | b0a2aa85a3e3aafd612138c3035a9de7d2af598e /sonar-plugin-api | |
parent | 58690404a2fcb8de9c0902bb1919dad2004b4da2 (diff) | |
download | sonarqube-2029453c4933b478ff50d50d31e99d225a783ff6.tar.gz sonarqube-2029453c4933b478ff50d50d31e99d225a783ff6.zip |
fix bunch a 'Make 'XXX' a static method' issues
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/database/model/Snapshot.java | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/database/model/Snapshot.java b/sonar-plugin-api/src/main/java/org/sonar/api/database/model/Snapshot.java index cd22585f357..063e927ecc2 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/database/model/Snapshot.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/database/model/Snapshot.java @@ -19,6 +19,11 @@ */ package org.sonar.api.database.model; +import java.io.Serializable; +import java.util.Date; +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.Table; import org.apache.commons.lang.builder.EqualsBuilder; import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.commons.lang.builder.ReflectionToStringBuilder; @@ -26,13 +31,6 @@ import org.apache.commons.lang.builder.ToStringStyle; import org.sonar.api.database.BaseIdentifiable; import org.sonar.api.database.DatabaseSession; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Table; - -import java.io.Serializable; -import java.util.Date; - import static org.sonar.api.utils.DateUtils.dateToLong; import static org.sonar.api.utils.DateUtils.longToDate; @@ -795,7 +793,7 @@ public class Snapshot extends BaseIdentifiable<Snapshot> implements Serializable } } - private IndexOutOfBoundsException newPeriodIndexOutOfBoundsException(String field) { + private static IndexOutOfBoundsException newPeriodIndexOutOfBoundsException(String field) { return new IndexOutOfBoundsException(String.format("Index of Snapshot.%s is between 1 and 5", field)); } |