java/String: remove unnecessary env
parameter
This commit is contained in:
parent
ee86434a89
commit
285ba54fe5
@ -66,9 +66,8 @@ public:
|
||||
* @return a pointer to the terminating null byte,
|
||||
* nullptr on error
|
||||
*/
|
||||
char *CopyTo(JNIEnv *env,
|
||||
char *buffer, size_t max_size) const noexcept {
|
||||
return CopyTo(env, Get(), buffer, max_size);
|
||||
char *CopyTo(char *buffer, size_t max_size) const noexcept {
|
||||
return CopyTo(GetEnv(), Get(), buffer, max_size);
|
||||
}
|
||||
|
||||
static std::string ToString(JNIEnv *env, jstring s) noexcept;
|
||||
|
Loading…
x
Reference in New Issue
Block a user