test/hotspot/jtreg/runtime/InvocationTests/invokevirtual/Checker.java
changeset 55552 9bd13d6dea77
parent 55497 d3a33953b936
child 58679 9c3209ff7550
--- a/test/hotspot/jtreg/runtime/InvocationTests/invokevirtual/Checker.java	Tue Jul 02 16:55:22 2019 +0100
+++ b/test/hotspot/jtreg/runtime/InvocationTests/invokevirtual/Checker.java	Tue Jul 02 13:20:27 2019 -0400
@@ -88,7 +88,7 @@
             return null;
         }
 
-        // Dynamic target doesn't have desired method, so check it's superclass
+        // Dynamic target doesn't have desired method, so check its superclass
         if (dynamicTargetMethod == null) {
             return getOverriddenMethod(staticTarget, dynamicTarget.getSuperclass());
         } else {
@@ -109,11 +109,9 @@
             String staticTargetPkg = getClassPackageName(staticTarget);
             String dynamicTargetPkg = getClassPackageName(dynamicTarget);
 
-            if ( isPublic || isProtected
-                 || ( !isPublic && !isProtected && !isPrivate
-                      && staticTargetPkg.equals(dynamicTargetPkg)
-                    ))
-            {
+            if (isPublic || isProtected
+                || (!isPublic && !isProtected && !isPrivate
+                    && staticTargetPkg.equals(dynamicTargetPkg))) {
                 return dynamicTargetMethod;
             }
         }