myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject [myfaces-tobago] branch tobago-4.x updated: optimize
Date Thu, 05 Mar 2020 09:21:56 GMT
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/tobago-4.x by this push:
     new 461c9fe  optimize
461c9fe is described below

commit 461c9fe15263119e75e46564c3af514af23e7269
Author: Udo Schnurpfeil <udo.schnurpfeil@irian.eu>
AuthorDate: Thu Mar 5 10:18:44 2020 +0100

    optimize
---
 .../org/apache/myfaces/tobago/example/demo/SheetController.java   | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

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 ce3968b8..da42d44 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
@@ -82,15 +82,15 @@ public class SheetController implements Serializable {
   private void init() {
     solarList = astroData.findAll().collect(Collectors.toList());
 
-    int j = 1;
+    int i = 1;
     hugeSolarList = new ArrayList<>();
-    for (int i = 1;; i++) {
+    for (;;) {
       for (final SolarObject solarObject : solarList) {
         final SolarObject solarObjectClone = new SolarObject(solarObject);
         hugeSolarList.add(solarObjectClone);
-        solarObjectClone.setName("#" + j++ + " " +  solarObject.getName());
+        solarObjectClone.setName("#" + i++ + " " +  solarObject.getName());
 
-        if (j > 10000) {
+        if (i > 10000) {
           return;
         }
       }


Mime
View raw message