You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by hn...@apache.org on 2018/03/13 19:17:09 UTC
[myfaces-tobago] branch master updated: fix checkstyle
This is an automated email from the ASF dual-hosted git repository.
hnoeth pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git
The following commit(s) were added to refs/heads/master by this push:
new 11e5587 fix checkstyle
11e5587 is described below
commit 11e558702a5f30149ef1d06ba66b592c163765a6
Author: Henning Noeth <hn...@apache.org>
AuthorDate: Tue Mar 13 20:17:00 2018 +0100
fix checkstyle
---
.../java/org/apache/myfaces/tobago/facelets/EventHandler.java | 3 ++-
.../myfaces/tobago/example/demo/BehaviorController.java | 11 +++++++++--
.../myfaces/tobago/example/demo/BehaviorTestController.java | 1 +
3 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/facelets/EventHandler.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/facelets/EventHandler.java
index 9e6cb3a..e1e9916 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/facelets/EventHandler.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/facelets/EventHandler.java
@@ -139,7 +139,8 @@ public class EventHandler extends TobagoComponentHandler implements BehaviorHold
.getAttributes().get(FaceletContext.FACELET_CONTEXT_KEY);
final ClientBehaviorHolder clientBehaviorHolder = (ClientBehaviorHolder) parent;
- final UIComponent lastChild = parent.getChildren().stream().skip(parent.getChildCount() - 1).findFirst().orElse(null);
+ final UIComponent lastChild = parent.getChildren().stream().skip(parent.getChildCount() - 1)
+ .findFirst().orElse(null);
final AbstractUIEvent abstractUIEvent = lastChild instanceof AbstractUIEvent ? (AbstractUIEvent) lastChild : null;
if (abstractUIEvent != null) {
diff --git a/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/BehaviorController.java b/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/BehaviorController.java
index 9942530..3b906df 100644
--- a/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/BehaviorController.java
+++ b/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/BehaviorController.java
@@ -19,6 +19,9 @@
package org.apache.myfaces.tobago.example.demo;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import javax.enterprise.context.SessionScoped;
import javax.faces.event.ActionEvent;
import javax.faces.event.AjaxBehaviorEvent;
@@ -29,6 +32,8 @@ import java.io.Serializable;
@Named
public class BehaviorController implements Serializable {
+ private static final Logger LOG = LoggerFactory.getLogger(BehaviorController.class);
+
private String ajax;
private String event;
private int counter;
@@ -53,11 +58,13 @@ public class BehaviorController implements Serializable {
return counter;
}
- public void countUp(final AjaxBehaviorEvent event) {
+ public void countUp(final AjaxBehaviorEvent ajaxBehaviorEvent) {
+ LOG.info("ajaxBehaviorEvent=" + ajaxBehaviorEvent);
counter++;
}
- public void countUp(final ActionEvent event) {
+ public void countUp(final ActionEvent actionEvent) {
+ LOG.info("actionEvent=" + actionEvent);
counter++;
}
}
diff --git a/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/BehaviorTestController.java b/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/BehaviorTestController.java
index 42ed101..32efec7 100644
--- a/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/BehaviorTestController.java
+++ b/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/BehaviorTestController.java
@@ -140,6 +140,7 @@ public class BehaviorTestController implements Serializable {
ajaxEnabled2 = true;
ajaxEnabled3 = true;
break;
+ default:
}
}
--
To stop receiving notification emails like this one, please contact
hnoeth@apache.org.