Skip to content

Commit 7aa8ad4

Browse files
committed
Remove unnecessary synchronization
Signed-off-by: Jacob Perron <[email protected]>
1 parent 6449744 commit 7aa8ad4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rcljava/src/main/java/org/ros2/rcljava/action/ActionServerImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,14 @@ public GoalHandleImpl(
8686
/**
8787
* {@inheritDoc}
8888
*/
89-
public synchronized action_msgs.msg.GoalInfo getGoalInfo() {
89+
public action_msgs.msg.GoalInfo getGoalInfo() {
9090
return this.goalInfo;
9191
}
9292

9393
/**
9494
* {@inheritDoc}
9595
*/
96-
public synchronized MessageDefinition getGoal() {
96+
public MessageDefinition getGoal() {
9797
return this.goal;
9898
}
9999

@@ -164,7 +164,7 @@ public synchronized final void dispose() {
164164
* {@inheritDoc}
165165
*/
166166
public synchronized final long getHandle() {
167-
return handle;
167+
return this.handle;
168168
}
169169
} // class GoalHandleImpl
170170

0 commit comments

Comments
 (0)