• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

final static char sc = 'A';

 
Mike Yu
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
In Flight By Night, all the supplied code has:
final static char sc = 'A';
This is not used at all, and it doesn't confirm the naming convention. What should I do with it? Should I delete it?
 
Vlad Rabkin
Ranch Hand
Posts: 555
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mike,
I prepare another assignement, but as far as I know about FBN, you can and should dlete it if it is not needed.
Regards,
Vlad
 
Mike Yu
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Vlad.
Anyone else has different opinion?
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12007
215
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mike,
I was very tempted to delete it, however I decided to leave it alone on the assumption that some other class may use it. I then documented that decision.
I then used the XXX notation to indicate that this constant is "bogus but works".
Regards, Andrew
 
Miguel Roque
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mike.
This is not used at all, and it doesn't confirm the naming convention.

Here you have the answer. I've deleted it and you can safe do the same.
Miguel
 
Tony Morris
Ranch Hand
Posts: 1608
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vlad: you prepare another assignment ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic