You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-commits@db.apache.org by mb...@apache.org on 2023/03/23 19:57:46 UTC
[db-jdo] branch main updated: JDO-823: String literals should not be duplicated - formatting changes
This is an automated email from the ASF dual-hosted git repository.
mbo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/db-jdo.git
The following commit(s) were added to refs/heads/main by this push:
new 06d04b00 JDO-823: String literals should not be duplicated - formatting changes
06d04b00 is described below
commit 06d04b0039192259970456b87c8e8ce8c3b5a07d
Author: Michael Bouschen <Mi...@akquinet.de>
AuthorDate: Thu Mar 23 20:57:36 2023 +0100
JDO-823: String literals should not be duplicated - formatting changes
---
api/src/main/java/javax/jdo/JDOHelper.java | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/api/src/main/java/javax/jdo/JDOHelper.java b/api/src/main/java/javax/jdo/JDOHelper.java
index 6e59a7e3..0a5ae4bd 100644
--- a/api/src/main/java/javax/jdo/JDOHelper.java
+++ b/api/src/main/java/javax/jdo/JDOHelper.java
@@ -89,7 +89,8 @@ public class JDOHelper implements Constants {
private static final String EXC_GET_PMF_IOEXCEPTION_RSRC = "EXC_GetPMFIOExceptionRsrc"; // NOI18N
- private static final String EXC_GET_PMF_UNEXPECTED_EXCEPTION = "EXC_GetPMFUnexpectedException"; // NOI18N
+ private static final String EXC_GET_PMF_UNEXPECTED_EXCEPTION =
+ "EXC_GetPMFUnexpectedException"; // NOI18N
/**
* Creates a map from jdoconfig.xsd element attributes to PMF properties.
@@ -1047,9 +1048,7 @@ public class JDOHelper implements Constants {
Throwable nested = ite.getTargetException();
if (nested instanceof JDOException) {
throw (JDOException) nested;
- } else
- throw new JDOFatalInternalException(
- MSG.msg(EXC_GET_PMF_UNEXPECTED_EXCEPTION), ite);
+ } else throw new JDOFatalInternalException(MSG.msg(EXC_GET_PMF_UNEXPECTED_EXCEPTION), ite);
}
} else {
// overrides is null; use getPersistenceManagerFactory(Map props)
@@ -1085,9 +1084,7 @@ public class JDOHelper implements Constants {
Throwable nested = ite.getTargetException();
if (nested instanceof JDOException) {
throw (JDOException) nested;
- } else
- throw new JDOFatalInternalException(
- MSG.msg(EXC_GET_PMF_UNEXPECTED_EXCEPTION), ite);
+ } else throw new JDOFatalInternalException(MSG.msg(EXC_GET_PMF_UNEXPECTED_EXCEPTION), ite);
}
}
}