Skip to content

Commit

Permalink
more unnecessary annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning committed Oct 3, 2024
1 parent 1fd27d2 commit 157b05c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions actor/src/main/scala/org/apache/pekko/actor/ActorPath.scala
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
*/

package org.apache.pekko.actor

import java.lang.{ StringBuilder => JStringBuilder }
import java.net.MalformedURLException

import scala.annotation.nowarn
import scala.annotation.tailrec
import scala.collection.immutable

import scala.annotation.nowarn

import org.apache.pekko
import pekko.util.ccompat.JavaConverters._

Expand Down Expand Up @@ -216,7 +216,6 @@ sealed trait ActorPath extends Comparable[ActorPath] with Serializable {
/**
* Java API: Sequence of names for this path from root to this. Performance implication: has to allocate a list.
*/
@nowarn("msg=deprecated")
def getElements: java.lang.Iterable[String] =
elements.asJava

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ package org.apache.pekko.actor.dungeon

import java.util.Optional

import scala.annotation.nowarn
import scala.annotation.tailrec
import scala.collection.immutable
import scala.util.control.NonFatal
import scala.annotation.nowarn

import org.apache.pekko
import pekko.actor._
import pekko.annotation.InternalStableApi
Expand All @@ -41,7 +42,6 @@ private[pekko] trait Children { this: ActorCell =>
Unsafe.instance.getObjectVolatile(this, AbstractActorCell.childrenOffset).asInstanceOf[ChildrenContainer]

final def children: immutable.Iterable[ActorRef] = childrenRefs.children
@nowarn("msg=deprecated")
final def getChildren(): java.lang.Iterable[ActorRef] = {
import pekko.util.ccompat.JavaConverters._
children.asJava
Expand Down

0 comments on commit 157b05c

Please sign in to comment.