Skip to content

Commit 4927c60

Browse files
committed
Correct PropertyDataFetcher javadoc
1 parent 3868074 commit 4927c60

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/main/java/graphql/schema/PropertyDataFetcher.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
import graphql.Assert;
55
import graphql.PublicApi;
66

7+
import java.lang.invoke.MethodHandle;
8+
import java.lang.invoke.MethodHandles;
9+
import java.lang.invoke.MethodType;
710
import java.util.function.Function;
811
import java.util.function.Supplier;
912

@@ -17,11 +20,12 @@
1720
* <li>If the source is null, return null</li>
1821
* <li>If the source is a Map, return map.get(propertyName)</li>
1922
* <li>If a function is provided, it is used</li>
23+
* <li>Find a public JavaBean getter method named `getPropertyName()` or `isPropertyName()` using {@link java.lang.invoke.LambdaMetafactory#metafactory(MethodHandles.Lookup, String, MethodType, MethodType, MethodHandle, MethodType)}</li>
24+
* <li>Find a public Record like method named `propertyName()`</li>
2025
* <li>Find a public JavaBean getter method named `getPropertyName()` or `isPropertyName()`</li>
2126
* <li>Find any getter method named `getPropertyName()` or `isPropertyName()` and call method.setAccessible(true)</li>
2227
* <li>Find a public field named `propertyName`</li>
2328
* <li>Find any field named `propertyName` and call field.setAccessible(true)</li>
24-
* <li>Find a public Record like method named `propertyName()`</li>
2529
* <li>If this cant find anything, then null is returned</li>
2630
* </ul>
2731
* <p>

0 commit comments

Comments
 (0)