Skip to content

Commit 24dbfe9

Browse files
committed
javadoc
1 parent 9b42c1f commit 24dbfe9

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/main/java/graphql/execution/ResultNodesInfo.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
/**
99
* This class is used to track the number of result nodes that have been created during execution.
1010
* After each execution the GraphQLContext contains a ResultNodeInfo object under the key {@link ResultNodesInfo#RESULT_NODES_INFO}
11-
* <p/>
11+
* <p>
1212
* The number of result can be limited (and should be for security reasons) by setting the maximum number of result nodes
1313
* in the GraphQLContext under the key {@link ResultNodesInfo#MAX_RESULT_NODES}
14+
* </p>
1415
*/
1516
@PublicApi
1617
public class ResultNodesInfo {
@@ -37,7 +38,7 @@ public void maxResultNodesExceeded() {
3738
* a each node that exceeds the number of max nodes is set to null,
3839
* but still is a result node (which value null)
3940
*
40-
* @return
41+
* @return number of result nodes created
4142
*/
4243
public int getResultNodesCount() {
4344
return resultNodesCount.get();
@@ -46,7 +47,7 @@ public int getResultNodesCount() {
4647
/**
4748
* If the number of result nodes has exceeded the maximum allowed numbers.
4849
*
49-
* @return
50+
* @return true if the number of result nodes has exceeded the maximum allowed numbers
5051
*/
5152
public boolean isMaxResultNodesExceeded() {
5253
return maxResultNodesExceeded;

0 commit comments

Comments
 (0)