andreid911 commented on code in PR #230: URL: https://github.com/apache/mina-sshd/pull/230#discussion_r912164373
########## sshd-core/src/main/java/org/apache/sshd/client/channel/ChannelSession.java: ########## @@ -217,4 +223,42 @@ protected int securedRead( } } } + + /** + * @param key The (never {@code null}) key (Note: may be empty...) + * @param value The value to set - if {@code null} then the pre-existing value for the key (if any) is + * <U>removed</U>. + * @return The replaced/removed previous value - {@code null} if no previous value set for the key. + */ + public Object setEnv(String key, Object value) { + ValidateUtils.checkNotNull(key, "No key provided"); Review Comment: According to the current javadoc: key can be empty string. I am not planning to make any constraints changes to avoid behavior changes. @lgoldstein do you think we can change javadoc and update validation or use old validation without empty check? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org For additional commands, e-mail: dev-h...@mina.apache.org