src/jdk/internal/dynalink/beans/GuardedInvocationComponent.java

changeset 101
f8221ce53c2e
parent 90
5a820fb11814
child 952
6d5471a497fb
child 962
ac62e33a99b0
     1.1 --- a/src/jdk/internal/dynalink/beans/GuardedInvocationComponent.java	Mon Feb 18 10:36:18 2013 +0100
     1.2 +++ b/src/jdk/internal/dynalink/beans/GuardedInvocationComponent.java	Mon Feb 18 16:00:15 2013 +0100
     1.3 @@ -86,7 +86,6 @@
     1.4  import java.lang.invoke.MethodHandle;
     1.5  import jdk.internal.dynalink.linker.GuardedInvocation;
     1.6  
     1.7 -
     1.8  /**
     1.9   * Represents one component for a GuardedInvocation of a potentially composite operation of an
    1.10   * {@link AbstractJavaLinker}. In addition to holding a guarded invocation, it holds semantic information about its
    1.11 @@ -196,8 +195,8 @@
    1.12                                  return this;
    1.13                              }
    1.14                              break;
    1.15 -                        case NONE:
    1.16 -                            throw new AssertionError(); // Not possible
    1.17 +                        default:
    1.18 +                            throw new AssertionError();
    1.19                      }
    1.20                      break;
    1.21                  case EXACT_CLASS:
    1.22 @@ -217,8 +216,8 @@
    1.23                                  return this;
    1.24                              }
    1.25                              break;
    1.26 -                        case NONE:
    1.27 -                            throw new AssertionError(); // Not possible
    1.28 +                        default:
    1.29 +                            throw new AssertionError();
    1.30                      }
    1.31                      break;
    1.32                  case IS_ARRAY:
    1.33 @@ -231,10 +230,12 @@
    1.34                              break;
    1.35                          case IS_ARRAY:
    1.36                              return this;
    1.37 -                        case NONE:
    1.38 -                            throw new AssertionError(); // Not possible
    1.39 +                        default:
    1.40 +                            throw new AssertionError();
    1.41                      }
    1.42                      break;
    1.43 +                default:
    1.44 +                    throw new AssertionError();
    1.45              }
    1.46              throw new AssertionError("Incompatible composition " + this + " vs " + other);
    1.47          }

mercurial