ARTEMIS-1593 RemotingConnectionImpl leaks

FileNameKey was holding a reference to PropertiesLoader.this due to its inner class definition, causing RemotingConnectionImpl to leak through a long chain of dependencies rooted in a PropertiesLoader's subclass property ie PropertiesLoaderModule::callbackHandler.
FileNameKey is turned into a inner static class to break this hidden dependency.
This commit is contained in:
Francesco Nigro 2018-01-09 15:12:44 +01:00 committed by Michael Pearce
parent 38df11d1d6
commit e360f85c1b
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ public class PropertiesLoader {
return Boolean.parseBoolean((String) options.get(name));
}
public class FileNameKey {
public static final class FileNameKey {
final File file;
final String absPath;