@@ -42,7 +42,6 @@ public DosLib() {
42
42
* return system time
43
43
*/
44
44
@ PascalMethod (description = "Dos library" , returns = "void" )
45
- @ SuppressWarnings ("unused" )
46
45
public static void getTime (PascalReference <Object > hour ,
47
46
PascalReference <Object > minute ,
48
47
PascalReference <Object > second ,
@@ -51,14 +50,13 @@ public static void getTime(PascalReference<Object> hour,
51
50
hour .set (calendar .get (Calendar .HOUR ));
52
51
minute .set (calendar .get (Calendar .MINUTE ));
53
52
second .set (calendar .get (Calendar .SECOND ));
54
- sec100 .set (calendar .get (Calendar .MILLISECOND ) / 100 );
53
+ sec100 .set (calendar .get (Calendar .MILLISECOND ) / 10 );
55
54
}
56
55
57
56
/**
58
57
* return system date
59
58
*/
60
59
@ PascalMethod (description = "Dos library" , returns = "void" )
61
- @ SuppressWarnings ("unused" )
62
60
public static void getDate (PascalReference <Integer > year ,
63
61
PascalReference <Integer > month ,
64
62
PascalReference <Integer > mday ,
@@ -108,8 +106,8 @@ public void declareFunctions(ExpressionContextMixin parentContext) {
108
106
}
109
107
110
108
@ PascalMethod (description = "Dos library" , returns = "void" )
111
- @ SuppressWarnings ("unused" )
112
109
public int dosVersion () {
113
110
return Build .VERSION .SDK_INT ;
114
111
}
112
+
115
113
}
0 commit comments