summaryrefslogtreecommitdiff
path: root/src/java/File.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-08-28 13:27:28 +0200
committerMax Kellermann <max@musicpd.org>2018-08-28 13:27:28 +0200
commit35eca08d4829f16a8330939505be4fccb7de8c4b (patch)
tree86e2dfa3f38bef0b107c3823f35f58883a10e313 /src/java/File.hxx
parent7137ca375afdd258a24f2cb6a50bbac98c16d805 (diff)
java/*: add `noexcept`
Diffstat (limited to 'src/java/File.hxx')
-rw-r--r--src/java/File.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/java/File.hxx b/src/java/File.hxx
index 8822e5321..959283fbd 100644
--- a/src/java/File.hxx
+++ b/src/java/File.hxx
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2010-2014 Max Kellermann <max.kellermann@gmail.com>
+ * Copyright 2010-2018 Max Kellermann <max.kellermann@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -45,10 +45,10 @@ namespace Java {
public:
gcc_nonnull_all
- static void Initialise(JNIEnv *env);
+ static void Initialise(JNIEnv *env) noexcept;
gcc_nonnull_all
- static jstring getAbsolutePath(JNIEnv *env, jobject file) {
+ static jstring getAbsolutePath(JNIEnv *env, jobject file) noexcept {
return (jstring)env->CallObjectMethod(file,
getAbsolutePath_method);
}
@@ -59,7 +59,7 @@ namespace Java {
*/
gcc_pure gcc_nonnull_all
static AllocatedPath ToAbsolutePath(JNIEnv *env,
- jobject file);
+ jobject file) noexcept;
};
}