| Author |
Can we change the given interface?
|
Anton Kuzmin
Greenhorn
Joined: Feb 22, 2012
Posts: 19
|
|
|
The DBAccess I got from oracle contains comments above every method. Am I allowed to convert them to javadoc-style comments?
|
 |
Anayonkar Shivalkar
Bartender
Joined: Dec 08, 2010
Posts: 1295
|
|
|
Well, the safest thing I would suggest is not to touch provided file at all. Personally, I didn't change a single character in that file. For synchronization, I used locks in actual methods instead of making interface methods as synchronized.
|
Regards,
Anayonkar Shivalkar (SCJP, SCWCD, OCMJD)
|
 |
Roel De Nijs
Bartender
Joined: Jul 19, 2004
Posts: 4350
|
|
Anayonkar Shivalkar wrote:For synchronization, I used locks in actual methods instead of making interface methods as synchronized.
Making an interface method synchronized That results in a compiler error...
You can't make any changes to the method signatures. I didn't convert the comments above every method into javadoc-style comment (just added some javadoc-style comment at the class-level)
Note: please do not wake up zombie threads, just start a new thread and ask your question there. Thanks!
|
SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
|
 |
Anayonkar Shivalkar
Bartender
Joined: Dec 08, 2010
Posts: 1295
|
|
Roel De Nijs wrote:Making an interface method synchronized  That results in a compiler error...
my bad (how did I miss it? )
|
 |
 |
|
|
subject: Can we change the given interface?
|
|
|