From 222bb77776d178fbc2a1fd33f56df283a96f073a Mon Sep 17 00:00:00 2001 From: Mahmoud Ben Hassine Date: Sat, 6 Jun 2020 22:38:37 +0200 Subject: [PATCH] Fix code formatting --- README.md | 2 +- easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java | 4 ++-- .../java/org/jeasy/rules/tutorials/weather/WeatherRule.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0c11746..0732a8e 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ This is exactly what Easy Rules does, it provides the `Rule` abstraction to crea #### Either in a declarative way using annotations: ```java -@Rule(name = "weather rule", description = "if it rains then take an umbrella" ) +@Rule(name = "weather rule", description = "if it rains then take an umbrella") public class WeatherRule { @Condition diff --git a/easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java b/easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java index 6761c3c..7623793 100644 --- a/easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java +++ b/easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java @@ -55,7 +55,7 @@ public class Rules implements Iterable { * * @param rules to register */ - public Rules(Rule... rules ) { + public Rules(Rule... rules) { Collections.addAll(this.rules, rules); } @@ -64,7 +64,7 @@ public class Rules implements Iterable { * * @param rules to register */ - public Rules(Object... rules ) { + public Rules(Object... rules) { for (Object rule : rules) { this.register(rule); } diff --git a/easy-rules-tutorials/src/main/java/org/jeasy/rules/tutorials/weather/WeatherRule.java b/easy-rules-tutorials/src/main/java/org/jeasy/rules/tutorials/weather/WeatherRule.java index 1d5c2ab..a2931bd 100644 --- a/easy-rules-tutorials/src/main/java/org/jeasy/rules/tutorials/weather/WeatherRule.java +++ b/easy-rules-tutorials/src/main/java/org/jeasy/rules/tutorials/weather/WeatherRule.java @@ -28,7 +28,7 @@ import org.jeasy.rules.annotation.Condition; import org.jeasy.rules.annotation.Fact; import org.jeasy.rules.annotation.Rule; -@Rule(name = "weather rule", description = "if it rains then take an umbrella" ) +@Rule(name = "weather rule", description = "if it rains then take an umbrella") public class WeatherRule { @Condition