protected void warningOccurred(int code){
  cbLock.lock();
  try {
    if ((code < 0) || (code > MAX_WARNING)) {
      throw new InternalError("Invalid warning index");
    }
    processWarningOccurred("com.sun.imageio.plugins.jpeg.JPEGImageReaderResources",Integer.toString(code));
  }
  finally {
    cbLock.unlock();
  }
}

protected void warningOccurred ( int code ) { cbLock . lock ( ) ; try { if ( ( code < 0 ) || ( code > MAX_WARNING ) ) { throw new InternalError ( "Invalid warning index" ) ; } processWarningOccurred ( "com.sun.imageio.plugins.jpeg.JPEGImageReaderResources" , Integer . toString ( code ) ) ; } finally { cbLock . unlock ( ) ; } }
called by the native code or other classes to signal a warning . the code is used to lookup a localized message to be used when sending warnings to listeners .
