Fix deprecated `l` for Longs Fixes following warning: Lowercase el for long is not recommended because it is easy to confuse with numeral 1; use uppercase L instead Change-Id: Ie2f7ffbdfd9ba6652ab2893e0303eaccb2d590f3
diff --git a/src/test/scala/com/googlesource/gerrit/plugins/analytics/test/CommitInfoSpec.scala b/src/test/scala/com/googlesource/gerrit/plugins/analytics/test/CommitInfoSpec.scala index 02b74f0..178de2f 100644 --- a/src/test/scala/com/googlesource/gerrit/plugins/analytics/test/CommitInfoSpec.scala +++ b/src/test/scala/com/googlesource/gerrit/plugins/analytics/test/CommitInfoSpec.scala
@@ -8,7 +8,7 @@ class CommitInfoSpec extends AnyFlatSpecLike with Matchers { "CommitInfo" should "be serialised as JSON correctly" in { - val commitInfo = CommitInfo(sha1 = "sha", date = 1000l, merge = false, botLike = false, files = Set("file1", "file2")) + val commitInfo = CommitInfo(sha1 = "sha", date = 1000L, merge = false, botLike = false, files = Set("file1", "file2")) val gsonBuilder = new GsonFormatter().gsonBuilder
diff --git a/src/test/scala/com/googlesource/gerrit/plugins/analytics/test/CommitStatisticsSpec.scala b/src/test/scala/com/googlesource/gerrit/plugins/analytics/test/CommitStatisticsSpec.scala index 41cce72..e78c1d9 100644 --- a/src/test/scala/com/googlesource/gerrit/plugins/analytics/test/CommitStatisticsSpec.scala +++ b/src/test/scala/com/googlesource/gerrit/plugins/analytics/test/CommitStatisticsSpec.scala
@@ -40,10 +40,10 @@ } it should "sum to another compatible CommitStatistics generating an aggregated stat" in { - val commit1 = CommitInfo("sha_1", 1000l, false, botLike = false, Set("file1")) - val commit2 = CommitInfo("sha_2", 2000l, false, botLike = false, Set("file1")) - val commit3 = CommitInfo("sha_3", 3000l, false, botLike = false, Set("file2")) - val commit4 = CommitInfo("sha_4", 1000l, false, botLike = false, Set("file1")) + val commit1 = CommitInfo("sha_1", 1000L, false, botLike = false, Set("file1")) + val commit2 = CommitInfo("sha_2", 2000L, false, botLike = false, Set("file1")) + val commit3 = CommitInfo("sha_3", 3000L, false, botLike = false, Set("file2")) + val commit4 = CommitInfo("sha_4", 1000L, false, botLike = false, Set("file1")) val stat1 = CommitsStatistics(3, 4, false, false, List(commit1, commit2)) val stat2 = CommitsStatistics(5, 7, false, false, List(commit3, commit4))