You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2021/12/04 15:41:41 UTC

[commons-lang] branch master updated: Javadoc.

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git


The following commit(s) were added to refs/heads/master by this push:
     new 656d202  Javadoc.
656d202 is described below

commit 656d2023dcd149018cd126e283f675b4ffef9715
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Dec 4 10:41:38 2021 -0500

    Javadoc.
---
 src/main/java/org/apache/commons/lang3/Streams.java | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/main/java/org/apache/commons/lang3/Streams.java b/src/main/java/org/apache/commons/lang3/Streams.java
index 5c14901..d9227d3 100644
--- a/src/main/java/org/apache/commons/lang3/Streams.java
+++ b/src/main/java/org/apache/commons/lang3/Streams.java
@@ -86,12 +86,22 @@ public class Streams {
             this.stream = stream;
         }
 
+        /**
+         * Throws IllegalStateException if this stream is already terminated.
+         *
+         * @throws IllegalStateException if this stream is already terminated.
+         */
         protected void assertNotTerminated() {
             if (terminated) {
                 throw new IllegalStateException("This stream is already terminated.");
             }
         }
 
+        /**
+         * Marks this stream as terminated.
+         *
+         * @throws IllegalStateException if this stream is already terminated.
+         */
         protected void makeTerminated() {
             assertNotTerminated();
             terminated = true;