Improved: Fix or Silence various warnings
(OFBIZ-10701)
In order to detect potential issues early, the linting compiler option should be
used by default and disabled with {{./gradlew -PXlint:none build}}.
Additionally it is important to reduce the number of warnings otherwise new
warnings will remain unnoticed.
The warning related to the com.googlecode.concurrentlinkedhashmap dependency
should resolves itself once we handle upgrade to Caffeine like proposed in
OFBIZ-6747.
Thanks: Mathieu Lirzin
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1848673 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -48,7 +48,6 @@ import org.apache.ofbiz.base.util.Debug;
|
||||
import org.apache.ofbiz.base.util.GeneralException;
|
||||
import org.apache.ofbiz.base.util.UtilMisc;
|
||||
import org.apache.ofbiz.base.util.UtilProperties;
|
||||
import org.apache.ofbiz.entity.util.EntityUtilProperties;
|
||||
import org.apache.ofbiz.service.DispatchContext;
|
||||
import org.apache.ofbiz.service.ServiceUtil;
|
||||
import org.apache.ofbiz.webapp.view.ApacheFopWorker;
|
||||
|
||||
@@ -34,7 +34,7 @@ public class ExampleServices {
|
||||
public static Map<String, Object> sendExamplePushNotifications(DispatchContext dctx, Map<String, ? extends Object> context) {
|
||||
String exampleId = (String) context.get("exampleId");
|
||||
String message = (String) context.get("message");
|
||||
Set<Session> clients = (Set<Session>) ExampleWebSockets.getClients();
|
||||
Set<Session> clients = ExampleWebSockets.getClients();
|
||||
try {
|
||||
synchronized (clients) {
|
||||
for (Session client : clients) {
|
||||
|
||||
Reference in New Issue
Block a user