getSession() cannot be null

This commit is contained in:
zzz
2013-06-30 17:00:14 +00:00
parent d173b79949
commit 570f8526b0
4 changed files with 15 additions and 12 deletions

View File

@ -65,10 +65,10 @@ public class I2PSocketManagerFull implements I2PSocketManager {
* This is what I2PSocketManagerFactory.createManager() returns.
* Direct instantiation by others is deprecated.
*
* @param context
* @param session
* @param opts
* @param name
* @param context non-null
* @param session non-null
* @param opts may be null
* @param name non-null
*/
public I2PSocketManagerFull(I2PAppContext context, I2PSession session, Properties opts, String name) {
_context = context;
@ -103,6 +103,9 @@ public class I2PSocketManagerFull implements I2PSocketManager {
return curOpts;
}
/**
* @return the session, non-null
*/
public I2PSession getSession() {
return _session;
}