[Minor] Automated Code cleanup: remove unnecessary synchronized modifier
This commit is contained in:
parent
a31cfcad50
commit
8dfa75c243
|
@ -65,12 +65,10 @@ public class DefaultPersistenceManager implements PersistenceManager {
|
||||||
File basePathF = new File(basePath).getAbsoluteFile();
|
File basePathF = new File(basePath).getAbsoluteFile();
|
||||||
if (!basePathF.exists())
|
if (!basePathF.exists())
|
||||||
throw new XmlPersistenceException(
|
throw new XmlPersistenceException(
|
||||||
MessageFormat.format("The database store path does not exist at {0}",
|
MessageFormat.format("The database store path does not exist at {0}", basePathF.getAbsolutePath()));
|
||||||
basePathF.getAbsolutePath()));
|
|
||||||
if (!basePathF.canWrite())
|
if (!basePathF.canWrite())
|
||||||
throw new XmlPersistenceException(
|
throw new XmlPersistenceException(MessageFormat.format("The database store path is not writeable at {0}",
|
||||||
MessageFormat.format("The database store path is not writeable at {0}",
|
basePathF.getAbsolutePath()));
|
||||||
basePathF.getAbsolutePath()));
|
|
||||||
logger.info(MessageFormat.format("Using base path {0}", basePathF));
|
logger.info(MessageFormat.format("Using base path {0}", basePathF));
|
||||||
|
|
||||||
this.verbose = verbose;
|
this.verbose = verbose;
|
||||||
|
@ -103,7 +101,7 @@ public class DefaultPersistenceManager implements PersistenceManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public synchronized PersistenceTransaction openTx() {
|
public PersistenceTransaction openTx() {
|
||||||
return new DefaultPersistenceTransaction(this, this.ioMode, this.verbose, this.allowOverwriteOnCreate);
|
return new DefaultPersistenceTransaction(this, this.ioMode, this.verbose, this.allowOverwriteOnCreate);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue