Update java.rb

Add some entries about injections and common errors.