aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch-protocol/src
diff options
context:
space:
mode:
authorDavid Gageot <david@gageot.net>2015-05-12 10:42:31 +0200
committerDavid Gageot <david@gageot.net>2015-05-12 14:33:41 +0200
commit7d5701e0a327448484ccee968e12ae3d9162d407 (patch)
tree48765dedbd2125480a531d71e30801ee44d8bce9 /sonar-batch-protocol/src
parent4bab89867b0484fa9d21d0d54e6d7687d2b2f5bf (diff)
downloadsonarqube-7d5701e0a327448484ccee968e12ae3d9162d407.tar.gz
sonarqube-7d5701e0a327448484ccee968e12ae3d9162d407.zip
Useless code
Diffstat (limited to 'sonar-batch-protocol/src')
-rw-r--r--sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/output/BatchReport.java114
-rw-r--r--sonar-batch-protocol/src/main/gen-java/org/sonar/server/source/db/FileSourceDb.java26
-rw-r--r--sonar-batch-protocol/src/main/gen-java/org/sonar/server/source/db/FileSourceTestDb.java20
-rw-r--r--sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ActiveRule.java2
-rw-r--r--sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/GlobalRepositories.java4
-rw-r--r--sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ProjectRepositories.java8
6 files changed, 77 insertions, 97 deletions
diff --git a/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/output/BatchReport.java b/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/output/BatchReport.java
index 981a8877125..b3ea11f54a4 100644
--- a/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/output/BatchReport.java
+++ b/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/output/BatchReport.java
@@ -2847,7 +2847,7 @@ public final class BatchReport {
}
case 56: {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
- childRef_ = new java.util.ArrayList<java.lang.Integer>();
+ childRef_ = new java.util.ArrayList<>();
mutable_bitField0_ |= 0x00000040;
}
childRef_.add(input.readInt32());
@@ -2857,7 +2857,7 @@ public final class BatchReport {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) {
- childRef_ = new java.util.ArrayList<java.lang.Integer>();
+ childRef_ = new java.util.ArrayList<>();
mutable_bitField0_ |= 0x00000040;
}
while (input.getBytesUntilLimit() > 0) {
@@ -2879,7 +2879,7 @@ public final class BatchReport {
}
case 82: {
if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
- link_ = new java.util.ArrayList<org.sonar.batch.protocol.output.BatchReport.ComponentLink>();
+ link_ = new java.util.ArrayList<>();
mutable_bitField0_ |= 0x00000080;
}
link_.add(input.readMessage(org.sonar.batch.protocol.output.BatchReport.ComponentLink.PARSER, extensionRegistry));
@@ -2887,7 +2887,7 @@ public final class BatchReport {
}
case 90: {
if (!((mutable_bitField0_ & 0x00004000) == 0x00004000)) {
- event_ = new java.util.ArrayList<org.sonar.batch.protocol.output.BatchReport.Event>();
+ event_ = new java.util.ArrayList<>();
mutable_bitField0_ |= 0x00004000;
}
event_.add(input.readMessage(org.sonar.batch.protocol.output.BatchReport.Event.PARSER, extensionRegistry));
@@ -4336,7 +4336,7 @@ public final class BatchReport {
private java.util.List<java.lang.Integer> childRef_ = java.util.Collections.emptyList();
private void ensureChildRefIsMutable() {
if (!((bitField0_ & 0x00000040) == 0x00000040)) {
- childRef_ = new java.util.ArrayList<java.lang.Integer>(childRef_);
+ childRef_ = new java.util.ArrayList<>(childRef_);
bitField0_ |= 0x00000040;
}
}
@@ -4403,7 +4403,7 @@ public final class BatchReport {
java.util.Collections.emptyList();
private void ensureLinkIsMutable() {
if (!((bitField0_ & 0x00000080) == 0x00000080)) {
- link_ = new java.util.ArrayList<org.sonar.batch.protocol.output.BatchReport.ComponentLink>(link_);
+ link_ = new java.util.ArrayList<>(link_);
bitField0_ |= 0x00000080;
}
}
@@ -4628,8 +4628,7 @@ public final class BatchReport {
org.sonar.batch.protocol.output.BatchReport.ComponentLink, org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder, org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder>
getLinkFieldBuilder() {
if (linkBuilder_ == null) {
- linkBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.sonar.batch.protocol.output.BatchReport.ComponentLink, org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder, org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder>(
+ linkBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<>(
link_,
((bitField0_ & 0x00000080) == 0x00000080),
getParentForChildren(),
@@ -5047,7 +5046,7 @@ public final class BatchReport {
java.util.Collections.emptyList();
private void ensureEventIsMutable() {
if (!((bitField0_ & 0x00004000) == 0x00004000)) {
- event_ = new java.util.ArrayList<org.sonar.batch.protocol.output.BatchReport.Event>(event_);
+ event_ = new java.util.ArrayList<>(event_);
bitField0_ |= 0x00004000;
}
}
@@ -5272,8 +5271,7 @@ public final class BatchReport {
org.sonar.batch.protocol.output.BatchReport.Event, org.sonar.batch.protocol.output.BatchReport.Event.Builder, org.sonar.batch.protocol.output.BatchReport.EventOrBuilder>
getEventFieldBuilder() {
if (eventBuilder_ == null) {
- eventBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.sonar.batch.protocol.output.BatchReport.Event, org.sonar.batch.protocol.output.BatchReport.Event.Builder, org.sonar.batch.protocol.output.BatchReport.EventOrBuilder>(
+ eventBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<>(
event_,
((bitField0_ & 0x00004000) == 0x00004000),
getParentForChildren(),
@@ -7763,7 +7761,7 @@ public final class BatchReport {
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
- measure_ = new java.util.ArrayList<org.sonar.batch.protocol.output.BatchReport.Measure>();
+ measure_ = new java.util.ArrayList<>();
mutable_bitField0_ |= 0x00000002;
}
measure_.add(input.readMessage(org.sonar.batch.protocol.output.BatchReport.Measure.PARSER, extensionRegistry));
@@ -8177,7 +8175,7 @@ public final class BatchReport {
java.util.Collections.emptyList();
private void ensureMeasureIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
- measure_ = new java.util.ArrayList<org.sonar.batch.protocol.output.BatchReport.Measure>(measure_);
+ measure_ = new java.util.ArrayList<>(measure_);
bitField0_ |= 0x00000002;
}
}
@@ -8402,8 +8400,7 @@ public final class BatchReport {
org.sonar.batch.protocol.output.BatchReport.Measure, org.sonar.batch.protocol.output.BatchReport.Measure.Builder, org.sonar.batch.protocol.output.BatchReport.MeasureOrBuilder>
getMeasureFieldBuilder() {
if (measureBuilder_ == null) {
- measureBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.sonar.batch.protocol.output.BatchReport.Measure, org.sonar.batch.protocol.output.BatchReport.Measure.Builder, org.sonar.batch.protocol.output.BatchReport.MeasureOrBuilder>(
+ measureBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<>(
measure_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
@@ -12066,7 +12063,7 @@ public final class BatchReport {
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
- issue_ = new java.util.ArrayList<org.sonar.batch.protocol.output.BatchReport.Issue>();
+ issue_ = new java.util.ArrayList<>();
mutable_bitField0_ |= 0x00000002;
}
issue_.add(input.readMessage(org.sonar.batch.protocol.output.BatchReport.Issue.PARSER, extensionRegistry));
@@ -12559,7 +12556,7 @@ public final class BatchReport {
java.util.Collections.emptyList();
private void ensureIssueIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
- issue_ = new java.util.ArrayList<org.sonar.batch.protocol.output.BatchReport.Issue>(issue_);
+ issue_ = new java.util.ArrayList<>(issue_);
bitField0_ |= 0x00000002;
}
}
@@ -12784,8 +12781,7 @@ public final class BatchReport {
org.sonar.batch.protocol.output.BatchReport.Issue, org.sonar.batch.protocol.output.BatchReport.Issue.Builder, org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder>
getIssueFieldBuilder() {
if (issueBuilder_ == null) {
- issueBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.sonar.batch.protocol.output.BatchReport.Issue, org.sonar.batch.protocol.output.BatchReport.Issue.Builder, org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder>(
+ issueBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<>(
issue_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
@@ -13027,7 +13023,7 @@ public final class BatchReport {
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
- changeset_ = new java.util.ArrayList<org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset>();
+ changeset_ = new java.util.ArrayList<>();
mutable_bitField0_ |= 0x00000002;
}
changeset_.add(input.readMessage(org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.PARSER, extensionRegistry));
@@ -13035,7 +13031,7 @@ public final class BatchReport {
}
case 24: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
- changesetIndexByLine_ = new java.util.ArrayList<java.lang.Integer>();
+ changesetIndexByLine_ = new java.util.ArrayList<>();
mutable_bitField0_ |= 0x00000004;
}
changesetIndexByLine_.add(input.readInt32());
@@ -13045,7 +13041,7 @@ public final class BatchReport {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) {
- changesetIndexByLine_ = new java.util.ArrayList<java.lang.Integer>();
+ changesetIndexByLine_ = new java.util.ArrayList<>();
mutable_bitField0_ |= 0x00000004;
}
while (input.getBytesUntilLimit() > 0) {
@@ -14250,7 +14246,7 @@ public final class BatchReport {
java.util.Collections.emptyList();
private void ensureChangesetIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
- changeset_ = new java.util.ArrayList<org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset>(changeset_);
+ changeset_ = new java.util.ArrayList<>(changeset_);
bitField0_ |= 0x00000002;
}
}
@@ -14475,8 +14471,7 @@ public final class BatchReport {
org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset, org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.Builder, org.sonar.batch.protocol.output.BatchReport.Changesets.ChangesetOrBuilder>
getChangesetFieldBuilder() {
if (changesetBuilder_ == null) {
- changesetBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset, org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.Builder, org.sonar.batch.protocol.output.BatchReport.Changesets.ChangesetOrBuilder>(
+ changesetBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<>(
changeset_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
@@ -14489,7 +14484,7 @@ public final class BatchReport {
private java.util.List<java.lang.Integer> changesetIndexByLine_ = java.util.Collections.emptyList();
private void ensureChangesetIndexByLineIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
- changesetIndexByLine_ = new java.util.ArrayList<java.lang.Integer>(changesetIndexByLine_);
+ changesetIndexByLine_ = new java.util.ArrayList<>(changesetIndexByLine_);
bitField0_ |= 0x00000004;
}
}
@@ -15293,8 +15288,7 @@ public final class BatchReport {
org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder>
getRangeFieldBuilder() {
if (rangeBuilder_ == null) {
- rangeBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder>(
+ rangeBuilder_ = new com.google.protobuf.SingleFieldBuilder<>(
getRange(),
getParentForChildren(),
isClean());
@@ -15534,7 +15528,7 @@ public final class BatchReport {
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
- duplicate_ = new java.util.ArrayList<org.sonar.batch.protocol.output.BatchReport.Duplicate>();
+ duplicate_ = new java.util.ArrayList<>();
mutable_bitField0_ |= 0x00000002;
}
duplicate_.add(input.readMessage(org.sonar.batch.protocol.output.BatchReport.Duplicate.PARSER, extensionRegistry));
@@ -16081,8 +16075,7 @@ public final class BatchReport {
org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder>
getOriginPositionFieldBuilder() {
if (originPositionBuilder_ == null) {
- originPositionBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder>(
+ originPositionBuilder_ = new com.google.protobuf.SingleFieldBuilder<>(
getOriginPosition(),
getParentForChildren(),
isClean());
@@ -16095,7 +16088,7 @@ public final class BatchReport {
java.util.Collections.emptyList();
private void ensureDuplicateIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
- duplicate_ = new java.util.ArrayList<org.sonar.batch.protocol.output.BatchReport.Duplicate>(duplicate_);
+ duplicate_ = new java.util.ArrayList<>(duplicate_);
bitField0_ |= 0x00000002;
}
}
@@ -16320,8 +16313,7 @@ public final class BatchReport {
org.sonar.batch.protocol.output.BatchReport.Duplicate, org.sonar.batch.protocol.output.BatchReport.Duplicate.Builder, org.sonar.batch.protocol.output.BatchReport.DuplicateOrBuilder>
getDuplicateFieldBuilder() {
if (duplicateBuilder_ == null) {
- duplicateBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.sonar.batch.protocol.output.BatchReport.Duplicate, org.sonar.batch.protocol.output.BatchReport.Duplicate.Builder, org.sonar.batch.protocol.output.BatchReport.DuplicateOrBuilder>(
+ duplicateBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<>(
duplicate_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
@@ -16438,7 +16430,7 @@ public final class BatchReport {
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
- duplication_ = new java.util.ArrayList<org.sonar.batch.protocol.output.BatchReport.Duplication>();
+ duplication_ = new java.util.ArrayList<>();
mutable_bitField0_ |= 0x00000002;
}
duplication_.add(input.readMessage(org.sonar.batch.protocol.output.BatchReport.Duplication.PARSER, extensionRegistry));
@@ -16852,7 +16844,7 @@ public final class BatchReport {
java.util.Collections.emptyList();
private void ensureDuplicationIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
- duplication_ = new java.util.ArrayList<org.sonar.batch.protocol.output.BatchReport.Duplication>(duplication_);
+ duplication_ = new java.util.ArrayList<>(duplication_);
bitField0_ |= 0x00000002;
}
}
@@ -17077,8 +17069,7 @@ public final class BatchReport {
org.sonar.batch.protocol.output.BatchReport.Duplication, org.sonar.batch.protocol.output.BatchReport.Duplication.Builder, org.sonar.batch.protocol.output.BatchReport.DuplicationOrBuilder>
getDuplicationFieldBuilder() {
if (duplicationBuilder_ == null) {
- duplicationBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.sonar.batch.protocol.output.BatchReport.Duplication, org.sonar.batch.protocol.output.BatchReport.Duplication.Builder, org.sonar.batch.protocol.output.BatchReport.DuplicationOrBuilder>(
+ duplicationBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<>(
duplication_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
@@ -17962,7 +17953,7 @@ public final class BatchReport {
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
- symbol_ = new java.util.ArrayList<org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol>();
+ symbol_ = new java.util.ArrayList<>();
mutable_bitField0_ |= 0x00000002;
}
symbol_.add(input.readMessage(org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol.PARSER, extensionRegistry));
@@ -18118,7 +18109,7 @@ public final class BatchReport {
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
- reference_ = new java.util.ArrayList<org.sonar.batch.protocol.output.BatchReport.Range>();
+ reference_ = new java.util.ArrayList<>();
mutable_bitField0_ |= 0x00000002;
}
reference_.add(input.readMessage(org.sonar.batch.protocol.output.BatchReport.Range.PARSER, extensionRegistry));
@@ -18617,8 +18608,7 @@ public final class BatchReport {
org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder>
getDeclarationFieldBuilder() {
if (declarationBuilder_ == null) {
- declarationBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder>(
+ declarationBuilder_ = new com.google.protobuf.SingleFieldBuilder<>(
getDeclaration(),
getParentForChildren(),
isClean());
@@ -18631,7 +18621,7 @@ public final class BatchReport {
java.util.Collections.emptyList();
private void ensureReferenceIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
- reference_ = new java.util.ArrayList<org.sonar.batch.protocol.output.BatchReport.Range>(reference_);
+ reference_ = new java.util.ArrayList<>(reference_);
bitField0_ |= 0x00000002;
}
}
@@ -18856,8 +18846,7 @@ public final class BatchReport {
org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder>
getReferenceFieldBuilder() {
if (referenceBuilder_ == null) {
- referenceBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder>(
+ referenceBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<>(
reference_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
@@ -19244,7 +19233,7 @@ public final class BatchReport {
java.util.Collections.emptyList();
private void ensureSymbolIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
- symbol_ = new java.util.ArrayList<org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol>(symbol_);
+ symbol_ = new java.util.ArrayList<>(symbol_);
bitField0_ |= 0x00000002;
}
}
@@ -19469,8 +19458,7 @@ public final class BatchReport {
org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol, org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol.Builder, org.sonar.batch.protocol.output.BatchReport.Symbols.SymbolOrBuilder>
getSymbolFieldBuilder() {
if (symbolBuilder_ == null) {
- symbolBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol, org.sonar.batch.protocol.output.BatchReport.Symbols.Symbol.Builder, org.sonar.batch.protocol.output.BatchReport.Symbols.SymbolOrBuilder>(
+ symbolBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<>(
symbol_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
@@ -21107,8 +21095,7 @@ public final class BatchReport {
org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder>
getRangeFieldBuilder() {
if (rangeBuilder_ == null) {
- rangeBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- org.sonar.batch.protocol.output.BatchReport.Range, org.sonar.batch.protocol.output.BatchReport.Range.Builder, org.sonar.batch.protocol.output.BatchReport.RangeOrBuilder>(
+ rangeBuilder_ = new com.google.protobuf.SingleFieldBuilder<>(
getRange(),
getParentForChildren(),
isClean());
@@ -22220,7 +22207,7 @@ public final class BatchReport {
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
- coveredFile_ = new java.util.ArrayList<org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile>();
+ coveredFile_ = new java.util.ArrayList<>();
mutable_bitField0_ |= 0x00000002;
}
coveredFile_.add(input.readMessage(org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.PARSER, extensionRegistry));
@@ -22353,7 +22340,7 @@ public final class BatchReport {
}
case 16: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
- coveredLine_ = new java.util.ArrayList<java.lang.Integer>();
+ coveredLine_ = new java.util.ArrayList<>();
mutable_bitField0_ |= 0x00000002;
}
coveredLine_.add(input.readInt32());
@@ -22363,7 +22350,7 @@ public final class BatchReport {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) {
- coveredLine_ = new java.util.ArrayList<java.lang.Integer>();
+ coveredLine_ = new java.util.ArrayList<>();
mutable_bitField0_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
@@ -22756,7 +22743,7 @@ public final class BatchReport {
private java.util.List<java.lang.Integer> coveredLine_ = java.util.Collections.emptyList();
private void ensureCoveredLineIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
- coveredLine_ = new java.util.ArrayList<java.lang.Integer>(coveredLine_);
+ coveredLine_ = new java.util.ArrayList<>(coveredLine_);
bitField0_ |= 0x00000002;
}
}
@@ -23269,7 +23256,7 @@ public final class BatchReport {
java.util.Collections.emptyList();
private void ensureCoveredFileIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
- coveredFile_ = new java.util.ArrayList<org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile>(coveredFile_);
+ coveredFile_ = new java.util.ArrayList<>(coveredFile_);
bitField0_ |= 0x00000002;
}
}
@@ -23494,8 +23481,7 @@ public final class BatchReport {
org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.Builder, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFileOrBuilder>
getCoveredFileFieldBuilder() {
if (coveredFileBuilder_ == null) {
- coveredFileBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.Builder, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFileOrBuilder>(
+ coveredFileBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<>(
coveredFile_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
@@ -24073,7 +24059,7 @@ public final class BatchReport {
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
- dep_ = new java.util.ArrayList<org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency>();
+ dep_ = new java.util.ArrayList<>();
mutable_bitField0_ |= 0x00000001;
}
dep_.add(input.readMessage(org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency.PARSER, extensionRegistry));
@@ -24263,7 +24249,7 @@ public final class BatchReport {
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
- child_ = new java.util.ArrayList<org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency>();
+ child_ = new java.util.ArrayList<>();
mutable_bitField0_ |= 0x00000008;
}
child_.add(input.readMessage(org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency.PARSER, extensionRegistry));
@@ -25024,7 +25010,7 @@ public final class BatchReport {
java.util.Collections.emptyList();
private void ensureChildIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
- child_ = new java.util.ArrayList<org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency>(child_);
+ child_ = new java.util.ArrayList<>(child_);
bitField0_ |= 0x00000008;
}
}
@@ -25249,8 +25235,7 @@ public final class BatchReport {
org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency, org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency.Builder, org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependencyOrBuilder>
getChildFieldBuilder() {
if (childBuilder_ == null) {
- childBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency, org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency.Builder, org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependencyOrBuilder>(
+ childBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<>(
child_,
((bitField0_ & 0x00000008) == 0x00000008),
getParentForChildren(),
@@ -25570,7 +25555,7 @@ public final class BatchReport {
java.util.Collections.emptyList();
private void ensureDepIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
- dep_ = new java.util.ArrayList<org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency>(dep_);
+ dep_ = new java.util.ArrayList<>(dep_);
bitField0_ |= 0x00000001;
}
}
@@ -25795,8 +25780,7 @@ public final class BatchReport {
org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency, org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency.Builder, org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependencyOrBuilder>
getDepFieldBuilder() {
if (depBuilder_ == null) {
- depBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency, org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependency.Builder, org.sonar.batch.protocol.output.BatchReport.ModuleDependencies.ModuleDependencyOrBuilder>(
+ depBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<>(
dep_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
diff --git a/sonar-batch-protocol/src/main/gen-java/org/sonar/server/source/db/FileSourceDb.java b/sonar-batch-protocol/src/main/gen-java/org/sonar/server/source/db/FileSourceDb.java
index afc771a998f..5b776ce0b82 100644
--- a/sonar-batch-protocol/src/main/gen-java/org/sonar/server/source/db/FileSourceDb.java
+++ b/sonar-batch-protocol/src/main/gen-java/org/sonar/server/source/db/FileSourceDb.java
@@ -369,7 +369,7 @@ public final class FileSourceDb {
}
case 136: {
if (!((mutable_bitField0_ & 0x00010000) == 0x00010000)) {
- duplication_ = new java.util.ArrayList<java.lang.Integer>();
+ duplication_ = new java.util.ArrayList<>();
mutable_bitField0_ |= 0x00010000;
}
duplication_.add(input.readInt32());
@@ -379,7 +379,7 @@ public final class FileSourceDb {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00010000) == 0x00010000) && input.getBytesUntilLimit() > 0) {
- duplication_ = new java.util.ArrayList<java.lang.Integer>();
+ duplication_ = new java.util.ArrayList<>();
mutable_bitField0_ |= 0x00010000;
}
while (input.getBytesUntilLimit() > 0) {
@@ -2205,7 +2205,7 @@ public final class FileSourceDb {
private java.util.List<java.lang.Integer> duplication_ = java.util.Collections.emptyList();
private void ensureDuplicationIsMutable() {
if (!((bitField0_ & 0x00010000) == 0x00010000)) {
- duplication_ = new java.util.ArrayList<java.lang.Integer>(duplication_);
+ duplication_ = new java.util.ArrayList<>(duplication_);
bitField0_ |= 0x00010000;
}
}
@@ -2361,7 +2361,7 @@ public final class FileSourceDb {
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
- lines_ = new java.util.ArrayList<org.sonar.server.source.db.FileSourceDb.Line>();
+ lines_ = new java.util.ArrayList<>();
mutable_bitField0_ |= 0x00000001;
}
lines_.add(input.readMessage(org.sonar.server.source.db.FileSourceDb.Line.PARSER, extensionRegistry));
@@ -2708,7 +2708,7 @@ public final class FileSourceDb {
java.util.Collections.emptyList();
private void ensureLinesIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
- lines_ = new java.util.ArrayList<org.sonar.server.source.db.FileSourceDb.Line>(lines_);
+ lines_ = new java.util.ArrayList<>(lines_);
bitField0_ |= 0x00000001;
}
}
@@ -2933,8 +2933,7 @@ public final class FileSourceDb {
org.sonar.server.source.db.FileSourceDb.Line, org.sonar.server.source.db.FileSourceDb.Line.Builder, org.sonar.server.source.db.FileSourceDb.LineOrBuilder>
getLinesFieldBuilder() {
if (linesBuilder_ == null) {
- linesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.sonar.server.source.db.FileSourceDb.Line, org.sonar.server.source.db.FileSourceDb.Line.Builder, org.sonar.server.source.db.FileSourceDb.LineOrBuilder>(
+ linesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<>(
lines_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
@@ -3151,7 +3150,7 @@ public final class FileSourceDb {
}
case 58: {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
- coveredFile_ = new java.util.ArrayList<org.sonar.server.source.db.FileSourceDb.Test.CoveredFile>();
+ coveredFile_ = new java.util.ArrayList<>();
mutable_bitField0_ |= 0x00000040;
}
coveredFile_.add(input.readMessage(org.sonar.server.source.db.FileSourceDb.Test.CoveredFile.PARSER, extensionRegistry));
@@ -3390,7 +3389,7 @@ public final class FileSourceDb {
}
case 16: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
- coveredLine_ = new java.util.ArrayList<java.lang.Integer>();
+ coveredLine_ = new java.util.ArrayList<>();
mutable_bitField0_ |= 0x00000002;
}
coveredLine_.add(input.readInt32());
@@ -3400,7 +3399,7 @@ public final class FileSourceDb {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) {
- coveredLine_ = new java.util.ArrayList<java.lang.Integer>();
+ coveredLine_ = new java.util.ArrayList<>();
mutable_bitField0_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
@@ -3866,7 +3865,7 @@ public final class FileSourceDb {
private java.util.List<java.lang.Integer> coveredLine_ = java.util.Collections.emptyList();
private void ensureCoveredLineIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
- coveredLine_ = new java.util.ArrayList<java.lang.Integer>(coveredLine_);
+ coveredLine_ = new java.util.ArrayList<>(coveredLine_);
bitField0_ |= 0x00000002;
}
}
@@ -4921,7 +4920,7 @@ public final class FileSourceDb {
java.util.Collections.emptyList();
private void ensureCoveredFileIsMutable() {
if (!((bitField0_ & 0x00000040) == 0x00000040)) {
- coveredFile_ = new java.util.ArrayList<org.sonar.server.source.db.FileSourceDb.Test.CoveredFile>(coveredFile_);
+ coveredFile_ = new java.util.ArrayList<>(coveredFile_);
bitField0_ |= 0x00000040;
}
}
@@ -5146,8 +5145,7 @@ public final class FileSourceDb {
org.sonar.server.source.db.FileSourceDb.Test.CoveredFile, org.sonar.server.source.db.FileSourceDb.Test.CoveredFile.Builder, org.sonar.server.source.db.FileSourceDb.Test.CoveredFileOrBuilder>
getCoveredFileFieldBuilder() {
if (coveredFileBuilder_ == null) {
- coveredFileBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.sonar.server.source.db.FileSourceDb.Test.CoveredFile, org.sonar.server.source.db.FileSourceDb.Test.CoveredFile.Builder, org.sonar.server.source.db.FileSourceDb.Test.CoveredFileOrBuilder>(
+ coveredFileBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<>(
coveredFile_,
((bitField0_ & 0x00000040) == 0x00000040),
getParentForChildren(),
diff --git a/sonar-batch-protocol/src/main/gen-java/org/sonar/server/source/db/FileSourceTestDb.java b/sonar-batch-protocol/src/main/gen-java/org/sonar/server/source/db/FileSourceTestDb.java
index e03062ece80..3fbf75e74c1 100644
--- a/sonar-batch-protocol/src/main/gen-java/org/sonar/server/source/db/FileSourceTestDb.java
+++ b/sonar-batch-protocol/src/main/gen-java/org/sonar/server/source/db/FileSourceTestDb.java
@@ -209,7 +209,7 @@ public final class FileSourceTestDb {
}
case 58: {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
- coverageBlock_ = new java.util.ArrayList<org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock>();
+ coverageBlock_ = new java.util.ArrayList<>();
mutable_bitField0_ |= 0x00000040;
}
coverageBlock_.add(input.readMessage(org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock.PARSER, extensionRegistry));
@@ -409,7 +409,7 @@ public final class FileSourceTestDb {
}
case 32: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
- lines_ = new java.util.ArrayList<java.lang.Integer>();
+ lines_ = new java.util.ArrayList<>();
mutable_bitField0_ |= 0x00000008;
}
lines_.add(input.readInt32());
@@ -419,7 +419,7 @@ public final class FileSourceTestDb {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) {
- lines_ = new java.util.ArrayList<java.lang.Integer>();
+ lines_ = new java.util.ArrayList<>();
mutable_bitField0_ |= 0x00000008;
}
while (input.getBytesUntilLimit() > 0) {
@@ -1220,7 +1220,7 @@ public final class FileSourceTestDb {
private java.util.List<java.lang.Integer> lines_ = java.util.Collections.emptyList();
private void ensureLinesIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
- lines_ = new java.util.ArrayList<java.lang.Integer>(lines_);
+ lines_ = new java.util.ArrayList<>(lines_);
bitField0_ |= 0x00000008;
}
}
@@ -2444,7 +2444,7 @@ public final class FileSourceTestDb {
java.util.Collections.emptyList();
private void ensureCoverageBlockIsMutable() {
if (!((bitField0_ & 0x00000040) == 0x00000040)) {
- coverageBlock_ = new java.util.ArrayList<org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock>(coverageBlock_);
+ coverageBlock_ = new java.util.ArrayList<>(coverageBlock_);
bitField0_ |= 0x00000040;
}
}
@@ -2668,8 +2668,7 @@ public final class FileSourceTestDb {
org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock, org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock.Builder, org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlockOrBuilder>
getCoverageBlockFieldBuilder() {
if (coverageBlockBuilder_ == null) {
- coverageBlockBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock, org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlock.Builder, org.sonar.server.source.db.FileSourceTestDb.Test.CoverageBlockOrBuilder>(
+ coverageBlockBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<>(
coverageBlock_,
((bitField0_ & 0x00000040) == 0x00000040),
getParentForChildren(),
@@ -2771,7 +2770,7 @@ public final class FileSourceTestDb {
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
- test_ = new java.util.ArrayList<org.sonar.server.source.db.FileSourceTestDb.Test>();
+ test_ = new java.util.ArrayList<>();
mutable_bitField0_ |= 0x00000001;
}
test_.add(input.readMessage(org.sonar.server.source.db.FileSourceTestDb.Test.PARSER, extensionRegistry));
@@ -3118,7 +3117,7 @@ public final class FileSourceTestDb {
java.util.Collections.emptyList();
private void ensureTestIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
- test_ = new java.util.ArrayList<org.sonar.server.source.db.FileSourceTestDb.Test>(test_);
+ test_ = new java.util.ArrayList<>(test_);
bitField0_ |= 0x00000001;
}
}
@@ -3342,8 +3341,7 @@ public final class FileSourceTestDb {
org.sonar.server.source.db.FileSourceTestDb.Test, org.sonar.server.source.db.FileSourceTestDb.Test.Builder, org.sonar.server.source.db.FileSourceTestDb.TestOrBuilder>
getTestFieldBuilder() {
if (testBuilder_ == null) {
- testBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.sonar.server.source.db.FileSourceTestDb.Test, org.sonar.server.source.db.FileSourceTestDb.Test.Builder, org.sonar.server.source.db.FileSourceTestDb.TestOrBuilder>(
+ testBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<>(
test_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
diff --git a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ActiveRule.java b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ActiveRule.java
index 219f8a536ea..1571119eb99 100644
--- a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ActiveRule.java
+++ b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ActiveRule.java
@@ -28,7 +28,7 @@ import java.util.Map;
public class ActiveRule {
private final String repositoryKey, ruleKey, templateRuleKey;
private final String name, severity, internalKey, language;
- private final Map<String, String> params = new HashMap<String, String>();
+ private final Map<String, String> params = new HashMap<>();
public ActiveRule(String repositoryKey, String ruleKey, @Nullable String templateRuleKey, String name, @Nullable String severity,
@Nullable String internalKey, @Nullable String language) {
diff --git a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/GlobalRepositories.java b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/GlobalRepositories.java
index 4dccd3a286f..a31828ccc9c 100644
--- a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/GlobalRepositories.java
+++ b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/GlobalRepositories.java
@@ -33,8 +33,8 @@ import java.util.Map;
public class GlobalRepositories {
private long timestamp;
- private Collection<Metric> metrics = new ArrayList<Metric>();
- private Map<String, String> globalSettings = new HashMap<String, String>();
+ private Collection<Metric> metrics = new ArrayList<>();
+ private Map<String, String> globalSettings = new HashMap<>();
public Map<String, String> globalSettings() {
return globalSettings;
diff --git a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ProjectRepositories.java b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ProjectRepositories.java
index eb3200b6ac3..803560c176a 100644
--- a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ProjectRepositories.java
+++ b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ProjectRepositories.java
@@ -33,10 +33,10 @@ import java.util.*;
public class ProjectRepositories {
private long timestamp;
- private Map<String, QProfile> qprofilesByLanguage = new HashMap<String, QProfile>();
- private Collection<ActiveRule> activeRules = new ArrayList<ActiveRule>();
- private Map<String, Map<String, String>> settingsByModule = new HashMap<String, Map<String, String>>();
- private Map<String, Map<String, FileData>> fileDataByModuleAndPath = new HashMap<String, Map<String, FileData>>();
+ private Map<String, QProfile> qprofilesByLanguage = new HashMap<>();
+ private Collection<ActiveRule> activeRules = new ArrayList<>();
+ private Map<String, Map<String, String>> settingsByModule = new HashMap<>();
+ private Map<String, Map<String, FileData>> fileDataByModuleAndPath = new HashMap<>();
private Date lastAnalysisDate;
public Map<String, String> settings(String moduleKey) {