Author: jleroux
Date: Fri Mar 6 17:38:03 2009
New Revision: 750998
URL: http://svn.apache.org/viewvc?rev=750998&view=rev
Log:
while( => while (
Modified:
ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java
ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/AuthorizeResponse.java
ofbiz/trunk/applications/content/src/org/ofbiz/content/ContentManagementWorker.java
ofbiz/trunk/applications/content/src/org/ofbiz/content/ConvertTree.java
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/bom/BOMNode.java
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.java
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/MrpServices.java
ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java
ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartEvents.java
ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartItem.java
ofbiz/trunk/applications/party/src/org/ofbiz/party/contact/ContactMechServices.java
ofbiz/trunk/applications/product/src/org/ofbiz/product/config/ProductConfigWorker.java
ofbiz/trunk/applications/product/src/org/ofbiz/product/inventory/InventoryServices.java
ofbiz/trunk/framework/appserver/src/org/ofbiz/appservers/GenerateContainer.java
ofbiz/trunk/framework/base/src/org/ofbiz/base/util/HttpRequestFileUpload.java
ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelEntity.java
ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/ProductsExportToEbay.java
ofbiz/trunk/specialpurpose/googlebase/src/org/ofbiz/googlebase/ProductsExportToGoogle.java
ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisInventoryServices.java
ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/PosTransaction.java
ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/ConfigureItem.java
ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/LoadSale.java
ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/SelectProduct.java
ofbiz/trunk/specialpurpose/projectmgr/src/org/ofbiz/project/Various.java
ofbiz/trunk/specialpurpose/shark/src/org/enhydra/shark/ThreadedToolAgentManager.java
ofbiz/trunk/specialpurpose/shark/src/org/ofbiz/shark/instance/EntityPersistentMgr.java
Modified:
ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java?rev=750998&r1=750997&r2=750998&view=diff
==============================================================================
---
ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java
(original)
+++
ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java
Fri Mar 6 17:38:03 2009
@@ -1350,7 +1350,7 @@
BigDecimal totalAdditionalShippingCharges = ZERO;
if (UtilValidate.isNotEmpty(invoiceableShipments)) {
Iterator isit = invoiceableShipments.iterator();
- while(isit.hasNext()) {
+ while (isit.hasNext()) {
GenericValue shipment = (GenericValue) isit.next();
if (shipment.get("additionalShippingCharge") == null)
continue;
BigDecimal shipmentAdditionalShippingCharges =
shipment.getBigDecimal("additionalShippingCharge").setScale(decimals, rounding);
Modified:
ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/AuthorizeResponse.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/AuthorizeResponse.java?rev=750998&r1=750997&r2=750998&view=diff
==============================================================================
---
ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/AuthorizeResponse.java
(original)
+++
ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/AuthorizeResponse.java
Fri Mar 6 17:38:03 2009
@@ -157,7 +157,7 @@
int s1=0, s2=-1;
List out = new ArrayList(40);
out.add("empty");
- while(true) {
+ while (true) {
s2 = r.indexOf(delim, s1);
if (s2 != -1) {
out.add(r.substring(s1, s2));
Modified:
ofbiz/trunk/applications/content/src/org/ofbiz/content/ContentManagementWorker.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/ContentManagementWorker.java?rev=750998&r1=750997&r2=750998&view=diff
==============================================================================
---
ofbiz/trunk/applications/content/src/org/ofbiz/content/ContentManagementWorker.java
(original)
+++
ofbiz/trunk/applications/content/src/org/ofbiz/content/ContentManagementWorker.java
Fri Mar 6 17:38:03 2009
@@ -262,7 +262,7 @@
useCached = true;
keyColl = cachedPK.getPrimaryKey().getAllKeys();
keyIt = keyColl.iterator();
- while(keyIt.hasNext()) {
+ while (keyIt.hasNext()) {
String sCached = null;
String sPassed = null;
Object oPassed = null;
@@ -320,7 +320,7 @@
// Check that user has permission to admin sites
Iterator it = allPublishPoints.iterator();
- while(it.hasNext()) {
+ while (it.hasNext()) {
GenericValue webSitePP = (GenericValue)it.next();
String contentId = (String)webSitePP.get("contentId");
String templateTitle = (String)webSitePP.get("templateTitle");
@@ -433,7 +433,7 @@
List staticValueList = FastList.newInstance();
Iterator it = assocValueList.iterator();
int counter = 0;
- while(it.hasNext()) {
+ while (it.hasNext()) {
GenericValue content = (GenericValue)it.next();
String contentId = (String)content.get("contentId");
String contentName = (String)content.get("contentName");
@@ -666,7 +666,7 @@
// Check that user has permission to admin sites
Iterator it = allDepartmentPoints.iterator();
- while(it.hasNext()) {
+ while (it.hasNext()) {
GenericValue content = (GenericValue)it.next();
String contentId = (String)content.get("contentId");
String contentName = (String)content.get("contentName");
Modified:
ofbiz/trunk/applications/content/src/org/ofbiz/content/ConvertTree.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/ConvertTree.java?rev=750998&r1=750997&r2=750998&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/src/org/ofbiz/content/ConvertTree.java
(original)
+++ ofbiz/trunk/applications/content/src/org/ofbiz/content/ConvertTree.java Fri
Mar 6 17:38:03 2009
@@ -155,7 +155,7 @@
contentAssocs=
delegator.findByAnd("ContentAssoc", UtilMisc.toMap("contentId",contentId,
"contentIdTo", rootContent));
List<GenericValue>
contentAssocCheck= delegator.findByAnd("ContentAssoc",
UtilMisc.toMap("contentIdTo", rootContent));
Iterator<GenericValue>
contentAssChecks = contentAssocCheck.iterator();
-
while(contentAssChecks.hasNext() && contentNameMatch == false) {
+ while
(contentAssChecks.hasNext() && contentNameMatch == false) {
GenericValue contentAss =
contentAssChecks.next();
GenericValue contentcheck
=
delegator.findByPrimaryKey("Content",UtilMisc.toMap("contentId",contentAss.get("contentId")));
if (contentcheck!=null) {
@@ -283,7 +283,7 @@
List<GenericValue> contents =
delegator.findByAnd("Content",
UtilMisc.toMap("contentName",contentName),null,"-contentId");
if (contents!=null) {
Iterator<GenericValue> contentCheck =
contents.iterator();
- while(contentCheck.hasNext() &&
contentNameMatch==false) {
+ while (contentCheck.hasNext() &&
contentNameMatch==false) {
GenericValue contentch = contentCheck.next();
if (contentch!=null) {
List<GenericValue> contentAssocsChecks =
delegator.findByAnd("ContentAssoc",
UtilMisc.toMap("contentId",contentch.get("contentId"), "contentIdTo",
rootContent));
@@ -343,7 +343,7 @@
List<GenericValue> contents =
delegator.findByAnd("Content", UtilMisc.toMap("contentName",contentName));
if (contents!=null) {
Iterator<GenericValue> contentCheck =
contents.iterator();
- while(contentCheck.hasNext() &&
contentNameMatch==false) {
+ while (contentCheck.hasNext() &&
contentNameMatch==false) {
GenericValue contentch = contentCheck.next();
if (contentch!=null) {
List<GenericValue> contentAssocsChecks =
delegator.findByAnd("ContentAssoc",
UtilMisc.toMap("contentId",contentch.get("contentId"), "contentIdTo",
rootContent));
Modified:
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/bom/BOMNode.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/bom/BOMNode.java?rev=750998&r1=750997&r2=750998&view=diff
==============================================================================
---
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/bom/BOMNode.java
(original)
+++
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/bom/BOMNode.java
Fri Mar 6 17:38:03 2009
@@ -115,7 +115,7 @@
Iterator childrenIterator = children.iterator();
GenericValue oneChild = null;
BOMNode oneChildNode = null;
- while(childrenIterator.hasNext()) {
+ while (childrenIterator.hasNext()) {
oneChild = (GenericValue)childrenIterator.next();
// Configurator
oneChildNode = configurator(oneChild, productFeatures,
getRootNode().getProductForRules(), inDate);
@@ -342,7 +342,7 @@
Iterator childrenIterator = children.iterator();
GenericValue oneChild = null;
BOMNode oneChildNode = null;
- while(childrenIterator.hasNext()) {
+ while (childrenIterator.hasNext()) {
oneChild = (GenericValue)childrenIterator.next();
oneChildNode = new BOMNode(oneChild.getString("productId"),
delegator, dispatcher, userLogin);
// Configurator
Modified:
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.java?rev=750998&r1=750997&r2=750998&view=diff
==============================================================================
---
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.java
(original)
+++
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.java
Fri Mar 6 17:38:03 2009
@@ -365,7 +365,7 @@
}
if (workEffortPartyAssignments != null) {
Iterator i = workEffortPartyAssignments.iterator();
- while(i.hasNext()) {
+ while (i.hasNext()) {
GenericValue workEffortPartyAssignment =
(GenericValue) i.next();
Map partyToWorkEffort = UtilMisc.toMap(
"workEffortId", productionRunTaskId,
@@ -1392,7 +1392,7 @@
}
if (workEffortPartyAssignments != null) {
Iterator i = workEffortPartyAssignments.iterator();
- while(i.hasNext()) {
+ while (i.hasNext()) {
GenericValue workEffortPartyAssignment = (GenericValue)
i.next();
Map partyToWorkEffort = UtilMisc.toMap(
"workEffortId", productionRunTaskId,
Modified:
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/MrpServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/MrpServices.java?rev=750998&r1=750997&r2=750998&view=diff
==============================================================================
---
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/MrpServices.java
(original)
+++
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/MrpServices.java
Fri Mar 6 17:38:03 2009
@@ -217,7 +217,7 @@
return ServiceUtil.returnError("Problem, we can not find all the
items of MrpEvent, for more detail look at the log");
}
iteratorResult = resultList.iterator();
- while(iteratorResult.hasNext()) {
+ while (iteratorResult.hasNext()) {
genericResult = (GenericValue) iteratorResult.next();
String productId = genericResult.getString("productId");
BigDecimal eventQuantityTmp =
genericResult.getBigDecimal("quantity");
@@ -328,7 +328,7 @@
return ServiceUtil.returnError("Problem, we can not find the order
items, for more detail look at the log");
}
iteratorResult = resultList.iterator();
- while(iteratorResult.hasNext()) {
+ while (iteratorResult.hasNext()) {
genericResult = (GenericValue) iteratorResult.next();
String productId = genericResult.getString("productId");
BigDecimal eventQuantityTmp =
genericResult.getBigDecimal("estimatedQuantity").negate();
@@ -360,7 +360,7 @@
return ServiceUtil.returnError("Problem, we can not find the order
items, for more detail look at the log");
}
iteratorResult = resultList.iterator();
- while(iteratorResult.hasNext()) {
+ while (iteratorResult.hasNext()) {
genericResult = (GenericValue) iteratorResult.next();
if
("PRUN_CLOSED".equals(genericResult.getString("currentStatusId"))) {
continue;
@@ -405,7 +405,7 @@
return ServiceUtil.returnError("Unable to retrieve ProductFacility
records.");
}
iteratorResult = resultList.iterator();
- while(iteratorResult.hasNext()) {
+ while (iteratorResult.hasNext()) {
genericResult = (GenericValue) iteratorResult.next();
String productId = genericResult.getString("productId");
BigDecimal minimumStock =
genericResult.getBigDecimal("minimumStock");
Modified:
ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java?rev=750998&r1=750997&r2=750998&view=diff
==============================================================================
---
ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java
(original)
+++
ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java
Fri Mar 6 17:38:03 2009
@@ -224,7 +224,7 @@
BigDecimal chargedToPaymentPref = ZERO;
Iterator payit = payments.iterator();
- while(payit.hasNext()) {
+ while (payit.hasNext()) {
GenericValue payment = (GenericValue) payit.next();
if (payment.get("amount") != null) {
chargedToPaymentPref =
chargedToPaymentPref.add(payment.getBigDecimal("amount")).setScale(scale+1,
rounding);
@@ -1810,7 +1810,7 @@
}
//get returnedAmount from returnHeader adjustments whose orderId must
equals to current orderHeader.orderId
Iterator returnHeaderIterator = returnHeaderList.iterator();
- while(returnHeaderIterator.hasNext()) {
+ while (returnHeaderIterator.hasNext()) {
String returnId = (String) returnHeaderIterator.next();
Map returnHeaderAdjFilter = UtilMisc.toMap("returnId", returnId,
"returnItemSeqId", "_NA_");
returnedAmount
=returnedAmount.add(getReturnAdjustmentTotal(orderHeader.getDelegator(),
returnHeaderAdjFilter)).setScale(scale, rounding);
@@ -2483,7 +2483,7 @@
if (!promoAdjustments.isEmpty()) {
Iterator promoAdjIter = promoAdjustments.iterator();
- while(promoAdjIter.hasNext()) {
+ while (promoAdjIter.hasNext()) {
GenericValue promoAdjustment = (GenericValue)
promoAdjIter.next();
if (promoAdjustment != null) {
Modified:
ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartEvents.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartEvents.java?rev=750998&r1=750997&r2=750998&view=diff
==============================================================================
---
ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartEvents.java
(original)
+++
ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartEvents.java
Fri Mar 6 17:38:03 2009
@@ -251,7 +251,7 @@
// get the selected features.
List <String> selectedFeatures = new LinkedList<String>();
java.util.Enumeration paramNames = request.getParameterNames();
- while(paramNames.hasMoreElements()) {
+ while (paramNames.hasMoreElements()) {
String paramName = (String)paramNames.nextElement();
if (paramName.startsWith("FT")) {
selectedFeatures.add(request.getParameterValues(paramName)[0]);
Modified:
ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartItem.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartItem.java?rev=750998&r1=750997&r2=750998&view=diff
==============================================================================
---
ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartItem.java
(original)
+++
ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartItem.java
Fri Mar 6 17:38:03 2009
@@ -1122,7 +1122,7 @@
List surveyResponses = (List)
attributes.get("surveyResponses");
if (UtilValidate.isNotEmpty(surveyResponses)) {
Iterator surveyItr =
surveyResponses.iterator();
- while(surveyItr.hasNext()) {
+ while (surveyItr.hasNext()) {
String surveyResponseId =
(String)surveyItr.next();
// TODO: implement multiple survey per
product
if
(UtilValidate.isNotEmpty(surveyResponseId)) {
Modified:
ofbiz/trunk/applications/party/src/org/ofbiz/party/contact/ContactMechServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/src/org/ofbiz/party/contact/ContactMechServices.java?rev=750998&r1=750997&r2=750998&view=diff
==============================================================================
---
ofbiz/trunk/applications/party/src/org/ofbiz/party/contact/ContactMechServices.java
(original)
+++
ofbiz/trunk/applications/party/src/org/ofbiz/party/contact/ContactMechServices.java
Fri Mar 6 17:38:03 2009
@@ -1054,7 +1054,7 @@
SecureRandom secureRandom = new SecureRandom();
synchronized(ContactMechServices.class) {
- while(true) {
+ while (true) {
Long random = secureRandom.nextLong();
verifyHash = HashCrypt.getDigestHash(Long.toString(random),
"MD5");
List<GenericValue> emailAddVerifications = null;
Modified:
ofbiz/trunk/applications/product/src/org/ofbiz/product/config/ProductConfigWorker.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/src/org/ofbiz/product/config/ProductConfigWorker.java?rev=750998&r1=750997&r2=750998&view=diff
==============================================================================
---
ofbiz/trunk/applications/product/src/org/ofbiz/product/config/ProductConfigWorker.java
(original)
+++
ofbiz/trunk/applications/product/src/org/ofbiz/product/config/ProductConfigWorker.java
Fri Mar 6 17:38:03 2009
@@ -140,7 +140,7 @@
// get the selected features
List<String> selectedFeatures =
FastList.newInstance();
Enumeration paramNames =
request.getParameterNames();
-
while(paramNames.hasMoreElements()) {
+ while
(paramNames.hasMoreElements()) {
String paramName =
(String)paramNames.nextElement();
if (paramName.startsWith("FT"
+ k + "_" + cnt + "_" + variantIndex)) {
selectedFeatures.add(request.getParameterValues(paramName)[0]);
Modified:
ofbiz/trunk/applications/product/src/org/ofbiz/product/inventory/InventoryServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/src/org/ofbiz/product/inventory/InventoryServices.java?rev=750998&r1=750997&r2=750998&view=diff
==============================================================================
---
ofbiz/trunk/applications/product/src/org/ofbiz/product/inventory/InventoryServices.java
(original)
+++
ofbiz/trunk/applications/product/src/org/ofbiz/product/inventory/InventoryServices.java
Fri Mar 6 17:38:03 2009
@@ -930,7 +930,7 @@
// Sum the sales usage quantities found
BigDecimal salesUsageQuantity = BigDecimal.ZERO;
GenericValue salesUsageItem = null;
- while((salesUsageItem = salesUsageIt.next()) != null) {
+ while ((salesUsageItem = salesUsageIt.next()) != null) {
if (salesUsageItem.get("quantity") != null) {
try {
salesUsageQuantity =
salesUsageQuantity.add(salesUsageItem.getBigDecimal("quantity"));
@@ -967,7 +967,7 @@
// Sum the production usage quantities found
BigDecimal productionUsageQuantity = BigDecimal.ZERO;
GenericValue productionUsageItem = null;
- while((productionUsageItem = productionUsageIt.next()) != null) {
+ while ((productionUsageItem = productionUsageIt.next()) != null) {
if (productionUsageItem.get("quantity") != null) {
try {
productionUsageQuantity =
productionUsageQuantity.add(productionUsageItem.getBigDecimal("quantity"));
Modified:
ofbiz/trunk/framework/appserver/src/org/ofbiz/appservers/GenerateContainer.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/appserver/src/org/ofbiz/appservers/GenerateContainer.java?rev=750998&r1=750997&r2=750998&view=diff
==============================================================================
---
ofbiz/trunk/framework/appserver/src/org/ofbiz/appservers/GenerateContainer.java
(original)
+++
ofbiz/trunk/framework/appserver/src/org/ofbiz/appservers/GenerateContainer.java
Fri Mar 6 17:38:03 2009
@@ -280,7 +280,7 @@
java.io.InputStream is = process.getInputStream();
byte[] buf = new byte[2024];
int readLen = 0;
- while((readLen = is.read(buf,0,buf.length)) != -1) {
+ while ((readLen = is.read(buf,0,buf.length)) != -1) {
if ("\\".equals(separator)) { //Windows
System.out.print(new String(buf,0,readLen));
} else {
@@ -341,7 +341,7 @@
java.io.InputStream is = process.getInputStream();
byte[] buf = new byte[2024];
int readLen = 0;
- while((readLen = is.read(buf,0,buf.length)) != -1) {
+ while ((readLen = is.read(buf,0,buf.length)) != -1) {
if ("\\".equals(separator)) { //Windows
System.out.print(new String(buf,0,readLen));
} else {
Modified:
ofbiz/trunk/framework/base/src/org/ofbiz/base/util/HttpRequestFileUpload.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/HttpRequestFileUpload.java?rev=750998&r1=750997&r2=750998&view=diff
==============================================================================
---
ofbiz/trunk/framework/base/src/org/ofbiz/base/util/HttpRequestFileUpload.java
(original)
+++
ofbiz/trunk/framework/base/src/org/ofbiz/base/util/HttpRequestFileUpload.java
Fri Mar 6 17:38:03 2009
@@ -112,7 +112,7 @@
/* System.out.println("Header:");
Enumeration ee = request.getHeaderNames();
- while(ee.hasMoreElements()) {
+ while (ee.hasMoreElements()) {
String ss = (String)ee.nextElement();
System.out.println(ss + " = [" + request.getHeader(ss) + "]");
}*/
Modified:
ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelEntity.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelEntity.java?rev=750998&r1=750997&r2=750998&view=diff
==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelEntity.java
(original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelEntity.java
Fri Mar 6 17:38:03 2009
@@ -919,7 +919,7 @@
}
Iterator<ModelField> fldsIt = flds.iterator();
- while(fldsIt.hasNext()) {
+ while (fldsIt.hasNext()) {
ModelField field = fldsIt.next();
returnString.append(field.colName);
if (fldsIt.hasNext()) {
Modified:
ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/ProductsExportToEbay.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/ProductsExportToEbay.java?rev=750998&r1=750997&r2=750998&view=diff
==============================================================================
---
ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/ProductsExportToEbay.java
(original)
+++
ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/ProductsExportToEbay.java
Fri Mar 6 17:38:03 2009
@@ -183,7 +183,7 @@
// Iterate the product list getting all the relevant data
Iterator productsListItr = productsList.iterator();
- while(productsListItr.hasNext()) {
+ while (productsListItr.hasNext()) {
GenericValue prod = (GenericValue)productsListItr.next();
String title = parseText(prod.getString("internalName"));
String description =
parseText(prod.getString("internalName"));
Modified:
ofbiz/trunk/specialpurpose/googlebase/src/org/ofbiz/googlebase/ProductsExportToGoogle.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/googlebase/src/org/ofbiz/googlebase/ProductsExportToGoogle.java?rev=750998&r1=750997&r2=750998&view=diff
==============================================================================
---
ofbiz/trunk/specialpurpose/googlebase/src/org/ofbiz/googlebase/ProductsExportToGoogle.java
(original)
+++
ofbiz/trunk/specialpurpose/googlebase/src/org/ofbiz/googlebase/ProductsExportToGoogle.java
Fri Mar 6 17:38:03 2009
@@ -370,7 +370,7 @@
int index = 0;
String itemActionType = null;
GenericValue googleProduct;
- while(productsListItr.hasNext()) {
+ while (productsListItr.hasNext()) {
itemActionType = actionType;
GenericValue prod =
(GenericValue)productsListItr.next();
String price = getProductPrice(dispatcher, prod);
Modified:
ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisInventoryServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisInventoryServices.java?rev=750998&r1=750997&r2=750998&view=diff
==============================================================================
---
ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisInventoryServices.java
(original)
+++
ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisInventoryServices.java
Fri Mar 6 17:38:03 2009
@@ -239,7 +239,7 @@
}
Iterator fcmIter = facilityContactMechs.iterator();
- while(fcmIter.hasNext()) {
+ while (fcmIter.hasNext()) {
GenericValue facilityContactMech = (GenericValue)
fcmIter.next();
String contactMechId =
facilityContactMech.getString("contactMechId");
try {
Modified: ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/PosTransaction.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/PosTransaction.java?rev=750998&r1=750997&r2=750998&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/PosTransaction.java
(original)
+++ ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/PosTransaction.java Fri
Mar 6 17:38:03 2009
@@ -272,7 +272,7 @@
pcw = item.getConfigWrapper();
List selected = pcw.getSelectedOptions();
Iterator iter = selected.iterator();
- while(iter.hasNext()) {
+ while (iter.hasNext()) {
ConfigOption configoption = (ConfigOption)iter.next();
Map itemInfo = FastMap.newInstance();
if (configoption.isSelected() && !configoption.isDefault()) {
@@ -944,7 +944,7 @@
pcw = item.getConfigWrapper();
List selected = pcw.getSelectedOptions();
Iterator iter = selected.iterator();
- while(iter.hasNext()) {
+ while (iter.hasNext()) {
ConfigOption configoption = (ConfigOption)iter.next();
if (configoption.isSelected()) {
XModel option = Journal.appendNode(model, "tr",
""+cart.getItemIndex(item), "");
@@ -987,13 +987,13 @@
if (UtilValidate.isNotEmpty(adjustments)) {
Iterator iter = adjustments.iterator();
- while(iter.hasNext()) {
+ while (iter.hasNext()) {
GenericValue orderAdjustment = (GenericValue) iter.next();
BigDecimal amount =
orderAdjustment.getBigDecimal("amount");
}
iter = adjustments.iterator();
- while(iter.hasNext()) {
+ while (iter.hasNext()) {
GenericValue orderAdjustment = (GenericValue) iter.next();
BigDecimal amount =
orderAdjustment.getBigDecimal("amount");
BigDecimal sourcePercentage =
orderAdjustment.getBigDecimal("sourcePercentage");
Modified:
ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/ConfigureItem.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/ConfigureItem.java?rev=750998&r1=750997&r2=750998&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/ConfigureItem.java
(original)
+++ ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/ConfigureItem.java
Fri Mar 6 17:38:03 2009
@@ -162,11 +162,11 @@
if (questions==null) ; // no questions, we shouldn't be here
else{
Iterator iter = questions.iterator();
- while(iter.hasNext()) {
+ while (iter.hasNext()) {
ConfigItem question = (ConfigItem)iter.next();
List options = question.getOptions();
Iterator itero = options.iterator();
- while(itero.hasNext()) {
+ while (itero.hasNext()) {
ConfigOption configoption = (ConfigOption)itero.next();
if (configoption.isSelected()) {
listModel.addElement("
"+configoption.getDescription());
@@ -188,7 +188,7 @@
else{
Iterator iter = questions.iterator();
Iterator buttons = m_buttonList.iterator();
- while(iter.hasNext()) {
+ while (iter.hasNext()) {
Question buttonQuestion = qf.get((ConfigItem)iter.next());
XButton button = (XButton)buttons.next();
questionHashMap.put(button.getName(), buttonQuestion );
@@ -224,7 +224,7 @@
if (questions==null) return; // no questions, return
Iterator iter = questions.iterator();
- while(iter.hasNext()) {
+ while (iter.hasNext()) {
ConfigItem question = (ConfigItem)iter.next();
/*Debug.logInfo("Question: " + question.getQuestion(), module);
Debug.logInfo("IsFirst: "+question.isFirst()+
@@ -236,7 +236,7 @@
List options = question.getOptions();
Iterator itero = options.iterator();
- while(itero.hasNext()) {
+ while (itero.hasNext()) {
ConfigOption configoption = (ConfigOption)itero.next();
/*Debug.logInfo("Found option " +
configoption.getDescription(), module);
Debug.logInfo("IsAvailable: "+configoption.isAvailable()+
@@ -376,7 +376,7 @@
DefaultListModel listModel = new DefaultListModel();
- while(options.hasNext()) {
+ while (options.hasNext()) {
ConfigOption configoption = (ConfigOption)options.next();
listModel.addElement(configoption.getDescription());
//Debug.logInfo("Found option " +
configoption.getDescription(), module);
Modified: ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/LoadSale.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/LoadSale.java?rev=750998&r1=750997&r2=750998&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/LoadSale.java
(original)
+++ ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/LoadSale.java Fri
Mar 6 17:38:03 2009
@@ -198,7 +198,7 @@
if (null != m_salesList.getSelectedValue()) {
String sale = (String) m_salesList.getSelectedValue();
Iterator i = m_saleMap.entrySet().iterator();
- while(i.hasNext()) {
+ while (i.hasNext()) {
Object o = i.next();
Map.Entry entry = (Map.Entry)o;
String val = entry.getValue().toString();
Modified:
ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/SelectProduct.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/SelectProduct.java?rev=750998&r1=750997&r2=750998&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/SelectProduct.java
(original)
+++ ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/SelectProduct.java
Fri Mar 6 17:38:03 2009
@@ -115,7 +115,7 @@
if (null != m_productsList.getSelectedValue()) {
String product = (String) m_productsList.getSelectedValue();
Iterator i = m_productsMap.entrySet().iterator();
- while(i.hasNext()) {
+ while (i.hasNext()) {
Object o = i.next();
Map.Entry entry = (Map.Entry)o;
String val = entry.getValue().toString();
Modified:
ofbiz/trunk/specialpurpose/projectmgr/src/org/ofbiz/project/Various.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/src/org/ofbiz/project/Various.java?rev=750998&r1=750997&r2=750998&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/src/org/ofbiz/project/Various.java
(original)
+++ ofbiz/trunk/specialpurpose/projectmgr/src/org/ofbiz/project/Various.java
Fri Mar 6 17:38:03 2009
@@ -105,7 +105,7 @@
actuals = delegator.findByAnd("TimeEntry",
UtilMisc.toMap("timesheetId", timesheetId));
if (actuals.size() > 0) {
Iterator ite = actuals.iterator();
- while(ite.hasNext()) {
+ while (ite.hasNext()) {
GenericValue actual =(GenericValue)ite.next();
Double hour = (Double) actual.get("hours");
double hours = hour.doubleValue();
Modified:
ofbiz/trunk/specialpurpose/shark/src/org/enhydra/shark/ThreadedToolAgentManager.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/shark/src/org/enhydra/shark/ThreadedToolAgentManager.java?rev=750998&r1=750997&r2=750998&view=diff
==============================================================================
---
ofbiz/trunk/specialpurpose/shark/src/org/enhydra/shark/ThreadedToolAgentManager.java
(original)
+++
ofbiz/trunk/specialpurpose/shark/src/org/enhydra/shark/ThreadedToolAgentManager.java
Fri Mar 6 17:38:03 2009
@@ -117,7 +117,7 @@
throw new BaseException(e);
}
- while(tools.hasNext()) {
+ while (tools.hasNext()) {
Tool tool = (Tool)tools.next();
cus.info("Activity"+activity.toString()+" - Executing tool
[id="+tool.getId()+"]");
// implement me
Modified:
ofbiz/trunk/specialpurpose/shark/src/org/ofbiz/shark/instance/EntityPersistentMgr.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/shark/src/org/ofbiz/shark/instance/EntityPersistentMgr.java?rev=750998&r1=750997&r2=750998&view=diff
==============================================================================
---
ofbiz/trunk/specialpurpose/shark/src/org/ofbiz/shark/instance/EntityPersistentMgr.java
(original)
+++
ofbiz/trunk/specialpurpose/shark/src/org/ofbiz/shark/instance/EntityPersistentMgr.java
Fri Mar 6 17:38:03 2009
@@ -330,7 +330,7 @@
if (sqlWhere != null)
{
st = new StringTokenizer(sqlWhere);
- while(st.hasMoreElements())
+ while (st.hasMoreElements())
{
Elem = (String)st.nextElement();
if
(Elem.equalsIgnoreCase(org.ofbiz.shark.SharkConstants.packageId)) {
@@ -967,7 +967,7 @@
if (sqlWhere != null)
{
st = new StringTokenizer(sqlWhere);
- while(st.hasMoreElements())
+ while (st.hasMoreElements())
{
element = (String)st.nextElement();
if (element.equalsIgnoreCase("ProcessDefinitions"))
@@ -1036,7 +1036,7 @@
if (sqlWhere != null)
{
st = new StringTokenizer(sqlWhere);
- while(st.hasMoreElements())
+ while (st.hasMoreElements())
{
element = (String)st.nextElement();
if (element.equals("Id"))