Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can we change the given interface?

 
Anton Kuzmin
Greenhorn
Posts: 19
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The DBAccess I got from oracle contains comments above every method. Am I allowed to convert them to javadoc-style comments?
 
Anayonkar Shivalkar
Bartender
Posts: 1557
5
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Roel De Nijs
Sheriff
Posts: 9934
113
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Anayonkar Shivalkar
Bartender
Posts: 1557
5
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Roel De Nijs wrote:Making an interface method synchronized That results in a compiler error...

my bad (how did I miss it? )
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic