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 2020/04/14 09:42:48 UTC

[myfaces-tobago] 01/02: fix checkstyle

This is an automated email from the ASF dual-hosted git repository.

hnoeth pushed a commit to branch tobago-4.x
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git

commit f0da74bc2a181b695d3656b31ffd5445a517bf88
Author: Henning Nöth <hn...@apache.org>
AuthorDate: Fri Apr 3 11:39:44 2020 +0200

    fix checkstyle
    
    * SheetController.java (whitespace) NoWhitespaceBefore: ';' is preceded with whitespace.
    * CategoryNode.java (whitespace) OperatorWrap: '+' should be on a new line.
    
    (cherry picked from commit b84ca16851108f7fa307bad56252652192703cc6)
---
 .../org/apache/myfaces/tobago/example/demo/CategoryNode.java   | 10 +++++-----
 .../apache/myfaces/tobago/example/demo/SheetController.java    |  5 +++--
 2 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/CategoryNode.java b/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/CategoryNode.java
index 8637d16..2f6ed78 100644
--- a/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/CategoryNode.java
+++ b/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/CategoryNode.java
@@ -37,10 +37,10 @@ public class CategoryNode {
 
   @Override
   public String toString() {
-    return "CategoryNode{" +
-        "id='" + id + '\'' +
-        ", name='" + name + '\'' +
-        ", children=" + children +
-        '}';
+    return "CategoryNode{"
+        + "id='" + id + '\''
+        + ", name='" + name + '\''
+        + ", children=" + children
+        + '}';
   }
 }
diff --git a/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/SheetController.java b/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/SheetController.java
index da42d44..edcaf88 100644
--- a/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/SheetController.java
+++ b/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/SheetController.java
@@ -37,6 +37,7 @@ import javax.faces.event.FacesEvent;
 import javax.inject.Inject;
 import javax.inject.Named;
 import java.io.Serializable;
+import java.lang.invoke.MethodHandles;
 import java.util.ArrayList;
 import java.util.Calendar;
 import java.util.Date;
@@ -48,7 +49,7 @@ import java.util.stream.Collectors;
 @Named
 public class SheetController implements Serializable {
 
-  private static final Logger LOG = LoggerFactory.getLogger(SheetController.class);
+  private static final Logger LOG = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
 
   private static final SelectItem[] SHEET_SELECTABLE;
 
@@ -84,7 +85,7 @@ public class SheetController implements Serializable {
 
     int i = 1;
     hugeSolarList = new ArrayList<>();
-    for (;;) {
+    while (true) {
       for (final SolarObject solarObject : solarList) {
         final SolarObject solarObjectClone = new SolarObject(solarObject);
         hugeSolarList.add(solarObjectClone);