Update ThreadAdapter.java