Skip to content

Commit

Permalink
[java] Disable Date deprecation notices
Browse files Browse the repository at this point in the history
  • Loading branch information
waneck committed Apr 12, 2014
1 parent 73d7891 commit e4984ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion genjava.ml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e4984ca

Please sign in to comment.