You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by le...@apache.org on 2009/10/03 05:39:30 UTC

svn commit: r821233 - /ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataResourceWorker.java

Author: lektran
Date: Sat Oct  3 03:39:29 2009
New Revision: 821233

URL: http://svn.apache.org/viewvc?rev=821233&view=rev
Log:
Removed use of a deprecated method from getImageType(GenericDelegator, String) and deprecated the method itself

Modified:
    ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataResourceWorker.java

Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataResourceWorker.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataResourceWorker.java?rev=821233&r1=821232&r2=821233&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataResourceWorker.java (original)
+++ ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataResourceWorker.java Sat Oct  3 03:39:29 2009
@@ -376,10 +376,12 @@
 
     /**
      * Returns the image type.
+     * @deprecated Use getMimeType(GenericValue) instead
      */
+    @Deprecated
     public static String getImageType(GenericDelegator delegator, String dataResourceId) throws GenericEntityException {
         GenericValue dataResource = delegator.findByPrimaryKey("DataResource", UtilMisc.toMap("dataResourceId", dataResourceId));
-        String imageType = getImageType(delegator, dataResource);
+        String imageType = getMimeType(dataResource);
         return imageType;
     }