Win a copy of Microservices Testing (Live Project) this week in the Spring forum!

Jeff Rummings

Ranch Hand
+ Follow
since Dec 20, 2007
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jeff Rummings

You need to specify 'checked' to keep its state, e.g.

14 years ago


I wonder if anyone knows any *generic* method that loops through 2 instances of the same class and find the difference in terms of their fields.



What would such a method return? The diff(...) method in your example is void. You could have an equals method that uses reflection (I think EqualsBuilder from Jakarta commmons does something like that).
14 years ago
try

Help - Software updates - Find and install...

Add new remote site http://eclipse-javacc.sourceforge.net

etc..
Look at line 7:



The string is still reachable through the locObj reference. Line 11 is correct because all objects become unreachable beyond the if statement.

To parse TCP header information, the base class would have to know about its child.



A base class should not be aware of its subclasses. If it is, then you should consider refactoring your design.
14 years ago
You could use a regular expression.



There's a better way to represent a repeating group, but i can't recall how to do this off top of my head.
14 years ago
Or you can download SLOC count. It supports different languages, easy to use and does everything for you.
14 years ago
Thanks. Will give it a try.
14 years ago
I had exactly the same problem. In my case it was because of my laptop's touch pad. I didn't bother changing anything though. Once you get used to it, it stops happening.
14 years ago
I had exactly the same problem. In my case it was because of my laptop's touch pad. I didn't bother changing anything though. Once you get used to it, it stops happening.
14 years ago
Try giving eclipse more memory. You can do this by modifying default values in eclipse.ini file.
14 years ago
Login with postgres as the username and create a new user:



This page will help if you get stuck.
14 years ago

I don't want to actually read all the rows. I just need to know how many there are



If you don't need the data, you could do a select count: