Skip to content

Commit

Permalink
chore: add pmd unusedcode (sofastack#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzdx authored Aug 10, 2022
1 parent 746ab56 commit d0565e7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@
<ruleset>${main.user.dir}/ruleset.xml</ruleset>
</rulesets>
<excludes>
<exclude>**/FixClassTypeResolver.java</exclude>
<exclude>**/client/pb/*.*</exclude>
</excludes>
<failurePriority>2</failurePriority>
</configuration>
Expand Down
3 changes: 3 additions & 0 deletions ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,7 @@
<rule ref="rulesets/java/ali-orm.xml"/>
<rule ref="rulesets/java/ali-other.xml"/>
<rule ref="rulesets/java/ali-set.xml"/>
<rule ref="rulesets/java/unusedcode.xml">
<priority>2</priority>
</rule>
</ruleset>
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ public final class PushTrace {
Hack.hackLoggerDisruptor(LoggerFactory.getLogger("PUSH-TRACE"));
private static final Logger SLOW_LOGGER =
Hack.hackLoggerDisruptor(LoggerFactory.getLogger("PUSH-TRACE-SLOW"));
private static final int MAX_NTP_TIME_PRECISION_MILLIS = 200;
private final SubDatum datum;
final long pushCreateTimestamp = System.currentTimeMillis();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ public class AppRevisionJdbcRepository implements AppRevisionRepository, Recover

private static final Logger LOG = LoggerFactory.getLogger("METADATA-EXCHANGE", "[AppRevision]");

private static final Logger COUNT_LOG =
LoggerFactory.getLogger("METADATA-COUNT", "[AppRevision]");

/** map: <revision, AppRevision> */
private final LoadingCache<String, AppRevision> registry;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class DateNowJdbcRepository implements DateNowRepository {
private final DateTimeWatcher watcher = new DateTimeWatcher();

@PostConstruct
private void init() {
public void init() {
ConcurrentUtils.createDaemonThread(this.getClass().getSimpleName() + "WatchDog", watcher)
.start();
}
Expand Down

0 comments on commit d0565e7

Please sign in to comment.