Cleanup checkstyle warnings
[yangtools.git] / common / mockito-configuration / src / main / java / org / mockito / configuration / ArgumentsExtractorVerifier.java
index 53db342c071d28a62b6e4396a44cfb038c33b7db..d8983f40fbac5062cf694e36f2f12c92b122d1e5 100644 (file)
@@ -7,34 +7,32 @@
  */
 package org.mockito.configuration;
 
+import java.util.List;
 import org.mockito.exceptions.base.MockitoException;
 import org.mockito.internal.invocation.InvocationsFinder;
 import org.mockito.internal.verification.api.VerificationData;
 import org.mockito.invocation.Invocation;
 import org.mockito.verification.VerificationMode;
 
-import java.util.List;
-
 /**
  * Verifier that extracts arguments from actual invocation. Useful when deeper validation of arguments is needed.
- *
  */
 public class ArgumentsExtractorVerifier implements VerificationMode {
-               private Object[] arguments;
+    private Object[] arguments;
 
-               @Override
-               public void verify(VerificationData data) {
-                       InvocationsFinder finder = new InvocationsFinder();
-                       List<Invocation> actualInvocations = finder.findInvocations(data.getAllInvocations(), data.getWanted());
-                       if (actualInvocations.size() != 1) {
-                               throw new MockitoException("This verifier can only be used with 1 invocation, got " + actualInvocations.size());
-                       }
-                       Invocation invocation = actualInvocations.get(0);
-                       arguments = invocation.getArguments();
-                       invocation.markVerified();
+    @Override
+    public void verify(final VerificationData data) {
+        InvocationsFinder finder = new InvocationsFinder();
+        List<Invocation> actualInvocations = finder.findInvocations(data.getAllInvocations(), data.getWanted());
+        if (actualInvocations.size() != 1) {
+            throw new MockitoException("This verifier can only be used with 1 invocation, got " + actualInvocations.size());
+        }
+        Invocation invocation = actualInvocations.get(0);
+        arguments = invocation.getArguments();
+        invocation.markVerified();
 
-               }
-               public Object[] getArguments(){
-                       return arguments;
-               }
-       }
+    }
+    public Object[] getArguments() {
+        return arguments;
+    }
+}