X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f1c440626e48ed8e544c438b6e0fcb178d654596..fa24a78f2f06ef0c3a34693fd32d52be51f55189:/src/bindings/java/jmsg_file.cpp diff --git a/src/bindings/java/jmsg_file.cpp b/src/bindings/java/jmsg_file.cpp index dff4b348e7..def75aaf8d 100644 --- a/src/bindings/java/jmsg_file.cpp +++ b/src/bindings/java/jmsg_file.cpp @@ -1,20 +1,19 @@ -/* Functions related to the java file API. */ +/* Java bindings of the file API. */ -/* Copyright (c) 2012-2014. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2012-2018. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ #include "jmsg_file.h" -#include "jxbt_utilities.h" +#include "jxbt_utilities.hpp" void jfile_bind(JNIEnv *env, jobject jfile, msg_file_t fd) { env->SetLongField(jfile, jfile_field_bind, reinterpret_cast(fd)); } msg_file_t jfile_get_native(JNIEnv *env, jobject jfile) { - return reinterpret_cast(static_cast(env->GetLongField(jfile, jfile_field_bind))); + return reinterpret_cast(env->GetLongField(jfile, jfile_field_bind)); } JNIEXPORT void JNICALL Java_org_simgrid_msg_File_nativeInit(JNIEnv *env, jclass cls) {