@@ -25,29 +25,29 @@ public boolean validate()
2525 {
2626 String errorTitle = "Error" ;
2727
28- String moduleName = dialog .getGraphQlResolverClassName ();
29- if (moduleName .length () == 0 ) {
28+ String resolverClassName = dialog .getGraphQlResolverClassName ();
29+ if (resolverClassName .length () == 0 ) {
3030 JOptionPane .showMessageDialog (null , "GraphQL Resolver Name must not be empty." , errorTitle , JOptionPane .ERROR_MESSAGE );
3131 return false ;
3232 }
3333
34- if (!moduleName .matches (Regex .ALPHANUMERIC )) {
34+ if (!resolverClassName .matches (Regex .ALPHANUMERIC )) {
3535 JOptionPane .showMessageDialog (null , "GraphQL Resolver Name must contain letters and numbers only." , errorTitle , JOptionPane .ERROR_MESSAGE );
3636 return false ;
3737 }
3838
39- if (!Character .isUpperCase (moduleName .charAt (0 )) && !Character .isDigit (moduleName .charAt (0 ))) {
39+ if (!Character .isUpperCase (resolverClassName .charAt (0 )) && !Character .isDigit (resolverClassName .charAt (0 ))) {
4040 JOptionPane .showMessageDialog (null , "GraphQL Resolver Name must start from a number or a capital letter" , errorTitle , JOptionPane .ERROR_MESSAGE );
4141 return false ;
4242 }
4343
44- String pluginDirectory = dialog .getGraphQlResolverDirectory ();
45- if (pluginDirectory .length () == 0 ) {
44+ String graphQlResolverDirectory = dialog .getGraphQlResolverDirectory ();
45+ if (graphQlResolverDirectory .length () == 0 ) {
4646 JOptionPane .showMessageDialog (null , "GraphQL Resolver Directory must not be empty." , errorTitle , JOptionPane .ERROR_MESSAGE );
4747 return false ;
4848 }
4949
50- if (!pluginDirectory .matches (Regex .DIRECTORY )) {
50+ if (!graphQlResolverDirectory .matches (Regex .DIRECTORY )) {
5151 JOptionPane .showMessageDialog (null , "GraphQL Resolver Directory is not valid." , errorTitle , JOptionPane .ERROR_MESSAGE );
5252 return false ;
5353 }
0 commit comments