< prev index next >

test/jdk/java/lang/Class/getDeclaredField/FieldSetAccessibleTest.java

Print this page
@@ -92,19 +92,19 @@
  
              // setAccessible succeeds only if it's exported and the member
              // is public and of a public class, or it's opened
              // otherwise it would fail.
              boolean isPublic = Modifier.isPublic(f.getModifiers()) &&
-                 Modifier.isPublic(c.getModifiers());
+                     Modifier.isPublic(c.getModifiers());
              boolean access = (exported && isPublic) || target.isOpen(pn, self);
              try {
                  f.setAccessible(false);
                  f.setAccessible(true);
                  if (!access) {
                      throw new RuntimeException(
-                         String.format("Expected InaccessibleObjectException is not thrown "
-                                       + "for field %s in class %s%n", f.getName(), c.getName()));
+                             String.format("Expected InaccessibleObjectException is not thrown "
+                                     + "for field %s in class %s%n", f.getName(), c.getName()));
                  }
              } catch (InaccessibleObjectException expected) {
                  if (access) {
                      throw new RuntimeException(expected);
                  }

@@ -274,11 +274,11 @@
                          .filter(p -> p.getNameCount() > 2)
                          .filter(p -> modules.contains(p.getName(1).toString()))
                          .map(p -> p.subpath(2, p.getNameCount()))
                          .map(p -> p.toString())
                          .filter(s -> s.endsWith(".class") && !s.endsWith("module-info.class"))
-                     .iterator();
+                         .iterator();
              } catch(IOException x) {
                  throw new UncheckedIOException("Unable to walk \"/modules\"", x);
              }
          }
  

@@ -290,13 +290,13 @@
                  // All JVMCI packages other than jdk.vm.ci.services are dynamically
                  // exported to jdk.internal.vm.compiler
                  "jdk.internal.vm.compiler"
              );
              return ModuleFinder.ofSystem().findAll().stream()
-                                .map(mref -> mref.descriptor().name())
-                                .filter(mn -> !mods.contains(mn))
-                                .collect(Collectors.toSet());
+                     .map(mref -> mref.descriptor().name())
+                     .filter(mn -> !mods.contains(mn))
+                     .collect(Collectors.toSet());
          }
      }
  
      // Test with or without a security manager
      public static enum TestCase {
< prev index next >