Skip to content

Commit c0ca26a

Browse files
committed
Reformat code.
1 parent 38ec670 commit c0ca26a

34 files changed

Lines changed: 139 additions & 79 deletions

.editorconfig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,7 @@ indent_size = 4
66
end_of_line = lf
77
charset = utf-8
88
trim_trailing_whitespace = false
9-
insert_final_newline = false
9+
insert_final_newline = false
10+
11+
[*.xml]
12+
indent_size = 2

pom.xml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
33
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4-
<modelVersion>4.0.0</modelVersion>
5-
<groupId>com.github.jonpereiradev</groupId>
6-
<artifactId>diff-objects</artifactId>
7-
<version>0.2.0</version>
8-
<packaging>jar</packaging>
9-
<properties>
10-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
11-
<maven.compiler.source>1.7</maven.compiler.source>
12-
<maven.compiler.target>1.7</maven.compiler.target>
13-
</properties>
14-
<dependencies>
15-
<dependency>
16-
<groupId>commons-lang</groupId>
17-
<artifactId>commons-lang</artifactId>
18-
<version>2.6</version>
19-
</dependency>
20-
<dependency>
21-
<groupId>junit</groupId>
22-
<artifactId>junit</artifactId>
23-
<version>4.12</version>
24-
<scope>test</scope>
25-
</dependency>
26-
</dependencies>
27-
</project>
4+
<modelVersion>4.0.0</modelVersion>
5+
<groupId>com.github.jonpereiradev</groupId>
6+
<artifactId>diff-objects</artifactId>
7+
<version>0.2.0</version>
8+
<packaging>jar</packaging>
9+
<properties>
10+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
11+
<maven.compiler.source>1.7</maven.compiler.source>
12+
<maven.compiler.target>1.7</maven.compiler.target>
13+
</properties>
14+
<dependencies>
15+
<dependency>
16+
<groupId>commons-lang</groupId>
17+
<artifactId>commons-lang</artifactId>
18+
<version>2.6</version>
19+
</dependency>
20+
<dependency>
21+
<groupId>junit</groupId>
22+
<artifactId>junit</artifactId>
23+
<version>4.12</version>
24+
<scope>test</scope>
25+
</dependency>
26+
</dependencies>
27+
</project>

src/main/java/com/github/jonpereiradev/diffobjects/DiffException.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.github.jonpereiradev.diffobjects;
22

3+
34
/**
45
* Exception for any generic error found in the diff execution.
56
*

src/main/java/com/github/jonpereiradev/diffobjects/DiffObjects.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.github.jonpereiradev.diffobjects;
22

3+
34
import com.github.jonpereiradev.diffobjects.builder.DiffConfiguration;
45
import com.github.jonpereiradev.diffobjects.strategy.DiffMetadata;
56
import com.github.jonpereiradev.diffobjects.strategy.DiffReflections;
@@ -10,6 +11,7 @@
1011
import java.util.List;
1112
import java.util.Objects;
1213

14+
1315
/**
1416
* Responsible for execute the diff between two objects.
1517
*

src/main/java/com/github/jonpereiradev/diffobjects/DiffResult.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
package com.github.jonpereiradev.diffobjects;
22

3+
34
import java.util.Map;
45

6+
57
/**
68
* Result of a diff with the before and after state.
79
*

src/main/java/com/github/jonpereiradev/diffobjects/annotation/DiffMapping.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
package com.github.jonpereiradev.diffobjects.annotation;
22

3+
34
import java.lang.annotation.ElementType;
45
import java.lang.annotation.Retention;
56
import java.lang.annotation.RetentionPolicy;
67
import java.lang.annotation.Target;
78

9+
810
/**
9-
* A method annotated with this will be checked for difference between two objects. When annotated on a method without
10-
* value(), the equals method of this object will be executed. When annotated on a method with value(), the property
11-
* will be evaluated for equality.
11+
* A method annotated with this will be checked for difference between two objects. When annotated on a method without value(), the equals method of this object
12+
* will be executed. When annotated on a method with value(), the property will be evaluated for equality.
1213
*
1314
* @author Jonathan Pereira
1415
* @since 1.0

src/main/java/com/github/jonpereiradev/diffobjects/annotation/DiffMappings.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
package com.github.jonpereiradev.diffobjects.annotation;
22

3+
34
import java.lang.annotation.ElementType;
45
import java.lang.annotation.Retention;
56
import java.lang.annotation.RetentionPolicy;
67
import java.lang.annotation.Target;
78

9+
810
/**
911
* Annotation to group multiple mappings on a method or to enable all methods if is used on a class.
1012
*

src/main/java/com/github/jonpereiradev/diffobjects/annotation/DiffOrder.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
package com.github.jonpereiradev.diffobjects.annotation;
22

3+
34
import java.lang.annotation.ElementType;
45
import java.lang.annotation.Retention;
56
import java.lang.annotation.RetentionPolicy;
67
import java.lang.annotation.Target;
78

9+
810
/**
911
* Defines an order for the method if necessary.
1012
*

src/main/java/com/github/jonpereiradev/diffobjects/annotation/DiffProperty.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
package com.github.jonpereiradev.diffobjects.annotation;
22

3+
34
import java.lang.annotation.ElementType;
45
import java.lang.annotation.Retention;
56
import java.lang.annotation.RetentionPolicy;
67
import java.lang.annotation.Target;
78

9+
810
/**
911
* Maps a property on a mapping to be used on result.
1012
*

src/main/java/com/github/jonpereiradev/diffobjects/builder/DiffBuilder.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
package com.github.jonpereiradev.diffobjects.builder;
22

3+
34
import com.github.jonpereiradev.diffobjects.DiffException;
45
import com.github.jonpereiradev.diffobjects.strategy.DiffMetadata;
56

67
import java.util.LinkedHashMap;
78
import java.util.Map;
89
import java.util.Objects;
910

11+
1012
/**
1113
* Responsible to map a class and fields to be able to generate diffs.
1214
*

0 commit comments

Comments
 (0)