Skip to content

Commit

Permalink
chore: Run JDK9Test compiling to validate syntax. (#1050)
Browse files Browse the repository at this point in the history
* chore: Check java9+ classes in paradox.

* Update .github/workflows/generate-doc-check.yml

Co-authored-by: AndyChen <[email protected]>

---------

Co-authored-by: AndyChen <[email protected]>
  • Loading branch information
He-Pin and Roiocam committed Jan 27, 2024
1 parent 4c20580 commit a2b5b5d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/generate-doc-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ jobs:
run: |-
sudo apt-get install graphviz
- name: Compile docs for all Scala versions
run: sbt +compile:doc
- name: Compile testClass&docs for all Scala versions
run: sbt ";TestJdk9 / compile ; +compile:doc"
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import org.apache.pekko.NotUsed;
import org.apache.pekko.stream.javadsl.Source;
import org.apache.pekko.stream.javadsl.JavaFlowSupport;

//#imports
public interface AsSubscriber {
// We are 'faking' the JavaFlowSupport API here so we can include the signature as a snippet in the API,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@

package docs.stream.operators.sink

import scala.concurrent.{ ExecutionContextExecutor, Future }
import org.apache.pekko.actor.ActorSystem
import org.apache.pekko.stream.scaladsl.{ Sink, Source }

import scala.concurrent.ExecutionContextExecutor

object AsPublisher {
implicit val system: ActorSystem = ???
implicit val ec: ExecutionContextExecutor = system.dispatcher
Expand Down

0 comments on commit a2b5b5d

Please sign in to comment.