fixed checkstyle violations for Resource.java
s