Author: lektran
Date: Fri Oct 23 00:42:16 2009
New Revision: 828903
URL:
http://svn.apache.org/viewvc?rev=828903&view=revLog:
Deprecated getVirtualvariantMethod due the camel casing typo in the method name, bothers me every time I see it. Added replacement method with corrected name.
Modified:
ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductWorker.java
Modified: ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductWorker.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductWorker.java?rev=828903&r1=828902&r2=828903&view=diff==============================================================================
--- ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductWorker.java (original)
+++ ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductWorker.java Fri Oct 23 00:42:16 2009
@@ -473,7 +473,15 @@
return features;
}
+ /**
+ * @deprecated Deprecated due to typo, use getProductVirtualVariantMethod(Delegator, String) instead
+ */
+ @Deprecated
public static String getProductvirtualVariantMethod(Delegator delegator, String productId) {
+ return getProductVirtualVariantMethod(delegator, productId);
+ }
+
+ public static String getProductVirtualVariantMethod(Delegator delegator, String productId) {
GenericValue product = null;
try {
product = delegator.findByPrimaryKeyCache("Product", UtilMisc.toMap("productId", productId));