If this is your product, you can request to edit it here.
"Get the Patches!"
Summary:
When I’ve deployed Splint to clean up a project, I come across errors; namely, it doesn’t always recognize when I declare my variables. I’ve tried declaring them in several spots (not redundantly!) but that doesn’t always work. There are patches, and they are effective, but that wasn’t the only bug I’ve encountered with Splint. Splint is supposed to work with C99, but there are several changes from the C89/90 standards that Splint does not recognize. Of course, the one that comes to mind most is that statements and declarations should be able to mix, but they in many cases don’t.
|
What does this code do?
public class Demo { public void method1() { synchronized (String.class) { System.out.println("on String.class object"); synchronized (Integer.class) { System.out.println("on Integer.class object"); } } }
Programming Language: Java