ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Subverting Java Access Protection for Unit Testing
Subject:   A simpler way
Date:   2004-01-07 12:04:07
From:   anonymous2
Instead of using the loop on Class.getDeclaredFields(), there is also a method Class.getDeclaredField(String) that takes a string containing the name of the field.

1 to 1 of 1
1 to 1 of 1