                        }
     :ant               { :ivy #"antlib:org\.apache\.ivy\.ant" }
     :java              {
-                         :synchronized #"\ssynchronized\s"
+                         :synchronized #"(^|\s)synchronized(\s|$)"
                        }
   })
 

    { "AlfrescoVersionMax" (if (empty? message) "Not specified" message) }))

(defn- stb08-stb09-use-of-synchronized
  [content-index]
  (let [uses-of-synchronized (filter #(= :synchronized (:regex-id %)) content-index)
        message              (str "Uses of synchronized:\n" (s/join "\n" (map #(str (:file %) " line " (:line-number %)) uses-of-synchronized)))]
    (merge
      (build-bookmark-map "STB08"
                          (empty? uses-of-synchronized)

      (module-versions                 content-index)
      (alfresco-min-versions           content-index)
      (alfresco-max-versions           content-index)
      (stb08-stb09-use-of-synchronized source content-index)
    )))
  