[ofbiz-framework] branch release18.12 updated: Improved:

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ofbiz-framework] branch release18.12 updated: Improved:

jleroux@apache.org
This is an automated email from the ASF dual-hosted git repository.

jleroux pushed a commit to branch release18.12
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/release18.12 by this push:
     new 35f6009  Improved:
35f6009 is described below

commit 35f6009d19fe6ff8761184ed4811fa776e506a06
Author: Jacques Le Roux <[hidden email]>
AuthorDate: Fri Nov 6 11:36:05 2020 +0100

    Improved:
   
    Fixes a warning:
    PartyServices.java:1700: warning: [unchecked] unchecked conversion
    List<String> partyClassificationGroupIds = (List) context.get("partyClassificationGroupId");
    ^
---
 .../party/src/main/java/org/apache/ofbiz/party/party/PartyServices.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/applications/party/src/main/java/org/apache/ofbiz/party/party/PartyServices.java b/applications/party/src/main/java/org/apache/ofbiz/party/party/PartyServices.java
index 586c8d7..def9d44 100644
--- a/applications/party/src/main/java/org/apache/ofbiz/party/party/PartyServices.java
+++ b/applications/party/src/main/java/org/apache/ofbiz/party/party/PartyServices.java
@@ -1697,7 +1697,7 @@ public class PartyServices {
         // PartyClassificationGroup Fields
         // ----
 
-        List<String> partyClassificationGroupIds = (List) context.get("partyClassificationGroupId");
+        List<String> partyClassificationGroupIds = UtilGenerics.cast(context.get("partyClassificationGroupId"));
         if (UtilValidate.isNotEmpty(partyClassificationGroupIds)) {
             // add PartyClassification to view
             dynamicView.addMemberEntity("PC", "PartyClassification");