Resolves checkstyle errors for facade factory-kit spatial-partition state step-builder (#1077)

* Reduces checkstyle errors in facade

* Reduces checkstyle errors in factory-kit

* Reduces checkstyle errors in spatial-partition

* Reduces checkstyle errors in state

* Reduces checkstyle errors in step-builder
This commit is contained in:
Anurag Agarwal
2019-11-12 01:51:12 +05:30
committed by Ilkka Seppälä
parent 2628cc0dfc
commit c954a436ad
29 changed files with 195 additions and 197 deletions

View File

@ -29,15 +29,13 @@ import org.slf4j.LoggerFactory;
/**
* Step Builder Pattern
*
* <p>
* <b>Intent</b> <br>
* <p><b>Intent</b> <br>
* An extension of the Builder pattern that fully guides the user through the creation of the object
* with no chances of confusion. <br>
* The user experience will be much more improved by the fact that he will only see the next step
* methods available, NO build method until is the right time to build the object.
* with no chances of confusion. <br> The user experience will be much more improved by the fact
* that he will only see the next step methods available, NO build method until is the right time to
* build the object.
*
* <p>
* <b>Implementation</b> <br>
* <p><b>Implementation</b> <br>
* The concept is simple:
* <ul>
*
@ -49,13 +47,13 @@ import org.slf4j.LoggerFactory;
* <li>Last step is the BuildStep, in charge of creating the object you need to build.</li>
* </ul>
*
* <p>
* <b>Applicability</b> <br>
* <p><b>Applicability</b> <br>
* Use the Step Builder pattern when the algorithm for creating a complex object should be
* independent of the parts that make up the object and how they're assembled the construction
* process must allow different representations for the object that's constructed when in the
* process of constructing the order is important.
* <p>
* <br>
*
* @see <a href="http://rdafbn.blogspot.co.uk/2012/07/step-builder-pattern_28.html">http://rdafbn.blogspot.co.uk/2012/07/step-builder-pattern_28.html</a>
*/
public class App {
@ -63,8 +61,8 @@ public class App {
private static final Logger LOGGER = LoggerFactory.getLogger(App.class);
/**
* Program entry point
*
* Program entry point.
*
* @param args command line args
*/
public static void main(String[] args) {

View File

@ -93,13 +93,13 @@ public class Character {
public String toString() {
var sb = new StringBuilder();
sb.append("This is a ")
.append(fighterClass != null ? fighterClass : wizardClass)
.append(" named ")
.append(name)
.append(" armed with a ")
.append(weapon != null ? weapon : spell != null ? spell : "with nothing")
.append(abilities != null ? " and wielding " + abilities + " abilities" : "")
.append('.');
.append(fighterClass != null ? fighterClass : wizardClass)
.append(" named ")
.append(name)
.append(" armed with a ")
.append(weapon != null ? weapon : spell != null ? spell : "with nothing")
.append(abilities != null ? " and wielding " + abilities + " abilities" : "")
.append('.');
return sb.toString();
}
}

View File

@ -31,7 +31,8 @@ import java.util.List;
*/
public final class CharacterStepBuilder {
private CharacterStepBuilder() {}
private CharacterStepBuilder() {
}
public static NameStep newBuilder() {
return new CharacterSteps();