SendableBase: remove unnecessary synchronization (#1797)

Also fixes the move constructor to update LiveWindow to follow the move.
This commit is contained in:
Oblarg
2019-08-03 02:47:17 -04:00
committed by Peter Johnson
parent e6d348f382
commit 3b12276bc3
5 changed files with 33 additions and 37 deletions

View File

@@ -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;
}