Require non null (#580)

* Replace null checks with Objects.requireNonNull()

* Use PMD rule instead of checkstyle rule
This commit is contained in:
Austin Shalit
2017-07-18 20:32:08 -07:00
committed by Peter Johnson
parent 06321b8e87
commit 74df3fac4e
16 changed files with 134 additions and 139 deletions

View File

@@ -170,6 +170,7 @@ public abstract class MotorEncoderFixture<T extends SpeedController> implements
* deallocated.
*/
@Override
@SuppressWarnings("Regexp")
public boolean teardown() {
String type;
if (m_motor != null) {