From ab3f3d3579dc731fbf8ce8486b6dc5b9c8c2ec38 Mon Sep 17 00:00:00 2001 From: Daniel Bramucci Date: Mon, 18 Apr 2016 19:25:47 -0500 Subject: [PATCH] Made code avoid generating a comment for a main method. --- src/AutoCommenter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 " +