Remove RedundantModifiers (#578)

This commit is contained in:
Austin Shalit
2017-10-17 21:47:55 -07:00
committed by Peter Johnson
parent 0291a95f68
commit 2fc60680f4
24 changed files with 30 additions and 32 deletions

View File

@@ -52,7 +52,7 @@ public class ADXL345_I2C extends SensorBase implements Accelerometer, LiveWindow
@SuppressWarnings("MemberName")
public final byte value;
private Axes(byte value) {
Axes(byte value) {
this.value = value;
}
}

View File

@@ -54,7 +54,7 @@ public class ADXL345_SPI extends SensorBase implements Accelerometer, LiveWindow
@SuppressWarnings("MemberName")
public final byte value;
private Axes(byte value) {
Axes(byte value) {
this.value = value;
}
}

View File

@@ -50,7 +50,7 @@ public class ADXL362 extends SensorBase implements Accelerometer, LiveWindowSend
@SuppressWarnings("MemberName")
public final byte value;
private Axes(byte value) {
Axes(byte value) {
this.value = value;
}
}

View File

@@ -126,7 +126,7 @@ public class AnalogTriggerOutput extends DigitalSource {
@SuppressWarnings("MemberName")
private final int value;
private AnalogTriggerType(int value) {
AnalogTriggerType(int value) {
this.value = value;
}
}

View File

@@ -56,7 +56,7 @@ public class Counter extends SensorBase implements CounterBase, LiveWindowSendab
@SuppressWarnings("MemberName")
public final int value;
private Mode(int value) {
Mode(int value) {
this.value = value;
}
}

View File

@@ -37,7 +37,7 @@ public interface CounterBase {
@SuppressWarnings("MemberName")
public final int value;
private EncodingType(int value) {
EncodingType(int value) {
this.value = value;
}
}

View File

@@ -33,7 +33,7 @@ public class DriverStation implements RobotState.Interface {
public float[] m_axes;
public short m_count;
public HALJoystickAxes(int count) {
HALJoystickAxes(int count) {
m_axes = new float[count];
}
}
@@ -42,7 +42,7 @@ public class DriverStation implements RobotState.Interface {
public short[] m_povs;
public short m_count;
public HALJoystickPOVs(int count) {
HALJoystickPOVs(int count) {
m_povs = new short[count];
}
}

View File

@@ -40,7 +40,7 @@ public abstract class GenericHID {
@SuppressWarnings("MemberName")
public final int value;
private HIDType(int value) {
HIDType(int value) {
this.value = value;
}
}
@@ -54,7 +54,7 @@ public abstract class GenericHID {
@SuppressWarnings("MemberName")
public final int value;
private Hand(int value) {
Hand(int value) {
this.value = value;
}
}

View File

@@ -29,7 +29,7 @@ public class I2C extends SensorBase {
@SuppressWarnings("MemberName")
public final int value;
private Port(int value) {
Port(int value) {
this.value = value;
}
}

View File

@@ -23,7 +23,7 @@ public abstract class InterruptableSensorBase extends SensorBase {
@SuppressWarnings("MemberName")
public final int value;
private WaitResult(int value) {
WaitResult(int value) {
this.value = value;
}
}

View File

@@ -35,7 +35,7 @@ public class Joystick extends JoystickBase {
@SuppressWarnings("MemberName")
public final int value;
private AxisType(int value) {
AxisType(int value) {
this.value = value;
}
}
@@ -49,7 +49,7 @@ public class Joystick extends JoystickBase {
@SuppressWarnings("MemberName")
public final int value;
private ButtonType(int value) {
ButtonType(int value) {
this.value = value;
}
}

View File

@@ -37,7 +37,7 @@ public class Notifier {
// destructed.
private final ReentrantLock m_handlerLock = new ReentrantLock();
public Process(Runnable run) {
Process(Runnable run) {
m_handler = run;
m_notifier.set(NotifierJNI.initializeNotifier(this));
}

View File

@@ -118,7 +118,7 @@ public class PIDController implements PIDInterface, LiveWindowSendable, Controll
private PIDController m_controller;
public PIDTask(PIDController controller) {
PIDTask(PIDController controller) {
requireNonNull(controller, "Given PIDController was null");
m_controller = controller;

View File

@@ -37,7 +37,7 @@ public class RobotDrive implements MotorSafety {
@SuppressWarnings("MemberName")
public final int value;
private MotorType(int value) {
MotorType(int value) {
this.value = value;
}
}

View File

@@ -25,7 +25,7 @@ public class SPI extends SensorBase {
@SuppressWarnings("MemberName")
public int value;
private Port(int value) {
Port(int value) {
this.value = value;
}
}

View File

@@ -35,7 +35,7 @@ public class SerialPort {
@SuppressWarnings("MemberName")
public int value;
private Port(int value) {
Port(int value) {
this.value = value;
}
}
@@ -49,7 +49,7 @@ public class SerialPort {
@SuppressWarnings("MemberName")
public final int value;
private Parity(int value) {
Parity(int value) {
this.value = value;
}
}
@@ -63,7 +63,7 @@ public class SerialPort {
@SuppressWarnings("MemberName")
public final int value;
private StopBits(int value) {
StopBits(int value) {
this.value = value;
}
}
@@ -77,7 +77,7 @@ public class SerialPort {
@SuppressWarnings("MemberName")
public final int value;
private FlowControl(int value) {
FlowControl(int value) {
this.value = value;
}
}
@@ -91,7 +91,7 @@ public class SerialPort {
@SuppressWarnings("MemberName")
public final int value;
private WriteBufferMode(int value) {
WriteBufferMode(int value) {
this.value = value;
}
}

View File

@@ -71,7 +71,7 @@ public class Timer {
double getMatchTime();
void delay(final double seconds);
void delay(double seconds);
@SuppressWarnings("JavadocMethod")
Interface newTimer();

View File

@@ -15,9 +15,6 @@ class LinkedListElement {
private LinkedListElement m_previous;
private Command m_data;
public LinkedListElement() {
}
public void setData(Command newData) {
m_data = newData;
}

View File

@@ -65,7 +65,7 @@ public class HardwareTimer implements Timer.StaticInterface {
* Create a new timer object. Create a new timer object and reset the time to zero. The timer is
* initially not running and must be started.
*/
public TimerImpl() {
TimerImpl() {
reset();
}

View File

@@ -21,7 +21,7 @@ class LiveWindowComponent {
String m_name;
boolean m_isSensor;
public LiveWindowComponent(String subsystem, String name, boolean isSensor) {
LiveWindowComponent(String subsystem, String name, boolean isSensor) {
m_subsystem = subsystem;
m_name = name;
m_isSensor = isSensor;