[Minor] Automated Code cleanup: remove unnecessary synchronized modifier

This commit is contained in:
Robert von Burg 2023-04-06 09:29:09 +02:00
parent a31cfcad50
commit 8dfa75c243
Signed by: eitch
GPG Key ID: 75DB9C85C74331F7
1 changed files with 4 additions and 6 deletions

View File

@ -65,12 +65,10 @@ public class DefaultPersistenceManager implements PersistenceManager {
File basePathF = new File(basePath).getAbsoluteFile();
if (!basePathF.exists())
throw new XmlPersistenceException(
MessageFormat.format("The database store path does not exist at {0}",
basePathF.getAbsolutePath()));
MessageFormat.format("The database store path does not exist at {0}", basePathF.getAbsolutePath()));
if (!basePathF.canWrite())
throw new XmlPersistenceException(
MessageFormat.format("The database store path is not writeable at {0}",
basePathF.getAbsolutePath()));
throw new XmlPersistenceException(MessageFormat.format("The database store path is not writeable at {0}",
basePathF.getAbsolutePath()));
logger.info(MessageFormat.format("Using base path {0}", basePathF));
this.verbose = verbose;
@ -103,7 +101,7 @@ public class DefaultPersistenceManager implements PersistenceManager {
}
@Override
public synchronized PersistenceTransaction openTx() {
public PersistenceTransaction openTx() {
return new DefaultPersistenceTransaction(this, this.ioMode, this.verbose, this.allowOverwriteOnCreate);
}
}