import org.apache.commons.lang.builder.ToStringStyle;
import org.sonar.core.resource.SnapshotDto;
+import javax.annotation.Nullable;
+
class MeasureFilterContext {
- private Long userId;
- private SnapshotDto baseSnapshot;
+ private Long userId = null;
+ private SnapshotDto baseSnapshot = null;
private String sql;
private String data;
return userId;
}
- MeasureFilterContext setUserId(Long userId) {
+ MeasureFilterContext setUserId(@Nullable Long userId) {
this.userId = userId;
return this;
}
return baseSnapshot;
}
- MeasureFilterContext setBaseSnapshot(SnapshotDto baseSnapshot) {
+ MeasureFilterContext setBaseSnapshot(@Nullable SnapshotDto baseSnapshot) {
this.baseSnapshot = baseSnapshot;
return this;
}
*/
package org.sonar.core.measure;
+import javax.annotation.Nullable;
+
import java.util.Date;
/**
return userId;
}
- public MeasureFilterDto setUserId(Long userId) {
+ public MeasureFilterDto setUserId(@Nullable Long userId) {
this.userId = userId;
return this;
}
return shared;
}
- public MeasureFilterDto setShared(Boolean shared) {
+ public MeasureFilterDto setShared(@Nullable Boolean shared) {
this.shared = shared;
return this;
}
return description;
}
- public MeasureFilterDto setDescription(String description) {
+ public MeasureFilterDto setDescription(@Nullable String description) {
this.description = description;
return this;
}
# Options :
# :id HTML id of the <tfoot> node
# :colspan number of columns in the table
- # :include_loading_icon adds a hidden loading icon, only if value is true and if the option :id is set as well. The HTML id of the icon
+ # :include_loading_icon add a hidden loading icon, only if value is true and if the option :id is set as well. The HTML id of the generated icon
# is '<id>_loading'
def table_pagination(pagination, options={}, &block)
html = '<tfoot'