Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for GoodEquals (0.22 sec)

  1. guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java

        // will keep trying
        public GoodEquals(@SuppressWarnings("unused") NotInstantiable x, int b) {
          this.a = "x";
          this.b = b;
        }
    
        // keep trying
        @SuppressWarnings("unused")
        static GoodEquals create(int a, int b) {
          throw new RuntimeException();
        }
    
        // Good!
        static GoodEquals create(String a, int b) {
          return new GoodEquals(a, b);
        }
    
        // keep trying
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 36.3K bytes
    - Viewed (0)
Back to top