예제 #1
0
 /**
  * Logs warning message about deprecation of specified property or method of some class.
  *
  * @param clazz A class
  * @param methodOrPropName Name of deprecated property or method
  * @param version Version of Grails release in which property or method were deprecated
  */
 public static void deprecated(Class<?> clazz, String methodOrPropName, String version) {
   if (LOG_DEPRECATED) {
     deprecated(
         "Property or method ["
             + methodOrPropName
             + "] of class ["
             + clazz.getName()
             + "] is deprecated in ["
             + version
             + "] and will be removed in future releases");
   }
 }
예제 #2
0
 /**
  * Logs warning message about deprecation of specified property or method of some class.
  *
  * @param clazz A class
  * @param methodOrPropName Name of deprecated property or method
  */
 public static void deprecated(Class<?> clazz, String methodOrPropName) {
   deprecated(clazz, methodOrPropName, getGrailsVersion());
 }