Skip to content

Commit

Permalink
+doc Add more imports to the stream quick start guides for Java and S…
Browse files Browse the repository at this point in the history
…cala (akka#20797)

* Add more imports to the stream quick start guides.

This makes it easier for people to execute the code samples while they
read through the guide.

* Change line endings to be consistent with other files

For some reason these 2 files had CR+LF line endings.
  • Loading branch information
cb372 authored and ktoso committed Jun 18, 2016
1 parent a9cb8ab commit f246c56
Show file tree
Hide file tree
Showing 4 changed files with 692 additions and 677 deletions.
24 changes: 14 additions & 10 deletions akka-docs/rst/java/code/docs/stream/QuickStartDocTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,27 @@
*/
package docs.stream;

//#stream-imports
import akka.stream.*;
import akka.stream.javadsl.*;
//#stream-imports

//#other-imports
import akka.Done;
import akka.NotUsed;
import akka.actor.ActorSystem;
import akka.util.ByteString;

import java.nio.file.Paths;
import java.math.BigInteger;
import java.util.concurrent.CompletionStage;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;

import org.junit.*;

import akka.Done;
import akka.NotUsed;
import akka.actor.ActorSystem;
//#imports
import akka.stream.*;
import akka.stream.javadsl.*;
//#imports
import akka.util.ByteString;
import scala.concurrent.duration.Duration;
//#other-imports

import org.junit.*;

/**
* This class is not meant to be run as a test in the test suite, but it
Expand Down
Loading

0 comments on commit f246c56

Please sign in to comment.