Buggy code:
private String getSqliteFileFullPath ( String dbType , String fileName ) { } private boolean enableDbVersion ( ) { } private void addStringConnectionControls ( ) { } @ Override protected void addUtilsButtonListeners ( ) { } private void forceSetFlagForHiveCreateDefaultDB ( ) throws ClassNotFoundException { } @ Override protected void addFieldsListeners ( ) { } private void resetControls ( ) { } private void clearFiledsForDiffDbTypes ( ) { } private void checkScrolledCompositeSize ( ) { } private void checkAndSetIniSQLModel ( ) { } private void modifyFieldValue ( ) { } private void hideDbVersion ( ) { } private void addHBaseSettingFieldsListeners ( ) { } private void addImpalaSettingFieldsListeners ( ) { } private void handleHadoopCustomVersion ( final ECustomVersionType type ) { } private void addGeneralDbFieldsListeners ( ) { } private boolean isGeneralJDBC ( ) { } private boolean isHiveDBConnSelected ( ) { } private boolean isHBaseDBConnSelected ( ) { } private boolean isImpalaDBConnSelected ( ) { } @ Override public boolean checkFieldsValue ( ) { } private void checkURLIsChanged ( ) { } private boolean isGeneralJdbc ( ) { } private boolean isSupportByTDQ ( ) { } private boolean checkGeneralDBFieldValues ( ) { } private boolean validText ( final String value ) { } private boolean checkTypeDBFieldValues ( ) { } private boolean checkHBaseSettings ( ) { } private boolean checkImpalaSettings ( ) { } private String getStringConnection ( ) { } private void updateCheckButton ( ) { } @ SuppressWarnings ( "static-access" ) private void setPropertiesFormEditable ( boolean visible ) { } private void collectContextParams ( ) { } private void collectHiveContextParams ( ) { } private void collectHBaseContextParams ( ) { } private boolean useHadoopRepositoryParam ( ) { } private void hideMappingFileRelatedWidgets ( boolean hide ) { } private boolean oracleVersionEnable ( ) { } private boolean ImpalaVersionEnable ( ) { } private boolean as400VersionEnable ( ) { } private boolean asMySQLVersionEnable ( ) { } private boolean asSASVersionEnable ( ) { } private boolean asSAPHanaVersionEnable ( ) { } private boolean asVerticaVersionEnable ( ) { } private boolean asHbaseVersionEnable ( ) { } private boolean isDBTypeSelected ( EDatabaseConnTemplate dbTemplate ) { } @ Override public void setVisible ( boolean visible ) { } protected DatabaseConnection getConnection ( ) { } protected void evaluateTextField ( boolean b ) { } @ Override protected void adaptFormToEditable ( ) { } public boolean isDbTypenull ( ) { } private String checkDBVersion ( ) { } protected void initImpalaInfo ( ) { } protected void initHiveInfo ( ) { } private void updateYarnStatus ( ) { } protected void regHiveCombosListener ( ) { } protected void regHiveRelatedWidgetsListeners ( ) { } private void regHiveCustomBtnListener ( ) { } private void regHiveDistributionComboListener ( ) { } private void regHiveVersionComboListener ( ) { } private void regUseYarnBtnListener ( ) { } private void regHiveModeComboListener ( ) { } private void regHiveRelatedWidgetNameNodeURLTxtListener ( ) { } private void regHiveRelatedWidgetJobTrackerTxtListener ( ) { } private void regHiveRelatedWidgetHiveServerComboListener ( ) { } private void regHiveRelatedWidgetMetastoreConnURLListener ( ) { } private void regHiveRelatedWidgetMetastoreConnUserNameListener ( ) { } private void regHiveRelatedWidgetMetastoreConnPasswordListener ( ) { } private void regHiveRelatedWidgetMetastoreConnDriverJarListener ( ) { } private void regHiveRelatedWidgetMetastoreConnDriverJarBrowserListener ( ) { } private void regHiveRelatedWidgetMetastoreConnDriverNameListener ( ) { } protected void doHiveModeModify ( ) { } protected void doHiveDistributionModify ( ) { } protected void doHiveVersionModify ( ) { } private void fillDefaultsWhenHiveVersionChanged ( ) { } private void fillDefaultsWhenHBaseVersionChanged ( ) { } private void fillDefaultsWhenImpalaVersionChanged ( ) { } private void updateYarnInfo ( IHDistribution hiveDistribution , IHDistributionVersion hiveVersion ) { } protected void doUseYarnModify ( ) { } private void updateJobtrackerContent ( ) { } protected void doNameNodeModify ( ) { } protected void doJobTrackerModify ( ) { } protected void doMetastoreConnURLModify ( ) { } protected void doMetastoreConnUserNameModify ( ) { } protected void doMetastoreConnPasswordModify ( ) { } protected void doMetastoreConnDriverJarModify ( ) { } protected void doMetastoreConnDriverNameModify ( ) { } protected void doHiveServerSelected ( ) { } protected void updateHiveDistributionAndMakeSelection ( IHDistribution hiveDistribution ) { } private IHDistribution getCurrentHiveDistribution ( boolean withDefault ) { } protected void updateHiveVersionAndMakeSelection ( IHDistribution hiveDistribution , IHDistributionVersion hiveVersion ) { } protected void updateHiveModeAndMakeSelection ( HiveModeInfo hiveMode ) { } protected void updateHiveServerAndMakeSelection ( IHDistribution hiveDistribution , IHDistributionVersion hiveVersion ) { } public void handleStandaloneMode ( ) { } protected void handleUIWhenEmbeddedModeSelected ( ) { } protected void handleUIWhenStandaloneModeSelected ( ) { } private void fillDefaultsWhenHiveModeChanged ( boolean isEmbeddedMode ) { } public void handleEmbeddedMode ( ) { } private void doHiveUIContentsLayout ( ) { } protected void doHiveDBTypeSelected ( ) { } protected void doHiveDBTypeNotSelected ( ) { } private void handleHiveRelatedWidgetsStatus ( boolean hide ) { } private void handleOtherWidgetsStatusForHive ( boolean hide ) { } private void setHideVersionInfoWidgets ( boolean hide ) { } private void setHideHadoopInfoWidgets ( boolean hide ) { } private void setHideMetastoreInfoWidgets ( boolean hide ) { } protected void doHideHiveWidgets ( boolean hide ) { } protected void doUpdateConnection ( ) { } protected void doHivePreSetup ( DatabaseConnection connection ) { } protected void doRemoveHiveSetup ( ) { } protected boolean isHiveEmbeddedMode ( ) { } private boolean doSupportHive2 ( ) { } private boolean doSupportSecurity ( ) { } private boolean doSupportTez ( ) { if ( isHiveDBConnSelected ( ) ) { <START_BUG> HiveMetadataHelper . doSupportTez ( hiveDistributionCombo . getText ( ) , hiveVersionCombo . getText ( ) , true ) ; <END_BUG> } return false ; } private boolean canLinkToHadoopCluster ( ) { } private String getselecteModulePath ( String selecteModule ) { } public IMetadataConnection getMetadataConnection ( ) { } public LabelledCombo getHiveModeCombo ( ) { } public LabelledCombo getDistributionCombo ( ) { } public LabelledCombo getHiveVersionCombo ( ) { } public ContextType getSelectedContextType ( ) { } public List < HashMap < String , Object > > getProperties ( ) { } public void setProperties ( List < HashMap < String , Object > > properties ) { } @ Override protected void exportAsContext ( ) { } }

Fix:
return HiveMetadataHelper . doSupportTez ( hiveDistributionCombo . getText ( ) , hiveVersionCombo . getText ( ) , true ) ;