Skip to content

Commit

Permalink
FORGE-1701 Swallow ResourceExceptions for missing inspected types.
Browse files Browse the repository at this point in the history
If the corresponding JavaResource does not exist, then do not
attempt to return it for further use in the REST resource
generation.
  • Loading branch information
VineetReynolds committed Mar 25, 2014
1 parent 1d7ffe8 commit 87133e5
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import org.jboss.forge.addon.parser.java.resources.JavaResource;
import org.jboss.forge.addon.projects.Project;
import org.jboss.forge.addon.resource.Resource;
import org.jboss.forge.addon.resource.ResourceException;
import org.jboss.forge.addon.resource.ResourceFactory;
import org.jboss.forge.addon.templates.TemplateProcessor;
import org.jboss.forge.addon.templates.TemplateProcessorFactory;
Expand Down Expand Up @@ -270,6 +271,10 @@ private JavaClass tryGetJavaClass(Project project, String qualifiedFieldType)
{
// Ignore, since the source file may not be available
}
catch (ResourceException resourceEx)
{
// Ignore, since the source file may not be available
}
return null;
}

Expand Down

0 comments on commit 87133e5

Please sign in to comment.