Author: jleroux
Date: Fri Mar 6 17:50:08 2009 New Revision: 751003 URL: http://svn.apache.org/viewvc?rev=751003&view=rev Log: }catch => } catch Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/ConvertTree.java ofbiz/trunk/applications/marketing/src/org/ofbiz/marketing/tracking/TrackingCodeEvents.java ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartEvents.java ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductServices.java ofbiz/trunk/applications/product/src/org/ofbiz/product/supplier/SupplierProductServices.java ofbiz/trunk/applications/product/src/org/ofbiz/shipment/thirdparty/ups/UpsServices.java ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/PosTransaction.java ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/event/MenuEvents.java ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/event/TestEvents.java ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/NumericKeypad.java ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/PaidInOut.java ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/SaveSale.java ofbiz/trunk/specialpurpose/shark/src/org/enhydra/shark/ThreadedToolAgentManager.java ofbiz/trunk/specialpurpose/shark/src/org/ofbiz/shark/repository/EntityRepositoryMgr.java 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=751003&r1=751002&r2=751003&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:50:08 2009 @@ -238,15 +238,15 @@ input.close(); } return ServiceUtil.returnSuccess(sucMsg); - }catch(IOException e) { + } catch(IOException e) { errMsg = "IOException "+ UtilMisc.toMap("errMessage", e.toString()); Debug.logError(e, errMsg, module); return ServiceUtil.returnError(errMsg); - }catch(GenericServiceException e) { + } catch(GenericServiceException e) { errMsg = "GenericServiceException "+ UtilMisc.toMap("errMessage", e.toString()); Debug.logError(e, errMsg, module); return ServiceUtil.returnError(errMsg); - }catch(GenericEntityException e) { + } catch(GenericEntityException e) { errMsg = "GenericEntityException "+ UtilMisc.toMap("errMessage", e.toString()); Debug.logError(e, errMsg, module); e.printStackTrace(); @@ -390,12 +390,12 @@ } return ServiceUtil.returnSuccess(sucMsg); - }catch(GenericEntityException e) { + } catch(GenericEntityException e) { errMsg = "GenericEntityException "+ UtilMisc.toMap("errMessage", e.toString()); Debug.logError(e, errMsg, module); e.printStackTrace(); return ServiceUtil.returnError(errMsg); - }catch(GenericServiceException e) { + } catch(GenericServiceException e) { errMsg = "GenericServiceException"+ UtilMisc.toMap("errMessage", e.toString()); Debug.logError(e, errMsg, module); e.printStackTrace(); Modified: ofbiz/trunk/applications/marketing/src/org/ofbiz/marketing/tracking/TrackingCodeEvents.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/marketing/src/org/ofbiz/marketing/tracking/TrackingCodeEvents.java?rev=751003&r1=751002&r2=751003&view=diff ============================================================================== --- ofbiz/trunk/applications/marketing/src/org/ofbiz/marketing/tracking/TrackingCodeEvents.java (original) +++ ofbiz/trunk/applications/marketing/src/org/ofbiz/marketing/tracking/TrackingCodeEvents.java Fri Mar 6 17:50:08 2009 @@ -462,7 +462,7 @@ if (affiliateReferredTime !=null && !affiliateReferredTime.equals("")) { try { affiliateReferredTimeStamp = Timestamp.valueOf(affiliateReferredTime); - }catch (IllegalArgumentException e) { + } catch (IllegalArgumentException e) { Debug.logError(e, "Error parsing affiliateReferredTimeStamp value from cookie", module); } } 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=751003&r1=751002&r2=751003&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:50:08 2009 @@ -162,7 +162,7 @@ Object object = paramMap.remove("add_product_id"); try { productId = (String) object; - }catch(ClassCastException e) { + } catch(ClassCastException e) { productId = (String)((List)object).get(0); } } Modified: ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductServices.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductServices.java?rev=751003&r1=751002&r2=751003&view=diff ============================================================================== --- ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductServices.java (original) +++ ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductServices.java Fri Mar 6 17:50:08 2009 @@ -964,11 +964,11 @@ Map<String, Object> resultResize = FastMap.newInstance(); try { resultResize.putAll(imageTransform.scaleImageInAllSize(context, filenameToUse, "additional", viewNumber)); - }catch(IOException e) { + } catch(IOException e) { String errMsg = "Scale additional image in all different sizes is impossible : " + e.toString(); Debug.logError(e, errMsg, module); return ServiceUtil.returnError(errMsg); - }catch(JDOMException e) { + } catch(JDOMException e) { String errMsg = "Errors occur in parsing ImageProperties.xml : " + e.toString(); Debug.logError(e, errMsg, module); return ServiceUtil.returnError(errMsg); Modified: ofbiz/trunk/applications/product/src/org/ofbiz/product/supplier/SupplierProductServices.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/src/org/ofbiz/product/supplier/SupplierProductServices.java?rev=751003&r1=751002&r2=751003&view=diff ============================================================================== --- ofbiz/trunk/applications/product/src/org/ofbiz/product/supplier/SupplierProductServices.java (original) +++ ofbiz/trunk/applications/product/src/org/ofbiz/product/supplier/SupplierProductServices.java Fri Mar 6 17:50:08 2009 @@ -115,7 +115,7 @@ } catch (GenericEntityException ex) { Debug.logError(ex, ex.getMessage(), module); return ServiceUtil.returnError(ex.getMessage()); - }catch(Exception ex) { + } catch(Exception ex) { Debug.logError(ex, ex.getMessage(), module); return ServiceUtil.returnError(ex.getMessage()); } Modified: ofbiz/trunk/applications/product/src/org/ofbiz/shipment/thirdparty/ups/UpsServices.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/src/org/ofbiz/shipment/thirdparty/ups/UpsServices.java?rev=751003&r1=751002&r2=751003&view=diff ============================================================================== --- ofbiz/trunk/applications/product/src/org/ofbiz/shipment/thirdparty/ups/UpsServices.java (original) +++ ofbiz/trunk/applications/product/src/org/ofbiz/shipment/thirdparty/ups/UpsServices.java Fri Mar 6 17:50:08 2009 @@ -1563,7 +1563,7 @@ try { return dctx.getDispatcher().runSync("upsRateEstimateByPostalCode", cxt); - }catch(GenericServiceException e) { + } catch(GenericServiceException e) { Debug.logError(e, module); return ServiceUtil.returnError(e.getMessage()); } 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=751003&r1=751002&r2=751003&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:50:08 2009 @@ -433,7 +433,7 @@ } catch (CartItemModifyException e) { trace("add item error", e); //throw e; - }catch (GenericEntityException e) { + } catch (GenericEntityException e) { trace("item lookup error", e); Debug.logError(e, module); } catch (Exception e) { @@ -479,7 +479,7 @@ } catch (CartItemModifyException e) { trace("add item error", e); throw e; - }catch (GenericEntityException e) { + } catch (GenericEntityException e) { trace("item lookup error", e); Debug.logError(e, module); } catch (Exception e) { Modified: ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/event/MenuEvents.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/event/MenuEvents.java?rev=751003&r1=751002&r2=751003&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/event/MenuEvents.java (original) +++ ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/event/MenuEvents.java Fri Mar 6 17:50:08 2009 @@ -205,7 +205,7 @@ pcw = configureItem.openDlg(); configureItem = null; } - }catch(Exception e) { + } catch(Exception e) { Debug.logError(e, module); pos.showDialog("dialog/error/producterror"); } @@ -445,7 +445,7 @@ }else{ pos.showDialog("dialog/error/itemnotconfigurable"); } - }catch(Exception e) { + } catch(Exception e) { Debug.logError(e, module); pos.showDialog("dialog/error/producterror"); } Modified: ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/event/TestEvents.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/event/TestEvents.java?rev=751003&r1=751002&r2=751003&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/event/TestEvents.java (original) +++ ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/event/TestEvents.java Fri Mar 6 17:50:08 2009 @@ -53,7 +53,7 @@ numericKeypad.setMinus(true); numericKeypad.setPercent(false); String results = numericKeypad.openDlg(); - }catch(Exception e) { + } catch(Exception e) { Debug.logError(e, module); } Modified: ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/NumericKeypad.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/NumericKeypad.java?rev=751003&r1=751002&r2=751003&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/NumericKeypad.java (original) +++ ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/NumericKeypad.java Fri Mar 6 17:50:08 2009 @@ -192,7 +192,7 @@ String text = ""; try { text = m_edit.getText(); - }catch (NullPointerException e) { + } catch (NullPointerException e) { // getText throws exception if no text text = ""; }finally{ @@ -250,7 +250,7 @@ String text = ""; try { text = m_edit.getText(); - }catch (NullPointerException e) { + } catch (NullPointerException e) { // getText throws exception if no text text = ""; }finally{ @@ -267,7 +267,7 @@ String text = ""; try { text = m_edit.getText(); - }catch (NullPointerException e) { + } catch (NullPointerException e) { // getText throws exception if no text text = ""; }finally{ Modified: ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/PaidInOut.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/PaidInOut.java?rev=751003&r1=751002&r2=751003&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/PaidInOut.java (original) +++ ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/PaidInOut.java Fri Mar 6 17:50:08 2009 @@ -152,7 +152,7 @@ numericKeypad.setMinus(true); numericKeypad.setPercent(false); m_amountEdit.setText(numericKeypad.openDlg()); - }catch(Exception e) { + } catch(Exception e) { Debug.logError(e, module); } m_dialog.repaint(); Modified: ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/SaveSale.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/SaveSale.java?rev=751003&r1=751002&r2=751003&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/SaveSale.java (original) +++ ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/screen/SaveSale.java Fri Mar 6 17:50:08 2009 @@ -133,7 +133,7 @@ Keyboard keyboard = new Keyboard(m_pos); keyboard.setText(m_saleName.getText()); m_saleName.setText(keyboard.openDlg()); - }catch(Exception e) { + } catch(Exception e) { Debug.logError(e, module); } m_dialog.repaint(); 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=751003&r1=751002&r2=751003&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:50:08 2009 @@ -112,7 +112,7 @@ org.enhydra.shark.xpdl.elements.Tools tolls = implt.getTools(); ArrayList al = tolls.toElements(); tools = al.iterator(); - }catch (Exception e) { + } catch (Exception e) { e.printStackTrace(); throw new BaseException(e); } Modified: ofbiz/trunk/specialpurpose/shark/src/org/ofbiz/shark/repository/EntityRepositoryMgr.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/shark/src/org/ofbiz/shark/repository/EntityRepositoryMgr.java?rev=751003&r1=751002&r2=751003&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/shark/src/org/ofbiz/shark/repository/EntityRepositoryMgr.java (original) +++ ofbiz/trunk/specialpurpose/shark/src/org/ofbiz/shark/repository/EntityRepositoryMgr.java Fri Mar 6 17:50:08 2009 @@ -324,7 +324,7 @@ long xpdlClassVer) throws RepositoryException { Debug.log("XPDL Upload : " + xpdlId, module); - //try {throw new Exception ("XPDL Upload");}catch(Exception e) {e.printStackTrace();}; + //try {throw new Exception ("XPDL Upload");} catch(Exception e) {e.printStackTrace();}; String newVersion = null; try { newVersion = nextVersions.updateNextVersion(xpdlId); |
Free forum by Nabble | Edit this page |