Skip to content

Commit

Permalink
chore: dependency-graph: ignore more contexts
Browse files Browse the repository at this point in the history
follow-up on apache#1392
  • Loading branch information
raboof committed Jan 6, 2025
1 parent e779b7b commit 74dba82
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/dependency-graph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ jobs:
uses: sbt/setup-sbt@v1
- uses: scalacenter/sbt-dependency-submission@v3
with:
configs-ignore: optional test compile-internal
configs-ignore: provided optional test TestJdk9 compile-internal pr-validation
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,13 @@ public Boolean apply(String r) {
assertEquals("foo", Await.result(r, timeout));
}

@Test
public void mustAllowCreatingLambdaFilter() {
// compile-only test
final CountDownLatch latch = new CountDownLatch(1);
Filter.filterOf(r -> { latch.countDown(); return r.equals("foo"); });
}

// TODO: Improve this test, perhaps with an Actor
@Test
public void mustSequenceAFutureList() throws Exception {
Expand Down
2 changes: 2 additions & 0 deletions actor/src/main/scala/org/apache/pekko/dispatch/Future.scala
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,8 @@ abstract class Recover[+T] extends japi.RecoverBridge[T] {
object Filter {
def filterOf[T](f: pekko.japi.Function[T, java.lang.Boolean]): (T => Boolean) =
new Function1[T, Boolean] { def apply(result: T): Boolean = f(result).booleanValue() }
def filterOf[T](f: pekko.japi.function.Function[T, java.lang.Boolean]): (T => Boolean) =
new Function1[T, Boolean] { def apply(result: T): Boolean = f(result).booleanValue() }
}

/**
Expand Down

0 comments on commit 74dba82

Please sign in to comment.