Skip to content

Commit

Permalink
Mods after reviews: add _ as valid char; make static.
Browse files Browse the repository at this point in the history
  • Loading branch information
janbartel committed Jan 16, 2025
1 parent fbcb111 commit ec30879
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public void testGoodWorkerName() throws Exception
{
Server server = new Server();
DefaultSessionIdManager idMgr = new DefaultSessionIdManager(server);
idMgr.setWorkerName("NODE99");
idMgr.setWorkerName("NODE_99");
server.addBean(idMgr);

//create the SessionDataStore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public class MongoSessionDataStore extends NoSqlSessionDataStore
*/
private DBObject _version1;

private final Pattern _workerNamePattern = Pattern.compile("[0-9a-zA-Z]*");
private static final Pattern _workerNamePattern = Pattern.compile("[_0-9a-zA-Z]*");

/**
* Access to MongoDB
Expand Down

0 comments on commit ec30879

Please sign in to comment.