Skip to content

Commit

Permalink
xplat/arfx/atlas/core/presenter/java/jni
Browse files Browse the repository at this point in the history
Reviewed By: nlutsenko

Differential Revision: D51164212

fbshipit-source-id: ad6c60d40809ce3b5f3c19ddf758cecd0a0d0579
  • Loading branch information
generatedunixname89002005287564 authored and facebook-github-bot committed Nov 9, 2023
1 parent 59461ef commit d128913
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> other) const noexcept;
bool isAssignableFrom(alias_ref<JClass> cls) 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 size);
static local_ref<javaobject> newArray(size_t count);

/// 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 index);
detail::ElementProxy<JArrayClass> operator[](size_t idx);
};

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&& other) noexcept;
weak_ref& operator=(weak_ref&& rhs) 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&& other) noexcept;
basic_strong_ref& operator=(basic_strong_ref&& rhs) noexcept;

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

0 comments on commit d128913

Please sign in to comment.