Skip to content
Browse files

Declare fields as final in the Philosphers example

  • Loading branch information...
1 parent 1c5aae5 commit 90aaa010d76e5da4fdbd4c6a794ce25a45d6fad2 @ufalklof ufalklof committed Dec 16, 2007
Showing with 2 additions and 2 deletions.
  1. +2 −2 examples/philosophers/Philosopher.java
View
4 examples/philosophers/Philosopher.java
@@ -1,8 +1,8 @@
package philosophers;
public class Philosopher extends Thread {
- private Chopstick mLeftChopstick;
- private Chopstick mRightChopstick;
+ private final Chopstick mLeftChopstick;
+ private final Chopstick mRightChopstick;
public Philosopher(String name,
Chopstick leftChopstick,

0 comments on commit 90aaa01

Please sign in to comment.
Something went wrong with that request. Please try again.