All Downloads are FREE. Search and download functionalities are using the official Maven repository.

hydraql.shaded.fastjson2.writer.FieldWriterInt16Field Maven / Gradle / Ivy

package hydraql.shaded.fastjson2.writer;

import hydraql.shaded.fastjson2.JSONException;

import java.lang.reflect.Field;

final class FieldWriterInt16Field
        extends FieldWriterInt16 {
    FieldWriterInt16Field(String name, int ordinal, long features, String format, String label, Field field, Class fieldClass) {
        super(name, ordinal, features, format, label, fieldClass, field, null);
    }

    @Override
    public Object getFieldValue(T object) {
        try {
            return field.get(object);
        } catch (IllegalArgumentException | IllegalAccessException e) {
            throw new JSONException("field.get error, " + fieldName, e);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy