jdk/test/java/util/ServiceLoader/Basic.java
changeset 32649 2ee9017c7597
parent 14191 01f4a54604a6
equal deleted inserted replaced
32648:1fa861caf840 32649:2ee9017c7597
    42         if (s1.equals(s2) != eq)
    42         if (s1.equals(s2) != eq)
    43             throw new RuntimeException(String.format("%b %s : %s",
    43             throw new RuntimeException(String.format("%b %s : %s",
    44                                                      eq, s1, s2));
    44                                                      eq, s1, s2));
    45     }
    45     }
    46 
    46 
    47     static abstract class TestLoader {
    47     abstract static class TestLoader {
    48         String name;
    48         String name;
    49 
    49 
    50         TestLoader(String name) { this.name = name; }
    50         TestLoader(String name) { this.name = name; }
    51 
    51 
    52         abstract ServiceLoader<FooService> load();
    52         abstract ServiceLoader<FooService> load();