Update MarkerManager.

  - Remove unused imports.
  - Suppress static code analysis warning about call to System
  .arraycopy in synchronized context being slow (it shouldn't be).
  - Use for-each loops where possible.
  - Use varargs in contains method.
  - Add matching @Deprecated annotations.

git-svn-id: https://svn.apache.org/repos/asf/logging/log4j/log4j2/trunk@1588824 13f79535-47bb-0310-9956-ffa450edef68
Add @Deprecated annotation.

git-svn-id: https://svn.apache.org/repos/asf/logging/log4j/log4j2/trunk@1588827 13f79535-47bb-0310-9956-ffa450edef68