commit | fc3fae31741d9cd202dea323358d4606b339659f | [log] [tgz] |
---|---|---|
author | Darius Jokilehto <dariusjokilehto+os@gmail.com> | Fri May 26 13:17:52 2023 +0100 |
committer | Darius Jokilehto <dariusjokilehto+os@gmail.com> | Fri May 26 13:17:52 2023 +0100 |
tree | daf3c6f1f55c65117c71dbd2fc2131d9d7ac07cb | |
parent | 80de7f2dd34a8f59b5bad1be9bdffe7991226bb2 [diff] |
Use orNull instead of explicit null default Change-Id: I57151b924f9740aaa4d17bd1b0caf2a9ef96278d
diff --git a/src/test/scala/com/googlesource/gerrit/plugins/analytics/test/CommitStatisticsCommentLinkSpec.scala b/src/test/scala/com/googlesource/gerrit/plugins/analytics/test/CommitStatisticsCommentLinkSpec.scala index 9266b07..28c5ebe 100644 --- a/src/test/scala/com/googlesource/gerrit/plugins/analytics/test/CommitStatisticsCommentLinkSpec.scala +++ b/src/test/scala/com/googlesource/gerrit/plugins/analytics/test/CommitStatisticsCommentLinkSpec.scala
@@ -32,8 +32,8 @@ def createCommentLinkInfo(pattern: String, link: Option[String] = None, html: Option[String] = None) = { val info = new CommentLinkInfo info.`match` = pattern - info.link = link.getOrElse(null) - info.html = html.getOrElse(null) + info.link = link.orNull + info.html = html.orNull info }