mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 03:59:28 +02:00
* pas2jni: Suppress false warnings in Java code.
git-svn-id: trunk@34952 -
This commit is contained in:
parent
4dcc9de92f
commit
ea16dfdcf8
@ -1893,10 +1893,14 @@ begin
|
||||
Fjs.IncI;
|
||||
Fjs.WriteLn('protected int GetMask(TE Element) { return 1 << (Element.Ord() - Base()); }');
|
||||
Fjs.WriteLn('public Set() { }');
|
||||
Fjs.WriteLn('@SuppressWarnings({"unchecked", "varargs"})');
|
||||
Fjs.WriteLn('public Set(TE... Elements) { Include(Elements); }');
|
||||
Fjs.WriteLn('@SuppressWarnings({"unchecked", "varargs"})');
|
||||
Fjs.WriteLn('public Set(TS... Elements) { for (TS e : Elements) Include(e); }');
|
||||
Fjs.WriteLn('@SuppressWarnings({"unchecked", "varargs"})');
|
||||
Fjs.WriteLn('public void Include(TE... Elements) { for (TE e: Elements) Value = Value | GetMask(e); }');
|
||||
Fjs.WriteLn('public void Include(TS s) { Value=Value | s.Value; }');
|
||||
Fjs.WriteLn('@SuppressWarnings({"unchecked", "varargs"})');
|
||||
Fjs.WriteLn('public void Exclude(TE... Elements) { for (TE e: Elements) Value = Value & ~GetMask(e); }');
|
||||
Fjs.WriteLn('public void Exclude(TS s) { Value=Value & ~s.Value; }');
|
||||
Fjs.WriteLn('public void Assign(TS s) { Value=s.Value; }');
|
||||
|
Loading…
Reference in New Issue
Block a user