Resolves checkstyle errors for remaining m (#1090)

* Reduces checkstyle errors in marker

* Reduces checkstyle errors in master-worker-pattern

* Reduces checkstyle errors in mediator

* Reduces checkstyle errors in memento

* Reduces checkstyle errors in model-view-controller

* Reduces checkstyle errors in model-view-presenter

* Reduces checkstyle errors in module

* Reduces checkstyle errors in monad

* Reduces checkstyle errors in monostate

* Reduces checkstyle errors in multiton

* Reduces checkstyle errors in mute-idiom

* Reduces checkstyle errors in mutex
This commit is contained in:
Anurag Agarwal
2019-11-16 18:18:23 +05:30
committed by Ilkka Seppälä
parent 3ccc9baa1a
commit 1fdc650545
66 changed files with 374 additions and 423 deletions

View File

@ -31,10 +31,9 @@ import java.io.FileNotFoundException;
* An object that applies this pattern can provide the equivalent of a namespace, providing the
* initialization and finalization process of a static class or a class with static members with
* cleaner, more concise syntax and semantics.
* <p>
* The below example demonstrates a use case for testing two different modules: File Logger and
*
* <p>The below example demonstrates a use case for testing two different modules: File Logger and
* Console Logger
*
*/
public class App {
@ -42,10 +41,10 @@ public class App {
public static ConsoleLoggerModule consoleLoggerModule;
/**
* Following method performs the initialization
*
* Following method performs the initialization.
*
* @throws FileNotFoundException if program is not able to find log files (output.txt and
* error.txt)
* error.txt)
*/
public static void prepare() throws FileNotFoundException {
@ -55,7 +54,7 @@ public class App {
}
/**
* Following method performs the finalization
* Following method performs the finalization.
*/
public static void unprepare() {
@ -65,8 +64,8 @@ public class App {
}
/**
* Following method is main executor
*
* Following method is main executor.
*
* @param args for providing default program arguments
*/
public static void execute(final String... args) {
@ -82,10 +81,10 @@ public class App {
/**
* Program entry point.
*
*
* @param args command line args.
* @throws FileNotFoundException if program is not able to find log files (output.txt and
* error.txt)
* error.txt)
*/
public static void main(final String... args) throws FileNotFoundException {
prepare();

View File

@ -23,16 +23,15 @@
package com.iluwatar.module;
import java.io.PrintStream;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.PrintStream;
/**
* The ConsoleLoggerModule is responsible for showing logs on System Console
* <p>
* The below example demonstrates a Console logger module, which can print simple and error messages
* in two designated formats
* The ConsoleLoggerModule is responsible for showing logs on System Console.
*
* <p>The below example demonstrates a Console logger module, which can print simple and error
* messages in two designated formats
*/
public final class ConsoleLoggerModule {
@ -43,11 +42,12 @@ public final class ConsoleLoggerModule {
public PrintStream output = null;
public PrintStream error = null;
private ConsoleLoggerModule() {}
private ConsoleLoggerModule() {
}
/**
* Static method to get single instance of class
*
* Static method to get single instance of class.
*
* @return singleton instance of ConsoleLoggerModule
*/
public static ConsoleLoggerModule getSingleton() {
@ -60,7 +60,7 @@ public final class ConsoleLoggerModule {
}
/**
* Following method performs the initialization
* Following method performs the initialization.
*/
public ConsoleLoggerModule prepare() {
@ -73,7 +73,7 @@ public final class ConsoleLoggerModule {
}
/**
* Following method performs the finalization
* Following method performs the finalization.
*/
public void unprepare() {
@ -93,8 +93,8 @@ public final class ConsoleLoggerModule {
}
/**
* Used to print a message
*
* Used to print a message.
*
* @param value will be printed on console
*/
public void printString(final String value) {
@ -102,8 +102,8 @@ public final class ConsoleLoggerModule {
}
/**
* Used to print a error message
*
* Used to print a error message.
*
* @param value will be printed on error console
*/
public void printErrorString(final String value) {

View File

@ -23,18 +23,17 @@
package com.iluwatar.module;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.PrintStream;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* The FileLoggerModule is responsible for showing logs on File System
* <p>
* The below example demonstrates a File logger module, which can print simple and error messages in
* two designated files
* The FileLoggerModule is responsible for showing logs on File System.
*
* <p>The below example demonstrates a File logger module, which can print simple and error
* messages in two designated files
*/
public final class FileLoggerModule {
@ -48,11 +47,12 @@ public final class FileLoggerModule {
public PrintStream output = null;
public PrintStream error = null;
private FileLoggerModule() {}
private FileLoggerModule() {
}
/**
* Static method to get single instance of class
*
* Static method to get single instance of class.
*
* @return singleton instance of FileLoggerModule
*/
public static FileLoggerModule getSingleton() {
@ -65,10 +65,10 @@ public final class FileLoggerModule {
}
/**
* Following method performs the initialization
*
* Following method performs the initialization.
*
* @throws FileNotFoundException if program is not able to find log files (output.txt and
* error.txt)
* error.txt)
*/
public FileLoggerModule prepare() throws FileNotFoundException {
@ -81,7 +81,7 @@ public final class FileLoggerModule {
}
/**
* Following method performs the finalization
* Following method performs the finalization.
*/
public void unprepare() {
@ -101,8 +101,8 @@ public final class FileLoggerModule {
}
/**
* Used to print a message
*
* Used to print a message.
*
* @param value will be printed in file
*/
public void printString(final String value) {
@ -110,8 +110,8 @@ public final class FileLoggerModule {
}
/**
* Used to print a error message
*
* Used to print a error message.
*
* @param value will be printed on error file
*/
public void printErrorString(final String value) {