mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
Update and enable PMD 6.3.0 (#1107)
This commit is contained in:
committed by
Peter Johnson
parent
8eafe7f325
commit
e548a5f705
@@ -30,6 +30,7 @@ public class FakeCounterSource implements AutoCloseable {
|
||||
m_encoder = encode;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
m_encoder.m_output.set(false);
|
||||
try {
|
||||
@@ -70,6 +71,7 @@ public class FakeCounterSource implements AutoCloseable {
|
||||
/**
|
||||
* Destroy Object with minimum memory leak.
|
||||
*/
|
||||
@Override
|
||||
public void close() {
|
||||
m_task = null;
|
||||
if (m_allocated) {
|
||||
|
||||
@@ -32,6 +32,7 @@ public class FakeEncoderSource implements AutoCloseable {
|
||||
m_encoder = encode;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
final DigitalOutput lead;
|
||||
final DigitalOutput lag;
|
||||
@@ -93,6 +94,7 @@ public class FakeEncoderSource implements AutoCloseable {
|
||||
/**
|
||||
* Frees the resource.
|
||||
*/
|
||||
@Override
|
||||
public void close() {
|
||||
m_task = null;
|
||||
if (m_allocatedOutputs) {
|
||||
|
||||
@@ -83,6 +83,7 @@ public class FakePotentiometerSource implements AutoCloseable {
|
||||
/**
|
||||
* Frees the resouce.
|
||||
*/
|
||||
@Override
|
||||
public void close() {
|
||||
if (m_initOutput) {
|
||||
m_output.close();
|
||||
|
||||
Reference in New Issue
Block a user