Commit f9d91c21 authored by Florian MOINARD's avatar Florian MOINARD
Browse files

Ajout d'un plugin checkstyle

parent 351bb118
......@@ -7,6 +7,7 @@
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
<outputRelativeToContentRoot value="true" />
<module name="designpatternproject" />
<module name="DesignPatternProject" />
<module name="Design Pattern Project" />
</profile>
</annotationProcessing>
......
......@@ -65,6 +65,14 @@
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>3.0.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.9.1</version>
<configuration>
<consoleOutput>true</consoleOutput>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
......@@ -77,6 +85,5 @@
</configuration>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
......@@ -35,7 +35,9 @@ public class JustePrix implements Sujet{
@Override
public void notifierObs() {
observers.forEach(o -> o.notifier(score));
for (Observer o: observers) {
o.notifier(score);
}
}
public void updateScore(int score) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment