geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r367317 - /geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/AbstractTableSection.java
Date Mon, 09 Jan 2006 15:14:03 GMT
Author: sppatel
Date: Mon Jan  9 07:14:01 2006
New Revision: 367317

URL: http://svn.apache.org/viewcvs?rev=367317&view=rev
Log:
GERONIMODEVTOOLS-31

Modified:
    geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/AbstractTableSection.java

Modified: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/AbstractTableSection.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/AbstractTableSection.java?rev=367317&r1=367316&r2=367317&view=diff
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/AbstractTableSection.java
(original)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/sections/AbstractTableSection.java
Mon Jan  9 07:14:01 2006
@@ -60,8 +60,8 @@
 import org.openejb.xml.ns.pkgen.provider.PkgenItemProviderAdapterFactory;
 
 public abstract class AbstractTableSection extends AbstractSectionPart {
-	
-	protected static String[] COLUMN_NAMES = new String[]{};
+
+	protected static String[] COLUMN_NAMES = new String[] {};
 
 	private Table table;
 
@@ -108,8 +108,8 @@
 
 	public void createClient() {
 
-		assert getTableEntryObjectType() != null
-				&& getTableColumnNames() != null;
+		if (getTableEntryObjectType() == null)
+			throw new NullPointerException();
 
 		getSection().setText(getTitle());
 		getSection().setDescription(getDescription());
@@ -298,7 +298,7 @@
 	protected Table getTable() {
 		return table;
 	}
-	
+
 	public String[] getTableColumnNames() {
 		return COLUMN_NAMES;
 	}



Mime
View raw message