   (let ((entity (cdr (assoc (match-string 0)
                             jpw-javadoc-invalid-chars-table)))
         );;end bindings
+    (if entity
         (if (looking-at jpw-javadoc-replacement-entity-re)
             (goto-char (match-end 0))
           ;; else
-          (replace-match entity t t))
-        );;end let
+          (replace-match entity t t)))
+    );;end let
   )
 
 

    '>' with '&lt;'
    '&' with '&amp;'
    '@' with '&#064;'

Anything inside of '<code> ... </code>', '<pre> ... </pre>',
or '{@link ... }' is considered a code sample.  Text outside of these blocks

    (">" . "&gt;")
    ("&" . "&amp;")
    ("@" . "&#064;")
    ("/*" . "/&#042;")
    ("*/" . "&#042;/")
    )
  "Table of characters that can't be used in Javadoc comments, mapped to their
replacements.
{jpw; 02/2012}")


(defconst jpw-javadoc-invalid-chars-re  "\\(?:[<>&@]\\|/\\*\\|\\*/\\)"
  "Regexp of characters and substrings that can't be used in Javadoc
comments.
{jpw; 06/2012}")


(defconst jpw-javadoc-invalid-nontag-chars-re  "\\(?:[&@]\\|/\\*\\|\\*/\\)"
  "Like `jpw-javadoc-invalid-chars-re', but omitting the '<' and '>'
characters.
{jpw; 06/2012}")


(defconst jpw-javadoc-chk-invalid-start-re
