这是indexloc提供的服务,不要输入任何密码
Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Termux application

Git Test for Jeon SeungYoon

[![Build status](https://github.com/termux/termux-app/workflows/Build/badge.svg)](https://github.com/termux/termux-app/actions)
[![Testing status](https://github.com/termux/termux-app/workflows/Unit%20tests/badge.svg)](https://github.com/termux/termux-app/actions)
[![Join the chat at https://gitter.im/termux/termux](https://badges.gitter.im/termux/termux.svg)](https://gitter.im/termux/termux)
Expand Down
1 change: 1 addition & 0 deletions temp.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package com.termux.shared.reflection;

/** Class that represents result of invoking of something */
public abstract class InvokeResult {
public boolean success;
public Object value;

InvokeResult(boolean success, Object value) {
this.value = success;
this.value = value;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,13 @@ public static Field getDeclaredField(@NonNull Class<?> clazz, @NonNull String fi


/** Class that represents result of invoking a field. */
public static class FieldInvokeResult {
public boolean success;
public Object value;

public static class FieldInvokeResult extends InvokeResult {
FieldInvokeResult(boolean success, Object value) {
this.value = success;
this.value = value;
super(success, value);
}
}


/**
* Get a value for a {@link Field} of an object for the specified class.
*
Expand Down Expand Up @@ -161,13 +158,9 @@ public static boolean invokeVoidMethod(@NonNull Method method, Object obj, Objec


/** Class that represents result of invoking a method that has a non-void return type. */
public static class MethodInvokeResult {
public boolean success;
public Object value;

public static class MethodInvokeResult extends InvokeResult{
MethodInvokeResult(boolean success, Object value) {
this.value = success;
this.value = value;
super(success, value);
}
}

Expand Down