From a464dde606d1a79be46779a82f47664d1067a971 Mon Sep 17 00:00:00 2001 From: Yi Hsuen Date: Fri, 29 Apr 2022 22:59:11 +0800 Subject: [PATCH] Update Checkstyle checks Lets update checkstyle rules as follows, and update the code to match. New rules: * To match SE-EDU Java Coding Standard (basic): 1. DefaultComesLast 2. NoWhitespaceBeforeCaseDefaultColon 3. AtclauseOrder 4. JavadocBlockTagLocation 5. JavadocContentLocationCheck 6. JavadocMissingLeadingAsterisk 7. JavadocMissingWhitespaceAfterAsterisk * To match SE-EDU Java Coding Standard (intermediate): 1. MethodParamPad 2. MissingJavadocType * To match Google's Java Code Style: 1. JavadocTagContinuationIndentation Updates to existing rules: 1. Update default throwsIndent value for the Indentation from 4 (incorrect) to 8 (correct). Updates to code to match the above: 1. HelpWindow file: to match JavadocTagContinuationIndentation --- config/checkstyle/checkstyle.xml | 30 +++++++++++++++++++ .../java/seedu/address/ui/HelpWindow.java | 28 ++++++++--------- 2 files changed, 44 insertions(+), 14 deletions(-) diff --git a/config/checkstyle/checkstyle.xml b/config/checkstyle/checkstyle.xml index 0b2e6346c9b..d618671b832 100644 --- a/config/checkstyle/checkstyle.xml +++ b/config/checkstyle/checkstyle.xml @@ -245,6 +245,9 @@ --> + + + + + @@ -376,6 +385,24 @@ JAVADOC CHECKS --> + + + + + + + + + + + + + + + + + + @@ -400,5 +427,8 @@ + + + diff --git a/src/main/java/seedu/address/ui/HelpWindow.java b/src/main/java/seedu/address/ui/HelpWindow.java index 9a665915949..3f16b2fcf26 100644 --- a/src/main/java/seedu/address/ui/HelpWindow.java +++ b/src/main/java/seedu/address/ui/HelpWindow.java @@ -47,20 +47,20 @@ public HelpWindow() { /** * Shows the help window. * @throws IllegalStateException - *
    - *
  • - * if this method is called on a thread other than the JavaFX Application Thread. - *
  • - *
  • - * if this method is called during animation or layout processing. - *
  • - *
  • - * if this method is called on the primary stage. - *
  • - *
  • - * if {@code dialogStage} is already showing. - *
  • - *
+ *
    + *
  • + * if this method is called on a thread other than the JavaFX Application Thread. + *
  • + *
  • + * if this method is called during animation or layout processing. + *
  • + *
  • + * if this method is called on the primary stage. + *
  • + *
  • + * if {@code dialogStage} is already showing. + *
  • + *
*/ public void show() { logger.fine("Showing help page about the application.");