From 53809f5870d1dbb2c3716f59b8272c46f3e7b92e Mon Sep 17 00:00:00 2001 From: kjvdheide Date: Mon, 13 Nov 2017 14:43:59 +0000 Subject: [PATCH] JAL-2805 Archaeopteryx main returns its created MainFrame instance --- forester/java/src/org/forester/archaeopteryx/Archaeopteryx.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/forester/java/src/org/forester/archaeopteryx/Archaeopteryx.java b/forester/java/src/org/forester/archaeopteryx/Archaeopteryx.java index 8cbf8ca..b43b9f1 100644 --- a/forester/java/src/org/forester/archaeopteryx/Archaeopteryx.java +++ b/forester/java/src/org/forester/archaeopteryx/Archaeopteryx.java @@ -60,7 +60,7 @@ public final class Archaeopteryx { return MainFrameApplication.createInstance( phylogenies, config_file_name, title ); } - public static void main( final String args[] ) { + public static MainFrame main( final String args[] ) { Phylogeny[] phylogenies = null; String config_filename = null; Configuration conf = null; @@ -126,7 +126,7 @@ public final class Archaeopteryx { current_dir = new File( "." ); } try { - MainFrameApplication.createInstance( phylogenies, conf, title, current_dir ); + return MainFrameApplication.createInstance( phylogenies, conf, title, current_dir ); } catch ( final OutOfMemoryError e ) { AptxUtil.outOfMemoryError( e ); @@ -137,5 +137,5 @@ public final class Archaeopteryx { catch ( final Error e ) { AptxUtil.unexpectedError( e ); } - } + return null;} } \ No newline at end of file -- 1.7.10.2