Explorar o código

[java] Disable Date deprecation notices

Cauê Waneck %!s(int64=11) %!d(string=hai) anos
pai
achega
e4984ca3f9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      genjava.ml

+ 1 - 1
genjava.ml

@@ -2461,7 +2461,7 @@ let convert_java_enum ctx p pe =
     ) field.jf_flags;
 
     List.iter (function
-      | AttrDeprecated -> cff_meta := (Meta.Deprecated, [], p) :: !cff_meta
+      | AttrDeprecated when jc.cpath <> (["java";"util"],"Date") -> cff_meta := (Meta.Deprecated, [], p) :: !cff_meta
       (* TODO: pass anotations as @:meta *)
       | AttrVisibleAnnotations ann ->
         List.iter (function