Skip to content

Commit

Permalink
Minor: Guarding class-cast assumption
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Woods committed Jun 14, 2013
1 parent bf858e2 commit 7dae1dd
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -46,8 +46,10 @@ public class ModeShapeRepositoryFactoryBean implements
*/
@PostConstruct
public void buildRepository() throws RepositoryException, IOException {
LOGGER.debug("Using repo config: {}",
((ClassPathResource) repositoryConfiguration).getPath());
if (repositoryConfiguration instanceof ClassPathResource) {
LOGGER.debug("Using repo config: {}",
((ClassPathResource) repositoryConfiguration).getPath());
}

repository =
(JcrRepository) jcrRepositoryFactory.getRepository(Collections
Expand Down

0 comments on commit 7dae1dd

Please sign in to comment.