BAEL-4077 Fixup styling

This commit is contained in:
andrebrowne 2020-08-08 21:05:32 -04:00
parent 9e03b89e69
commit 18d7fc0bdc
5 changed files with 17 additions and 72 deletions

View File

@ -66,62 +66,6 @@
<compilerArgument>-proc:none</compilerArgument> <compilerArgument>-proc:none</compilerArgument>
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<groupId>org.bsc.maven</groupId>
<artifactId>maven-processor-plugin</artifactId>
<version>${maven-processor-plugin.version}</version>
<executions>
<execution>
<id>process</id>
<goals>
<goal>process</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
<outputDirectory>target/metamodel</outputDirectory>
<processors>
<processor>org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor</processor>
</processors>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>${build-helper-maven-plugin.version}</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>target/metamodel</source>
<source>${project.build.directory}/generated-sources/java/</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.mysema.maven</groupId>
<artifactId>apt-maven-plugin</artifactId>
<version>1.1.3</version>
<executions>
<execution>
<goals>
<goal>process</goal>
</goals>
<configuration>
<outputDirectory>target/generated-sources/java</outputDirectory>
<processor>com.querydsl.apt.jpa.JPAAnnotationProcessor</processor>
</configuration>
</execution>
</executions>
</plugin>
</plugins> </plugins>
</build> </build>

View File

@ -40,15 +40,17 @@ public class EqualByBusinessKey {
@Override @Override
public boolean equals(Object obj) { public boolean equals(Object obj) {
if (this == obj) if (this == obj) {
return true; return true;
if (obj == null) }
if (obj == null) {
return false; return false;
if (obj instanceof EqualByBusinessKey) }
if (((EqualByBusinessKey) obj).getEmail() == getEmail()) if (obj instanceof EqualByBusinessKey) {
if (((EqualByBusinessKey) obj).getEmail() == getEmail()) {
return true; return true;
}
}
return false; return false;
} }
} }

View File

@ -41,14 +41,15 @@ public class EqualById {
@Override @Override
public boolean equals(Object obj) { public boolean equals(Object obj) {
if (this == obj) if (this == obj) {
return true; return true;
if (obj == null) }
if (obj == null) {
return false; return false;
if (obj instanceof EqualById) }
return ((EqualById) obj).getId() == getId(); if (obj instanceof EqualById) {
return ((EqualById) obj).getId().equals(getId());
}
return false; return false;
} }
} }

View File

@ -30,9 +30,7 @@ public class EqualByJavaDefault implements Cloneable{
this.email = email; this.email = email;
} }
public Object clone() throws public Object clone() throws CloneNotSupportedException {
CloneNotSupportedException
{
return super.clone(); return super.clone();
} }
} }

View File

@ -71,4 +71,4 @@ public class EqualityUnitTest {
Assert.assertEquals(object1, object2); Assert.assertEquals(object1, object2);
Assert.assertNotEquals(object1.getId(), object2.getId()); Assert.assertNotEquals(object1.getId(), object2.getId());
} }
} }