All Questions
4 questions
0
votes
1
answer
960
views
Get entities ids from two similar collections using one method
I've got two lists:
List<Integer, ZooEntity> zoos;
List<Integer, List<ZooEntity>> groupOfZoos;
These operations will return collections of values:
Collection<ZooEntity> cz = ...
1
vote
1
answer
636
views
JSP Include: one large bean or bean for each include
I want to refactor a webapp that consists of very distorted JSPs and servlets. Because we can't switch to a web framework easily we have to keep JSPs and Servlets, and now we are in doubt how to ...
12
votes
3
answers
10k
views
When to deprecate and when to delete in Java
As part of a refactoring effort or just ongoing development, a particular method or maybe an entire class may become obsolete in some sense. Java supports the @Deprecated annotation to indicate that ...
87
votes
10
answers
111k
views
How many lines per class is too many in Java? [closed]
In your experience, what is a useful rule of thumb for how many lines of code are too many for one class in Java?
To be clear, I know that number of lines is not even close to the real standard to ...