-
Hi, We are working with Eclipse and FindBugs on a Windows Terminal Server. We need to write a FindBugs builder that can invoke remote builds on a Linux server. Can you advice on how to do that ? Thanks a lot, Juliana.
2009-11-11 15:05:16 UTC by jmelloni
-
wpugh committed patchset 595 of module eclipsePlugin to the FindBugs CVS repository, changing 1 files.
2009-11-11 05:06:18 UTC by wpugh
-
wpugh committed patchset 7269 of module findbugs to the FindBugs CVS repository, changing 2 files.
2009-11-10 04:57:28 UTC by wpugh
-
I have a project that I build from the command-line with a ant build script. The build script also runs findbugs on the compiled class files and generates a html report.
When I run FindBugs in eclipse on the very same project (keeping the by javac built class files - automatic build and Java builders disabled on the eclipse project) I never manage to get the exact same output, even though the...
2009-11-09 14:18:57 UTC by danielolsson
-
When placing a serializable, not static inner class in an outer class which is not serializable, the error is only detected when serialVersionUID is specified.
The attached sample shows the problem, Actie1 is flagged, but Actie2 is not flagged. The only difference being that Actie2 does not have a serialVersionUID.
2009-11-06 18:44:24 UTC by wveldhuis
-
The Eclipse FindBugs plugin is detecting ES_COMPARING_STRINGS_WITH_EQ on lines like the following:
Example 1: return field.getType() == String.class && field.getAnnotation(Configuration.class) != null;
Example 2:}else if(sortColumn.columnType==String.class){
In both instances, the comparison being detected is against String.class which is of type Class. Regardless of...
2009-11-06 16:07:31 UTC by ironhanded
-
Consider following code:
BigDecimal bd = new BigDecimal(0.1);
System.out.println(bd);
It will print 0.1000000000000000055511151231257827021181583404541015625
From public BigDecimal(double val) Javadoc :
...This is because 0.1 cannot be represented exactly as a double ...
It think it would be great for FindBugs to detect these parts of code because of very high probability of...
2009-11-04 14:09:13 UTC by sessert
-
Some of these detectors (such as the socket security checks and wait-without-timeout checks) were inspired by recommendations in Michael Nygard's excellent book "Release It!: Design and Deploy Production-Ready Software".
2009-11-04 06:45:28 UTC by cpeterso
-
This patch includes MoreDumbMethods.java that uses Java method signature strings to easily check for many dumb or deprecated methods. The MoreDumbMethodsTest.java demonstrates all of the new detectors:
* DM_RUNTIME_EXIT_OR_HALT: Calling Runtime.exit() or Runtime.halt() shuts down the entire Java virtual machine. This should only been done when it is appropriate. Such calls make it hard or...
2009-11-04 06:21:45 UTC by cpeterso
-
The Java execution performance can be improved if some thread-safe objects will be replaced by unsynchronised ones.
Example conversions:
- StringBuffer ⇒ StringBuilder
- Collections Framework: Hashtable ⇒ HashMap
Can it be detected if thread-safe objects are created while they are only used in a single method implementation so that the usage of unsynchronised interfaces interfaces...
2009-11-03 21:23:32 UTC by elfring