I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 211782fa authored by zzz's avatar zzz
Browse files

* Context: Make files final

parent e884ca54
No related branches found
No related tags found
No related merge requests found
...@@ -113,13 +113,13 @@ public class I2PAppContext { ...@@ -113,13 +113,13 @@ public class I2PAppContext {
private volatile boolean _simpleTimerInitialized; private volatile boolean _simpleTimerInitialized;
private volatile boolean _simpleTimer2Initialized; private volatile boolean _simpleTimer2Initialized;
protected final Set<Runnable> _shutdownTasks; protected final Set<Runnable> _shutdownTasks;
private File _baseDir; private final File _baseDir;
private File _configDir; private final File _configDir;
private File _routerDir; private final File _routerDir;
private File _pidDir; private final File _pidDir;
private File _logDir; private final File _logDir;
private File _appDir; private final File _appDir;
private File _tmpDir; private volatile File _tmpDir;
// split up big lock on this to avoid deadlocks // split up big lock on this to avoid deadlocks
private final Object _lock1 = new Object(), _lock2 = new Object(), _lock3 = new Object(), _lock4 = new Object(), private final Object _lock1 = new Object(), _lock2 = new Object(), _lock3 = new Object(), _lock4 = new Object(),
_lock5 = new Object(), _lock6 = new Object(), _lock7 = new Object(), _lock8 = new Object(), _lock5 = new Object(), _lock6 = new Object(), _lock7 = new Object(), _lock8 = new Object(),
...@@ -210,11 +210,9 @@ public class I2PAppContext { ...@@ -210,11 +210,9 @@ public class I2PAppContext {
if (envProps != null) if (envProps != null)
_overrideProps.putAll(envProps); _overrideProps.putAll(envProps);
_shutdownTasks = new ConcurrentHashSet(32); _shutdownTasks = new ConcurrentHashSet(32);
initializeDirs();
_portMapper = new PortMapper(this); _portMapper = new PortMapper(this);
}
/** /*
* Directories. These are all set at instantiation and will not be changed by * Directories. These are all set at instantiation and will not be changed by
* subsequent property changes. * subsequent property changes.
* All properties, if set, should be absolute paths. * All properties, if set, should be absolute paths.
...@@ -259,7 +257,7 @@ public class I2PAppContext { ...@@ -259,7 +257,7 @@ public class I2PAppContext {
* All dirs except the base are created if they don't exist, but the creation will fail silently. * All dirs except the base are created if they don't exist, but the creation will fail silently.
* @since 0.7.6 * @since 0.7.6
*/ */
private void initializeDirs() {
String s = getProperty("i2p.dir.base", System.getProperty("user.dir")); String s = getProperty("i2p.dir.base", System.getProperty("user.dir"));
_baseDir = new File(s); _baseDir = new File(s);
......
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