Fix code formatting

pull/290/head
Mahmoud Ben Hassine 5 years ago
parent b888b85119
commit 222bb77776
No known key found for this signature in database
GPG Key ID: 2B4156D07E8A1737

@ -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: #### Either in a declarative way using annotations:
```java ```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 { public class WeatherRule {
@Condition @Condition

@ -55,7 +55,7 @@ public class Rules implements Iterable<Rule> {
* *
* @param rules to register * @param rules to register
*/ */
public Rules(Rule... rules ) { public Rules(Rule... rules) {
Collections.addAll(this.rules, rules); Collections.addAll(this.rules, rules);
} }
@ -64,7 +64,7 @@ public class Rules implements Iterable<Rule> {
* *
* @param rules to register * @param rules to register
*/ */
public Rules(Object... rules ) { public Rules(Object... rules) {
for (Object rule : rules) { for (Object rule : rules) {
this.register(rule); this.register(rule);
} }

@ -28,7 +28,7 @@ import org.jeasy.rules.annotation.Condition;
import org.jeasy.rules.annotation.Fact; import org.jeasy.rules.annotation.Fact;
import org.jeasy.rules.annotation.Rule; 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 { public class WeatherRule {
@Condition @Condition

Loading…
Cancel
Save