Apology in JavaDoc

Recently I stumbled about a lovely piece of JavaDoc:

/**
  * Because of possible changes of the Jar's name 
  * the actual name has to be determined programmatically.
  *
  * Apology to Baldr, Venus, Aphrodite, Lakshmi, Hathor 
  * and all remaining gods of beauty.
  */
public String getJarName() {
  .... // very ugly code
}

Formatting XML with Notepad++

When there is need for a fast and powerful editor I really like Notepad++ [1]. But it bugged me a bit that there isn’t a function for formatting XML.

Recently I stumbled over the plugin “XML Tools” [2] which added the desired functionality. Like!

Two small drawbacks:

  • the default shortcut for formatting is set to CTRL+ALT+SHIFT+B … seriously ?? Anyone out there who can use that shortcut without a cramp in his fingers ?? Fortunately you can simply change that in the shortcut-dialog…
  • the plugin formats if and only if the XML is syntactical correct

Reference

  1. [1] http://notepad-plus-plus.org
  2. [2] http://sourceforge.net/projects/npp-plugins/files/