Checking class's thread-safety in intellij Idea [closed] - java

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I heard that there is a possibility to check if the class is thread-safe.
Is it so? How to do that?

The question was HOW so here is the answer:
go to Settings->Inspections and there choose Threading issues and Concurrency annotation issues

I think you have to look at FindBugs project. It makes static analysis of code and possibly can find some concurrency problems. There is also plugin for intelliJ which can be integrated with this tool.

Related

Should use inbuilt libraries or define classes? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
what is recommended in competitive programming defining classes or using the java libraries?eg.stack or linked lists.Does performance of code depends on it?
Normally you don't need to write your own classes for saving and managing some objects in a list.
I recommend you not to invent the wheel again.
Except you do it for a learning purpose.
The problem with writing your own classes for critical operations is that you can't do it better than a team of some pretty smart heads. Neither do I.

How to measure testability of Java classes? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I want to implement JUnit tests in order to do some refactoring. First I'd like to check how good the class is, whether it's implemented for testability. Is there any metric and tools I could use to measure how testable a Java class is?
Probably you're looking for the Testability Explorer. Latest code seems to be on github.

Why are javadocs evil and what's a better alternative? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I recently went for an interview and was requested to submit an example of my production code.
Submitted the code complete with javadocs, but was questioned by the interviewer about my choice of it.
I find javadocs quite useful for understanding code by others and it's really not that much of a legibility issue if I'm using an IDE. Can someone enlighten me on why it may not be recommended and what would be a better alternative in said situation?
Javadocs are not evil, and for Java it's the best you can do to properly document your code.
Being questioned does not mean automatically that what you've done is evil. Questions are mostly to test if you're sure in what you do and if you know more about it or you just made a guess.

Lynda or Treehouse? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I am thinking about joining either Lynda or Treehouse to sharpen my coding skills. I was wondering (since they're both paid services) if anyone has any feedback or experience with either of the two. I am also open to new suggestions, too.
thanks
I would try to use as many freely available resources as possible first. Here is a list of free books.
https://stackoverflow.com/questions/194812/list-of-freely-available-programming-books
Also Coursera and other MOOC's can be a great resource.
Personally I've used Treehouse and it helped me somewhat but is too expensive in my opinion.

Which are the “Must Follow” rules of PMD? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I´m starting to use PMD and I really want to know which are the most important rules or the rules that anybody can´t miss when using this tool.
I´m looking for some article or page with a list of rules that must be used in PMD, this tool has a lot of rules and it's difficult to select only a few of them.
Thanks!
The answer to this question is both general and subjective. However, the sourceforge pmd site has a list of some pre-packaged rulesets:
http://pmd.sourceforge.net/pmd-5.0.5/rules/index.html
You should probably use at least the basic ruleset. Beyond that, it's up to what kind of project you are working on and which rules apply to it.

Categories