mirror of
https://github.com/corda/corda.git
synced 2025-06-05 09:00:53 +00:00
implement Date.toString, which just defers to ctime for now (part 2)
This commit is contained in:
parent
4694d75553
commit
af794d9be0
@ -24,4 +24,10 @@ public class Date {
|
|||||||
public long getTime() {
|
public long getTime() {
|
||||||
return when;
|
return when;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String toString() {
|
||||||
|
return toString(when);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static native String toString(long when);
|
||||||
}
|
}
|
||||||
|
@ -18,6 +18,8 @@
|
|||||||
# define JNIEXPORT __attribute__ ((visibility("default")))
|
# define JNIEXPORT __attribute__ ((visibility("default")))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define UNUSED __attribute__((unused))
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
inline void
|
inline void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user