Author: rwhitcomb Date: Tue Feb 6 22:13:32 2018 New Revision: 1823400 URL: http://svn.apache.org/viewvc?rev=1823400&view=rev Log: Add an image name parameter to ImageUtils.findByName to make error message more explicit. So, change all the callers.
In addition, change some places that could use this method that were not previously using it. Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/text/ImageNode.java Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/text/ImageNode.java URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/text/ImageNode.java?rev=1823400&r1=1823399&r2=1823400&view=diff ============================================================================== --- pivot/trunk/wtk/src/org/apache/pivot/wtk/text/ImageNode.java (original) +++ pivot/trunk/wtk/src/org/apache/pivot/wtk/text/ImageNode.java Tue Feb 6 22:13:32 2018 @@ -82,10 +82,10 @@ public class ImageNode extends Block { * * @param imageName The resource name of the image to set. * @see #setImage(URL) - * @see ImageUtils#findByName(String) + * @see ImageUtils#findByName(String,String) */ public void setImage(String imageName) { - setImage(ImageUtils.findByName(imageName)); + setImage(ImageUtils.findByName(imageName, "image")); } @Override