This is an automated email from the ASF dual-hosted git repository.
jleroux pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push:
new 9f822ab Improved: removes Java compilation unchecked] and deprecation
warnings
9f822ab is described below
commit 9f822ab33703fbbbaf03b8e665893a48b6699abf
Author: Jacques Le Roux <[email protected]>
AuthorDate: Mon Oct 18 13:33:52 2021 +0200
Improved: removes Java compilation unchecked] and deprecation warnings
---
.../org/apache/ofbiz/entity/connection/DBCPConnectionFactory.java | 1 +
.../org/apache/ofbiz/entity/connection/DebugManagedDataSource.java | 1 +
.../java/org/apache/ofbiz/webtools/artifactinfo/RunTestEvents.java | 6 ++----
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git
a/framework/entity/src/main/java/org/apache/ofbiz/entity/connection/DBCPConnectionFactory.java
b/framework/entity/src/main/java/org/apache/ofbiz/entity/connection/DBCPConnectionFactory.java
index 66c51c3..45ffe2e 100644
---
a/framework/entity/src/main/java/org/apache/ofbiz/entity/connection/DBCPConnectionFactory.java
+++
b/framework/entity/src/main/java/org/apache/ofbiz/entity/connection/DBCPConnectionFactory.java
@@ -59,6 +59,7 @@ public class DBCPConnectionFactory implements
ConnectionFactory {
protected static final ConcurrentHashMap<String, DebugManagedDataSource<?
extends Connection>> DS_CACHE =
new ConcurrentHashMap<>();
+ @SuppressWarnings("deprecation")
@Override
public Connection getConnection(GenericHelperInfo helperInfo, JdbcElement
abstractJdbc) throws SQLException, GenericEntityException {
String cacheKey = helperInfo.getHelperFullName();
diff --git
a/framework/entity/src/main/java/org/apache/ofbiz/entity/connection/DebugManagedDataSource.java
b/framework/entity/src/main/java/org/apache/ofbiz/entity/connection/DebugManagedDataSource.java
index e3bfb3c..49801ad 100644
---
a/framework/entity/src/main/java/org/apache/ofbiz/entity/connection/DebugManagedDataSource.java
+++
b/framework/entity/src/main/java/org/apache/ofbiz/entity/connection/DebugManagedDataSource.java
@@ -61,6 +61,7 @@ public class DebugManagedDataSource<C extends Connection>
extends ManagedDataSou
* Gets info.
* @return the info
*/
+ @SuppressWarnings("deprecation")
public Map<String, Object> getInfo() {
Map<String, Object> dataSourceInfo = new HashMap<>();
dataSourceInfo.put("poolNumActive", super.getPool().getNumActive());
diff --git
a/framework/webtools/src/main/java/org/apache/ofbiz/webtools/artifactinfo/RunTestEvents.java
b/framework/webtools/src/main/java/org/apache/ofbiz/webtools/artifactinfo/RunTestEvents.java
index 1a7443d..7ec4947 100644
---
a/framework/webtools/src/main/java/org/apache/ofbiz/webtools/artifactinfo/RunTestEvents.java
+++
b/framework/webtools/src/main/java/org/apache/ofbiz/webtools/artifactinfo/RunTestEvents.java
@@ -20,8 +20,8 @@ package org.apache.ofbiz.webtools.artifactinfo;
import java.util.ArrayList;
import java.util.List;
-
import java.util.Map;
+
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@@ -35,8 +35,6 @@ import org.apache.ofbiz.testtools.TestRunContainer;
*/
public class RunTestEvents {
- private static final String MODULE = RunTestEvents.class.getName();
-
public static String runTest(HttpServletRequest request,
HttpServletResponse response) throws ContainerException {
String component = (String) request.getAttribute("compName");
@@ -44,7 +42,7 @@ public class RunTestEvents {
String caseName = (String) request.getAttribute("caseName");
List<StartupCommand> ofbizCommands = new ArrayList<>();
- Map cmdArgs = UtilMisc.toMap("component", component, "suitename",
suiteName);
+ Map<String, String> cmdArgs = UtilMisc.toMap("component", component,
"suitename", suiteName);
if (caseName == null) {
cmdArgs.put("case", caseName);
}