[KARAF-2567] Fix compilation error with Java 7

git-svn-id: https://svn.apache.org/repos/asf/karaf/branches/karaf-2.x@1541424 13f79535-47bb-0310-9956-ffa450edef68