protected IDataSet createDataSet() throws DataSetException { final ISession session = getSession(); try { final SQLDatabaseMetaData md = session.getSQLConnection().getSQLMetaData(); return new ObjectArrayDataSet(md.getSQLKeywords()); } catch (SQLException ex) { throw new DataSetException(ex);
protected IDataSet createDataSet() throws DataSetException { final ISession session = getSession(); try { final SQLDatabaseMetaData md = session.getSQLConnection().getSQLMetaData(); return new ObjectArrayDataSet(md.getSystemFunctions()); } catch (SQLException ex) { throw new DataSetException(ex);
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/mainpanel/objecttree/tabs/database/KeywordsTab.java File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/mainpanel/objecttree/tabs/database/SystemFunctionsTab.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
protected IDataSet createDataSet() throws DataSetException
1
protected IDataSet createDataSet() throws DataSetException
2
	{
2
	{
3
		final ISession session = getSession();
3
		final ISession session = getSession();
4
		try
4
		try
5
		{
5
		{
6
			final SQLDatabaseMetaData md = session.getSQLConnection().getSQLMetaData();
6
			final SQLDatabaseMetaData md = session.getSQLConnection().getSQLMetaData();
7
			return new ObjectArrayDataSet(md.getSQLKeywords());
7
			return new ObjectArrayDataSet(md.getSystemFunctions());
8
		}
8
		}
9
		catch (SQLException ex)
9
		catch (SQLException ex)
10
		{
10
		{
11
			throw new DataSetException(ex);
11
			throw new DataSetException(ex);
12
		
12
		
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0