Skip to content

Commit

Permalink
Tiny syntax cleanup in _sessionClass()
Browse files Browse the repository at this point in the history
  • Loading branch information
hugithordarson committed Mar 15, 2024
1 parent 665b232 commit d2e3391
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ng-appserver/src/main/java/ng/appserver/NGApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ private void start() {
*/
protected Class<? extends NGSession> _sessionClass() {
try {
return (Class<? extends NGSession>)Class.forName( getClass().getPackageName() + ".Session" );
final String sessionClassName = getClass().getPackageName() + ".Session";
return (Class<? extends NGSession>)Class.forName( sessionClassName );
}
catch( ClassNotFoundException e ) {
logger.info( "Custom session class not found. Defaulting to " + NGSession.class.getName() );
Expand Down

0 comments on commit d2e3391

Please sign in to comment.