From: <gjo...@us...> - 2008-04-28 18:41:36
|
Revision: 2702 http://abbot.svn.sourceforge.net/abbot/?rev=2702&view=rev Author: gjohnsto Date: 2008-04-28 11:40:21 -0700 (Mon, 28 Apr 2008) Log Message: ----------- Got rid of a gratuitous Java 6 dependency. Modified Paths: -------------- abbot.swt/trunk/abbot.swt/src/abbot/swt/junit/extensions/SWTTestCase.java Modified: abbot.swt/trunk/abbot.swt/src/abbot/swt/junit/extensions/SWTTestCase.java =================================================================== --- abbot.swt/trunk/abbot.swt/src/abbot/swt/junit/extensions/SWTTestCase.java 2008-04-28 18:14:57 UTC (rev 2701) +++ abbot.swt/trunk/abbot.swt/src/abbot/swt/junit/extensions/SWTTestCase.java 2008-04-28 18:40:21 UTC (rev 2702) @@ -456,7 +456,7 @@ protected void dumpScreenshot(String directory) { String filename = getName() + ".jpg"; - if (directory != null && !directory.isEmpty()) + if (directory != null && directory.length() > 0) filename = directory + File.separator + filename; System.err.printf("\nSaving screenshot to %s\n", filename); Robot robot = new Robot(getDisplay()); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |