Skip to content

Commit

Permalink
[cleanup][transaction] Add Maven Modernizer plugin in pulsar-transact…
Browse files Browse the repository at this point in the history
…ion (#16964)
  • Loading branch information
youzipi authored Aug 7, 2022
1 parent 7a65f3f commit edcf67a
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
17 changes: 17 additions & 0 deletions pulsar-transaction/common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,23 @@
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.gaul</groupId>
<artifactId>modernizer-maven-plugin</artifactId>
<configuration>
<failOnViolations>true</failOnViolations>
<javaVersion>8</javaVersion>
</configuration>
<executions>
<execution>
<id>modernizer</id>
<phase>verify</phase>
<goals>
<goal>modernizer</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
Expand Down
17 changes: 17 additions & 0 deletions pulsar-transaction/coordinator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,23 @@

<build>
<plugins>
<plugin>
<groupId>org.gaul</groupId>
<artifactId>modernizer-maven-plugin</artifactId>
<configuration>
<failOnViolations>true</failOnViolations>
<javaVersion>8</javaVersion>
</configuration>
<executions>
<execution>
<id>modernizer</id>
<phase>verify</phase>
<goals>
<goal>modernizer</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
package org.apache.pulsar.transaction.coordinator;

import com.google.common.base.Objects;
import java.util.Objects;
import lombok.Builder;
import lombok.Data;

Expand All @@ -34,7 +34,7 @@ public class TransactionSubscription implements Comparable<TransactionSubscripti

@Override
public int hashCode() {
return Objects.hashCode(topic, subscription);
return Objects.hash(topic, subscription);
}

@Override
Expand Down

0 comments on commit edcf67a

Please sign in to comment.