Skip to content
Snippets Groups Projects
Commit a6b8d157 authored by srosse's avatar srosse
Browse files

OO-568: fix memory leak, remove inner class to prevent big memory consumption...

OO-568: fix memory leak, remove inner class to prevent big memory consumption if an other memory leak...
parent f51eecb4
No related branches found
No related tags found
No related merge requests found
......@@ -114,7 +114,8 @@ public class MapperServiceImpl implements MapperService {
@Override
public String register(UserSession session, String mapperId, Mapper mapper) {
String encryptedMapId = Encoder.encrypt(mapperId);
boolean alreadyLoaded = mapperKeyToMapper.containsKey(encryptedMapId);
MapperKey mapperKey = new MapperKey(session, encryptedMapId);
boolean alreadyLoaded = mapperKeyToMapper.containsKey(mapperKey);
if(mapper instanceof Serializable) {
if(alreadyLoaded) {
if(!mapperDao.updateConfiguration(encryptedMapId, (Serializable)mapper)) {
......@@ -130,7 +131,6 @@ public class MapperServiceImpl implements MapperService {
}
}
MapperKey mapperKey = new MapperKey(session, encryptedMapId);
mapperKeyToMapper.put(mapperKey, mapper);
mapperToMapperKey.put(mapper, mapperKey);
return WebappHelper.getServletContextPath() + DispatcherAction.PATH_MAPPED + encryptedMapId;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment