mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-03 10:54:38 -05:00
mark methods as @JsonIgnore to avoid Jackson serializing them
This commit is contained in:
@@ -9,9 +9,11 @@ package androidx.preference;
|
|||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
|
|
||||||
public class ListPreference extends Preference {
|
public class ListPreference extends Preference {
|
||||||
// reference: https://android.googlesource.com/platform/frameworks/support/+/996971f962fcd554339a7cb2859cef9ca89dbcb7/preference/preference/src/main/java/androidx/preference/ListPreference.java
|
// reference: https://android.googlesource.com/platform/frameworks/support/+/996971f962fcd554339a7cb2859cef9ca89dbcb7/preference/preference/src/main/java/androidx/preference/ListPreference.java
|
||||||
|
// Note: remove @JsonIgnore and implement methods if any extension ever uses these methods or the variables behind them
|
||||||
|
|
||||||
private CharSequence[] entries;
|
private CharSequence[] entries;
|
||||||
private CharSequence[] entryValues;
|
private CharSequence[] entryValues;
|
||||||
@@ -47,10 +49,13 @@ public class ListPreference extends Preference {
|
|||||||
this.entryValues = entryValues;
|
this.entryValues = entryValues;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
public void setValueIndex(int index) { throw new RuntimeException("Stub!"); }
|
public void setValueIndex(int index) { throw new RuntimeException("Stub!"); }
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
public String getValue() { throw new RuntimeException("Stub!"); }
|
public String getValue() { throw new RuntimeException("Stub!"); }
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
public void setValue(String value) { throw new RuntimeException("Stub!"); }
|
public void setValue(String value) { throw new RuntimeException("Stub!"); }
|
||||||
|
|
||||||
/** Tachidesk specific API */
|
/** Tachidesk specific API */
|
||||||
|
|||||||
@@ -8,24 +8,31 @@ package androidx.preference;
|
|||||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
public class MultiSelectListPreference extends DialogPreference {
|
public class MultiSelectListPreference extends DialogPreference {
|
||||||
|
// Note: remove @JsonIgnore and implement methods if any extension ever uses these methods or the variables behind them
|
||||||
|
|
||||||
public MultiSelectListPreference(Context context) { super(context); }
|
public MultiSelectListPreference(Context context) { super(context); }
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
public void setEntries(CharSequence[] entries) { throw new RuntimeException("Stub!"); }
|
public void setEntries(CharSequence[] entries) { throw new RuntimeException("Stub!"); }
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
public CharSequence[] getEntries() { throw new RuntimeException("Stub!"); }
|
public CharSequence[] getEntries() { throw new RuntimeException("Stub!"); }
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
public void setEntryValues(CharSequence[] entryValues) { throw new RuntimeException("Stub!"); }
|
public void setEntryValues(CharSequence[] entryValues) { throw new RuntimeException("Stub!"); }
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
public CharSequence[] getEntryValues() { throw new RuntimeException("Stub!"); }
|
public CharSequence[] getEntryValues() { throw new RuntimeException("Stub!"); }
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
public void setValues(Set<String> values) { throw new RuntimeException("Stub!"); }
|
public void setValues(Set<String> values) { throw new RuntimeException("Stub!"); }
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
public Set<String> getValues() { throw new RuntimeException("Stub!"); }
|
public Set<String> getValues() { throw new RuntimeException("Stub!"); }
|
||||||
|
|
||||||
public int findIndexOfValue(String value) { throw new RuntimeException("Stub!"); }
|
public int findIndexOfValue(String value) { throw new RuntimeException("Stub!"); }
|
||||||
|
|||||||
Reference in New Issue
Block a user