We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7831b0 commit b1d1106Copy full SHA for b1d1106
src/main/java/chapter_10/code_06/CooperatingNoDeadlock.java
@@ -24,7 +24,7 @@ public synchronized Point getLocation() {
24
return location;
25
}
26
27
- public synchronized void setLocation(Point location) {
+ public void setLocation(Point location) {
28
boolean reachedDestination;
29
synchronized (this) {
30
this.location = location;
0 commit comments