Update Capture.java

Modified to meet coding standards.