< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/javac/api/ClientCodeWrapper.java

Print this page

        

@@ -71,15 +71,15 @@
 /**
  *  Wrap objects to enable unchecked exceptions to be caught and handled.
  *
  *  For each method, exceptions are handled as follows:
  *  <ul>
- *  <li>Checked exceptions are left alone and propogate upwards in the
+ *  <li>Checked exceptions are left alone and propagate upwards in the
  *      obvious way, since they are an expected aspect of the method's
  *      specification.
  *  <li>Unchecked exceptions which have already been caught and wrapped in
- *      ClientCodeException are left alone to continue propogating upwards.
+ *      ClientCodeException are left alone to continue propagating upwards.
  *  <li>All other unchecked exceptions (i.e. subtypes of RuntimeException
  *      and Error) and caught, and rethrown as a ClientCodeException with
  *      its cause set to the original exception.
  *  </ul>
  *

@@ -155,11 +155,11 @@
             return ((JavaFileObject) ((WrappedJavaFileObject) fo).clientFileObject);
         else
             return fo;
     }
 
-    public <T /*super JavaFileOject*/> DiagnosticListener<T> wrap(DiagnosticListener<T> dl) {
+    public <T /*super JavaFileObject*/> DiagnosticListener<T> wrap(DiagnosticListener<T> dl) {
         if (isTrusted(dl))
             return dl;
         return new WrappedDiagnosticListener<>(dl);
     }
 
< prev index next >