java: remove dead methods

found by UCDetector

Change-Id: I219caa8e680dba5a395541a778df6144841c4dde
connectivity: remove pre-Java1.5 workaround

Change-Id: Ie35a308d012e75e3aa73dc81d06f0a39a881760b