Skip to content

Commit

Permalink
Merge pull request #277 from oleg-nenashev/javadoc/ChannelBuilder_header
Browse files Browse the repository at this point in the history
Annotate ChannelBuilder#header
  • Loading branch information
oleg-nenashev authored Jun 14, 2018
2 parents f7ba8d3 + 0a9754c commit 212f14b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/hudson/remoting/ChannelBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public class ChannelBuilder {
private ClassLoader base = this.getClass().getClassLoader();
private Mode mode = Mode.NEGOTIATE;
private Capability capability = new Capability();
@CheckForNull
private OutputStream header;
@CheckForNull
private JarCache jarCache;
Expand Down Expand Up @@ -125,11 +126,12 @@ public Capability getCapability() {
* when the established communication channel might include some data that might
* be useful for debugging/trouble-shooting.
*/
public ChannelBuilder withHeaderStream(OutputStream header) {
public ChannelBuilder withHeaderStream(@CheckForNull OutputStream header) {
this.header = header;
return this;
}

@CheckForNull
public OutputStream getHeaderStream() {
return header;
}
Expand Down

0 comments on commit 212f14b

Please sign in to comment.