diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-08-03 01:20:40 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-08-05 19:32:12 +0200 |
commit | f9a8849bcd13d9a418306afa0037136be1e4d56f (patch) | |
tree | 8c3f6029448929cafa6d8d65df2750c89b6e008d /server/sonar-server-benchmarks | |
parent | ca9e5122f571ad45988ca7a04e8bf83445709956 (diff) | |
download | sonarqube-f9a8849bcd13d9a418306afa0037136be1e4d56f.tar.gz sonarqube-f9a8849bcd13d9a418306afa0037136be1e4d56f.zip |
Rename protobuf files of sonar-db
Diffstat (limited to 'server/sonar-server-benchmarks')
2 files changed, 6 insertions, 6 deletions
diff --git a/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceDbBenchmarkTest.java b/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceDbBenchmarkTest.java index 5c7f6d8b3cb..d1fc9e4b36d 100644 --- a/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceDbBenchmarkTest.java +++ b/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceDbBenchmarkTest.java @@ -31,7 +31,7 @@ import org.slf4j.LoggerFactory; import org.sonar.api.utils.System2; import org.sonar.api.utils.internal.Uuids; import org.sonar.db.DbTester; -import org.sonar.db.FileSources; +import org.sonar.db.protobuf.DbFileSources; import org.sonar.db.source.FileSourceDao; import org.sonar.db.source.FileSourceDto; import org.sonar.server.source.index.FileSourcesUpdaterHelper; @@ -110,8 +110,8 @@ public class SourceDbBenchmarkTest { } private byte[] generateData() { - FileSources.Data.Builder dataBuilder = FileSources.Data.newBuilder(); - FileSources.Line.Builder lineBuilder = FileSources.Line.newBuilder(); + DbFileSources.Data.Builder dataBuilder = DbFileSources.Data.newBuilder(); + DbFileSources.Line.Builder lineBuilder = DbFileSources.Line.newBuilder(); for (int i = 1; i <= NUMBER_OF_LINES; i++) { lineBuilder.clear(); dataBuilder.addLines(lineBuilder diff --git a/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceIndexBenchmarkTest.java b/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceIndexBenchmarkTest.java index 746f7c1a321..a45f6851771 100644 --- a/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceIndexBenchmarkTest.java +++ b/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceIndexBenchmarkTest.java @@ -31,7 +31,7 @@ import org.junit.Rule; import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.sonar.db.FileSources; +import org.sonar.db.protobuf.DbFileSources; import org.sonar.server.es.EsClient; import org.sonar.server.source.index.FileSourcesUpdaterHelper; import org.sonar.server.source.index.SourceLineDoc; @@ -115,8 +115,8 @@ public class SourceIndexBenchmarkTest { private final int nbLinesPerFile; private int currentProject = 0; private AtomicLong count = new AtomicLong(0L); - private final FileSources.Data.Builder dataBuilder = FileSources.Data.newBuilder(); - private final FileSources.Line.Builder lineBuilder = FileSources.Line.newBuilder(); + private final DbFileSources.Data.Builder dataBuilder = DbFileSources.Data.newBuilder(); + private final DbFileSources.Line.Builder lineBuilder = DbFileSources.Line.newBuilder(); SourceIterator(long nbFiles, int nbLinesPerFile) { this.nbFiles = nbFiles; |