I asked this question in Stack Overflow

Declare field outside/inside method : Sonar Singular Field Rule

  1. Why am I not getting enough answers?
  2. Is it because my reputation is low?
  3. Is it because the question is tough? It doesn't look that difficult.

What is the reason and how to get more answers?

share|improve this question
Are you dissatisfied with the answer you got? How many were you expecting? –  Michael Petrotta Dec 5 '12 at 5:28
At least 5 so that I can decide who deserve to get points. And also to get more idea about it. There is only 1 for now. So I simply vote it up. :) –  Mawia Dec 5 '12 at 5:31
You have unreasonable expectations, in my opinion. Be satisfied if you have an answer that fulfills your needs. If I see that an existing user has already covered the ground that I wanted to cover, I won't submit an answer. –  Michael Petrotta Dec 5 '12 at 5:33
I agree with you. :) But if answer is less, it is hard to decide the right answer. :) –  Mawia Dec 5 '12 at 5:38
i think there are only some user who using sonar ....so please Waite –  NullPoiиteя Dec 5 '12 at 6:05
@Mawia - Please don't be angry because voting is different on Meta. –  hims056 Dec 5 '12 at 7:07
@NullPointer I think you are right. And may be, I shouldn't even include that Sonar tag at all. It might cause others to ignore the question. –  Mawia Dec 5 '12 at 7:08
Thank you @hims056 –  Mawia Dec 5 '12 at 7:13
@Mawia Reputation on Meta is basically meaningless. You didn't do anything wrong; people are simply downvoting to express disagreement with the central premise of your question (that you should get more answers). There is nothing fundamentally wrong with asking this question, so don't worry about the downvotes. –  Asad Dec 5 '12 at 8:37
People on Meta don't like rant and whining and this is exactly what you did here in your question. –  Shadow Wizard Dec 5 '12 at 8:37
@Mawia also deleting questions because of downvotes to save your rep is an extremely bad habit to get into. This is not as likely to happen on Meta, but over on SO, deleted questions (especially downvoted questions) are a major factor in this: What can I do when getting “Sorry, we are no longer accepting questions/answers from this account”?. So please don't delete for the sake of saving your rep. –  psubsee2003 Dec 5 '12 at 8:40
@Mawia and to address your question here, you just asked this question less than 24 hours ago. Don't be in such a rush to accept anything. Nothing says you have to accept an answer now or even this week. You can wait and see if someone comes in later with a better answer. If you accept an answer now, your chances of getting more answers later are lower. –  psubsee2003 Dec 5 '12 at 8:45
Great idea @psubsee2003. –  Mawia Dec 5 '12 at 9:04
@Asad never said it wasn't polite. But still, one can't expect to get answers instantly. As I see it, he feels like people on Stack Overflow owe him or work for him. Well, they don't. –  Shadow Wizard Dec 5 '12 at 9:15
@Mawia fair enough, maybe language misunderstanding. Using the word "attention" instead of "answers" might have helped people like myself understand you better. –  Shadow Wizard Dec 5 '12 at 10:55
show 6 more comments

closed as not constructive by Shadow Wizard, hims056, Toon Krijthe, Martijn Pieters, jonsca Dec 5 '12 at 12:02


2 Answers

up vote 11 down vote accepted

Why am I not getting enough answers?

You should wait for some times. At least 1 day or 2. If you are still not getting enough attention/reply you can start a bounty.

Is it because my reputation is low?

No. Low reputation does'n matter for that because no one look at your reputation (IMO) while reading a question.


I don't know if the question is tough or not. But I know that people love to answer tough questions.

Between, try to improve the quality of your question and also try to make it more clear.

share|improve this answer
I think people definitely look at the rep, more times than not you can tell if the person has 1 rep by the quality of the question they ask. That being said I totally agree with your other two points –  aaronman Jul 2 '13 at 14:50
add comment

From reading your question I'd say it's because it's a difficult question to understand. Not impossible, but it takes a bit of effort on the readers part to interpret what information you want to know. That in itself can put potential answerers off. Let me explain:

In your question you refer often to Sonar, and talk about a "rule violation". Yet your question appears to be about run-time optimisation - specifically whether or not there is a difference in execution time between

public class MyClass{

   MyType object;   

   public void myMethod(){
         object= aMethod(arg);  //Returns instance for the class MyType 



public class MyClass{  

   public void myMethod(){
         MyType object= aMethod(arg);  //Returns instance for the class MyType 


With a small follow-up question along the lines of "Sonar is telling me to do it the second way, why?"

Or at least that's what it reads to me like you're asking. But I cannot be sure because you don't even state what you're comparing your code to, you just saying that "Sonar is telling me to" etc etc. That's not a clear way to phrase your question.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged .