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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

lektran
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;
     }