Skip to content

Commit

Permalink
xplat/arfx/atlas/core/presenter/java/jni
Browse files Browse the repository at this point in the history
Differential Revision: D51107140

fbshipit-source-id: c418fd15ac3f376d55b6d5b90565acfebf0ad11f
  • Loading branch information
generatedunixname89002005287564 authored and facebook-github-bot committed Nov 8, 2023
1 parent bd94aae commit 12995ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions cxx/fbjni/detail/CoreClasses.h
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ class JClass : public JavaClass<JClass, JObject, jclass> {

/// Check to see if the class is assignable from another class
/// @pre cls != nullptr
bool isAssignableFrom(alias_ref<JClass> cls) const noexcept;
bool isAssignableFrom(alias_ref<JClass> other) const noexcept;

/// Convenience method to lookup the constructor with descriptor as specified
/// by the type arguments
Expand Down Expand Up @@ -454,7 +454,7 @@ class JArrayClass : public JavaClass<JArrayClass<T>, detail::JTypeArray> {
/// Allocate a new array from Java heap, for passing as a JNI parameter or
/// return value. NOTE: if using as a return value, you want to call release()
/// instead of get() on the smart pointer.
static local_ref<javaobject> newArray(size_t count);
static local_ref<javaobject> newArray(size_t size);

/// Assign an object to the array.
/// Typically you will use the shorthand (*ref)[idx]=value;
Expand All @@ -477,7 +477,7 @@ class JArrayClass : public JavaClass<JArrayClass<T>, detail::JTypeArray> {
/// yourself warned. On the other hand, it does make for some idiomatic
/// assignment code; see TestBuildStringArray in fbjni_tests for some
/// examples.
detail::ElementProxy<JArrayClass> operator[](size_t idx);
detail::ElementProxy<JArrayClass> operator[](size_t index);
};

template <typename T>
Expand Down
4 changes: 2 additions & 2 deletions cxx/fbjni/detail/References.h
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ class weak_ref : public base_owned_ref<T, WeakGlobalReferenceAllocator> {
weak_ref& operator=(const weak_ref& other);

/// Assignment by moving a reference thus not creating a new reference
weak_ref& operator=(weak_ref&& rhs) noexcept;
weak_ref& operator=(weak_ref&& other) noexcept;

// Creates an owned local reference to the referred object or to null if the
// object is reclaimed
Expand Down Expand Up @@ -526,7 +526,7 @@ class basic_strong_ref : public base_owned_ref<T, Alloc> {
basic_strong_ref& operator=(const basic_strong_ref& other);

/// Assignment by moving a reference thus not creating a new reference
basic_strong_ref& operator=(basic_strong_ref&& rhs) noexcept;
basic_strong_ref& operator=(basic_strong_ref&& other) noexcept;

/// Get the plain JNI reference
using base_owned_ref<T, Allocator>::get;
Expand Down

0 comments on commit 12995ec

Please sign in to comment.