Author: ilya_shaikovsky
Date: 2010-05-21 10:25:57 -0400 (Fri, 21 May 2010)
New Revision: 17178
Modified:
root/examples/richfaces-showcase/trunk/src/main/java/org/richfaces/demo/common/data/RandomHelper.java
root/examples/richfaces-showcase/trunk/src/main/java/org/richfaces/demo/tables/data/carstore/CarsBean.java
root/examples/richfaces-showcase/trunk/src/main/java/org/richfaces/demo/tables/data/carstore/InventoryItem.java
Log:
checkstyle fixes
Modified:
root/examples/richfaces-showcase/trunk/src/main/java/org/richfaces/demo/common/data/RandomHelper.java
===================================================================
---
root/examples/richfaces-showcase/trunk/src/main/java/org/richfaces/demo/common/data/RandomHelper.java 2010-05-21
14:24:08 UTC (rev 17177)
+++
root/examples/richfaces-showcase/trunk/src/main/java/org/richfaces/demo/common/data/RandomHelper.java 2010-05-21
14:25:57 UTC (rev 17178)
@@ -2,8 +2,12 @@
import java.util.Random;
-public class RandomHelper {
-
+public final class RandomHelper {
+
+ private RandomHelper() {
+
+ }
+
public static int genRand() {
return rand(1, 10000);
}
Modified:
root/examples/richfaces-showcase/trunk/src/main/java/org/richfaces/demo/tables/data/carstore/CarsBean.java
===================================================================
---
root/examples/richfaces-showcase/trunk/src/main/java/org/richfaces/demo/tables/data/carstore/CarsBean.java 2010-05-21
14:24:08 UTC (rev 17177)
+++
root/examples/richfaces-showcase/trunk/src/main/java/org/richfaces/demo/tables/data/carstore/CarsBean.java 2010-05-21
14:25:57 UTC (rev 17178)
@@ -4,20 +4,15 @@
package org.richfaces.demo.tables.data.carstore;
import java.math.BigDecimal;
-
import java.util.ArrayList;
import java.util.Arrays;
-import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
-import java.util.Random;
import javax.faces.bean.ManagedBean;
-import javax.faces.bean.ManagedProperty;
import javax.faces.bean.SessionScoped;
-import javax.faces.model.SelectItem;
import org.richfaces.demo.common.data.RandomHelper;
Modified:
root/examples/richfaces-showcase/trunk/src/main/java/org/richfaces/demo/tables/data/carstore/InventoryItem.java
===================================================================
---
root/examples/richfaces-showcase/trunk/src/main/java/org/richfaces/demo/tables/data/carstore/InventoryItem.java 2010-05-21
14:24:08 UTC (rev 17177)
+++
root/examples/richfaces-showcase/trunk/src/main/java/org/richfaces/demo/tables/data/carstore/InventoryItem.java 2010-05-21
14:25:57 UTC (rev 17178)
@@ -1,7 +1,7 @@
package org.richfaces.demo.tables.data.carstore;
public class InventoryItem extends InventoryVendorItem {
- public String vendor;
+ private String vendor;
public String getVendor() {
return vendor;