[docs] Fix warnings about undocumented default constructors (#6151)

This commit is contained in:
Tyler Veness
2024-01-04 13:57:21 -08:00
committed by GitHub
parent 0f060afb55
commit 4210f5635d
17 changed files with 55 additions and 3 deletions

View File

@@ -41,6 +41,9 @@ public class DMASample {
private final DMAJNISample m_dmaSample = new DMAJNISample();
/** Default constructor. */
public DMASample() {}
public DMAReadStatus update(DMA dma, double timeoutSeconds) {
return DMAReadStatus.getValue(m_dmaSample.update(dma.m_dmaHandle, timeoutSeconds));
}

View File

@@ -11,6 +11,9 @@ package edu.wpi.first.wpilibj;
* source. The source can either be a digital input or analog trigger but not both.
*/
public abstract class DigitalSource implements AutoCloseable {
/** Default constructor. */
public DigitalSource() {}
/**
* Returns true if this DigitalSource is an AnalogTrigger.
*

View File

@@ -15,6 +15,9 @@ public final class EventLoop {
private final Collection<Runnable> m_bindings = new LinkedHashSet<>();
private boolean m_running;
/** Default constructor. */
public EventLoop() {}
/**
* Bind a new action to run when the loop is polled.
*

View File

@@ -109,6 +109,9 @@ public class SendableBuilderImpl implements NTSendableBuilder {
private final List<AutoCloseable> m_closeables = new ArrayList<>();
/** Default constructor. */
public SendableBuilderImpl() {}
@Override
@SuppressWarnings("PMD.AvoidCatchingGenericException")
public void close() {