mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
SendableBase: remove unnecessary synchronization (#1797)
Also fixes the move constructor to update LiveWindow to follow the move.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */
|
||||
/* Copyright (c) 2017-2019 FIRST. All Rights Reserved. */
|
||||
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
||||
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
||||
/* the project. */
|
||||
@@ -46,12 +46,12 @@ public abstract class SendableBase implements Sendable, AutoCloseable {
|
||||
}
|
||||
|
||||
@Override
|
||||
public final synchronized String getName() {
|
||||
public final String getName() {
|
||||
return m_name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final synchronized void setName(String name) {
|
||||
public final void setName(String name) {
|
||||
m_name = name;
|
||||
}
|
||||
|
||||
@@ -77,12 +77,12 @@ public abstract class SendableBase implements Sendable, AutoCloseable {
|
||||
}
|
||||
|
||||
@Override
|
||||
public final synchronized String getSubsystem() {
|
||||
public final String getSubsystem() {
|
||||
return m_subsystem;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final synchronized void setSubsystem(String subsystem) {
|
||||
public final void setSubsystem(String subsystem) {
|
||||
m_subsystem = subsystem;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user