private Object getPropertyViaGetter(Object object, GraphQLOutputType outputType, DataFetchingEnvironment environment) { try { return getPropertyViaGetterMethod(object, outputType, this::findPubliclyAccessibleMethod, environment); } catch (NoSuchMethodException ignored) { try { return getPropertyViaGetterMethod(object, outputType, this::findViaSetAccessible, environment); } catch (NoSuchMethodException ignored2) { return getPropertyViaFieldAccess(object); } } }
private Object getPropertyViaGetter(Object object, GraphQLOutputType outputType, DataFetchingEnvironment environment) { try { return getPropertyViaGetterMethod(object, outputType, this::findPubliclyAccessibleMethod, environment); } catch (NoSuchMethodException ignored) { try { return getPropertyViaGetterMethod(object, outputType, this::findViaSetAccessible, environment); } catch (NoSuchMethodException ignored2) { return getPropertyViaFieldAccess(object); } } }