diff --git a/src/AutoCommenter.java b/src/AutoCommenter.java index ee11923..cf59abb 100644 --- a/src/AutoCommenter.java +++ b/src/AutoCommenter.java @@ -125,7 +125,7 @@ else if(isSetFunction){ // generates code for set methods addedComments[i] += "\t */\r\n"; } /*-------------------------------------Comments for non-get/set methods-----------------------------------------------*/ - else{ // Generates comments for non-get/set methods + else if(!nameOfFunction.equals("main")){ // Generates comments for non-get/set methods String mainDescription = ""; while(!mainDescription.substring(mainDescription.length()-6>=0 ?mainDescription.length()-6:0).equals("\t * \r\n")) { mainDescription += commentify(userInterface.promptInput(String.format("Please describe %s\n " +