private String name;
private String email;
+ public GsonUser() {
+ // even if empty constructor is not required for Gson, it is strongly
+ // recommended:
+ // http://stackoverflow.com/a/18645370/229031
+ }
+
public long getId() {
return id;
}
private String[] inputMetricKeys = new String[] {};
@CheckForNull
- private String[] outputMetrics;
+ private String[] outputMetrics = null;
@Override
public Builder setInputMetrics(String... inputMetrics) {
public class BatchReportDirectoryHolderImpl implements MutableBatchReportDirectoryHolder {
- private File directory;
+ private File directory = null;
@Override
public void setDirectory(File newDirectory) {
private static class Node {
private final Map<String, Node> children = new LinkedHashMap<>();
- private ScannerReport.Component reportComponent;
+ private ScannerReport.Component reportComponent = null;
private Map<String, Node> children() {
return children;
public class DisabledComponentsHolderImpl implements MutableDisabledComponentsHolder {
- private Set<String> uuids;
+ private Set<String> uuids = null;
@Override
public Set<String> getUuids() {
*/
public class TreeRootHolderImpl implements MutableTreeRootHolder {
@CheckForNull
- private Map<Integer, Component> componentsByRef;
-
+ private Map<Integer, Component> componentsByRef = null;
@CheckForNull
- private Map<Integer, Component> extendedComponentsByRef;
-
- private int size;
- private Component root;
- private Component extendedTreeRoot;
+ private Map<Integer, Component> extendedComponentsByRef = null;
+ private int size = 0;
+ private Component root = null;
+ private Component extendedTreeRoot = null;
@Override
public boolean isEmpty() {
public class ComputationTempFolderProvider extends ProviderAdapter implements ComponentLifecycle<TempFolder> {
private boolean started = false;
@CheckForNull
- private DefaultTempFolder tempFolder;
+ private DefaultTempFolder tempFolder = null;
public TempFolder provide(ServerFileSystem fs) {
if (this.tempFolder == null) {
import javax.annotation.CheckForNull;
public class NewCodePeriodDto {
- private String uuid;
- private String projectUuid;
- private String branchUuid;
- private NewCodePeriodType type;
- private String value;
- private long updatedAt;
- private long createdAt;
+ private String uuid = null;
+ private String projectUuid = null;
+ private String branchUuid = null;
+ private NewCodePeriodType type = null;
+ private String value = null;
+ private long updatedAt = 0L;
+ private long createdAt = 0L;
public static NewCodePeriodDto defaultInstance() {
return new NewCodePeriodDto().setType(NewCodePeriodType.PREVIOUS_VERSION);
public class RulesDefinitionContext extends RulesDefinition.Context {
private final Map<String, RulesDefinition.Repository> repositoriesByKey = new HashMap<>();
- private String currentPluginKey;
+ private String currentPluginKey = null;
@Override
public RulesDefinition.NewRepository createRepository(String key, String language) {
*/
class Context extends AbstractContext {
private final Map<String, Repository> repositoriesByKey = new HashMap<>();
- private String currentPluginKey;
+ private String currentPluginKey = null;
@Override
public RulesDefinition.NewRepository createRepository(String key, String language) {
private static class InstalledPlugins {
InstalledPlugin[] plugins;
+
+ public InstalledPlugins() {
+ // http://stackoverflow.com/a/18645370/229031
+ }
}
static class InstalledPlugin {
String key;
String hash;
long updatedAt;
+
+ public InstalledPlugin() {
+ // http://stackoverflow.com/a/18645370/229031
+ }
}
private static class Loaded {
static class Report {
Issue[] issues;
+
+ public Report() {
+ // http://stackoverflow.com/a/18645370/229031
+ }
}
static class Issue {
Location primaryLocation;
@Nullable
Location[] secondaryLocations;
+
+ public Issue() {
+ // http://stackoverflow.com/a/18645370/229031
+ }
}
static class Location {
String filePath;
@Nullable
TextRange textRange;
+
+ public Location() {
+ // http://stackoverflow.com/a/18645370/229031
+ }
}
static class TextRange {
Integer endLine;
@Nullable
Integer endColumn;
+
+ public TextRange() {
+ // http://stackoverflow.com/a/18645370/229031
+ }
}
}
private int ps;
+ public WsMetricsResponse() {
+ // http://stackoverflow.com/a/18645370/229031
+ }
+
public int getTotal() {
return total;
}