throw new RuntimeException("Compiled-Code")?

Ich hab gerade geschaut, das in den code javax.ws.rs.core.MediaType und wunderte mich über throw new RuntimeException("Compiled Code"), da ich noch nie zuvor gesehen. Ich denke, das ist eine form von "nicht umgesetzt", aber nicht wissen.

package javax.ws.rs.core;

import java.util.Map;
import javax.ws.rs.ext.RuntimeDelegate.HeaderDelegate;

public class MediaType {

  //some variables and constants ...

  public static MediaType valueOf(String string) throws IllegalArgumentException {
    //compiled code
    throw new RuntimeException("Compiled Code");
  }

  public MediaType(String string, String string1, Map<String, String> map) {
    //compiled code
    throw new RuntimeException("Compiled Code");
  }

  public MediaType(String string, String string1) {
    //compiled code
    throw new RuntimeException("Compiled Code");
  }

  ...

}

Was ist es überhaupt?

InformationsquelleAutor deamon | 2010-08-06
Schreibe einen Kommentar