This is an automated email from the ASF dual-hosted git repository.
hepin pushed a commit to branch 1.3.x
in repository https://gitbox.apache.org/repos/asf/pekko.git
The following commit(s) were added to refs/heads/1.3.x by this push:
new 9bdb2a021b chore: Fix typo of OptionVal's scaladoc (#2452)
9bdb2a021b is described below
commit 9bdb2a021b213fdc268b8b098e10b8310c25f440
Author: He-Pin(kerr) <[email protected]>
AuthorDate: Sat Nov 8 17:44:02 2025 +0800
chore: Fix typo of OptionVal's scaladoc (#2452)
---
actor/src/main/scala/org/apache/pekko/util/OptionVal.scala | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/actor/src/main/scala/org/apache/pekko/util/OptionVal.scala
b/actor/src/main/scala/org/apache/pekko/util/OptionVal.scala
index 41abfd18fe..7451042766 100644
--- a/actor/src/main/scala/org/apache/pekko/util/OptionVal.scala
+++ b/actor/src/main/scala/org/apache/pekko/util/OptionVal.scala
@@ -49,13 +49,12 @@ private[pekko] object OptionVal {
private[pekko] final class OptionVal[+A](val x: A) extends AnyVal {
/**
- * Returns true if the option is `OptionVal.None`, false otherwise.
+ * Returns `true` if the option is `OptionVal.None`, `false` otherwise.
*/
- def isEmpty: Boolean =
- x == null
+ def isEmpty: Boolean = x == null
/**
- * Returns true if the option is `OptionVal.None`, false otherwise.
+ * Returns `false` if the option is `OptionVal.None`, `true` otherwise.
*/
def isDefined: Boolean = !isEmpty
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]