@@ -1710,8 +1710,7 @@ private void _removeJDBCDriver(ClassDefinition cd) throws PageException {
17101710 try {
17111711 OSGiUtil .uninstall (bl );
17121712 }
1713- catch (BundleException e ) {
1714- }
1713+ catch (BundleException e ) {}
17151714 }
17161715 }
17171716 }
@@ -1742,8 +1741,7 @@ private void _removeStartupHook(ClassDefinitionImpl cd) throws PageException {
17421741 try {
17431742 OSGiUtil .uninstall (bl );
17441743 }
1745- catch (BundleException e ) {
1746- }
1744+ catch (BundleException e ) {}
17471745 }
17481746 }
17491747 }
@@ -1778,8 +1776,7 @@ private void unloadStartupIfNecessary(ConfigPro config, ClassDefinition<?> cd, b
17781776 }
17791777 config .getStartups ().remove (cd .getClassName ());
17801778 }
1781- catch (Exception e ) {
1782- }
1779+ catch (Exception e ) {}
17831780 }
17841781
17851782 public void updateJDBCDriver (String label , String id , ClassDefinition cd , String connectionString ) throws PageException {
@@ -1830,8 +1827,7 @@ private void _updateJDBCDriver(String label, String id, ClassDefinition cd, Stri
18301827 try {
18311828 OSGiUtil .uninstall (bl );
18321829 }
1833- catch (BundleException e ) {
1834- }
1830+ catch (BundleException e ) {}
18351831 }
18361832 }
18371833 }
@@ -4968,7 +4964,7 @@ private void unSyncUpdateExtension(Config config, RHExtension rhext, ResetFilter
49684964 Map <String , String > map ;
49694965 while (itl .hasNext ()) {
49704966 map = itl .next ();
4971- ClassDefinitionImpl cd = ClassDefinitionImpl .toClassDefinition (map , false , config .getIdentification ());
4967+ ClassDefinitionImpl cd = ( ClassDefinitionImpl ) ClassDefinitionImpl .toClassDefinition (map , false , config .getIdentification ());
49724968 String cfc = map .get ("component" );
49734969
49744970 // class
@@ -4984,11 +4980,12 @@ else if (!StringUtil.isEmpty(cfc, true)) {
49844980 filter .add ("resetStartups" );
49854981 reloadNecessary = true ;
49864982 logger .info ("extension" , "Update Startup Hook [" + cfc + "] from extension [" + rhext .getMetadata ().getName () + ":" + rhext .getVersion () + "]" );
4987- }
4983+ }
49884984 // neither valid class nor component - log error
49894985 else {
4990- logger .error ("extension" , "Startup Hook from extension [" + rhext .getMetadata ().getName () + ":" + rhext .getVersion ()
4991- + "] could not be registered: class definition [" + cd + "] is not a valid OSGi bundle (missing bundle-name/bundle-version?) and no component specified" );
4986+ logger .error ("extension" ,
4987+ "Startup Hook from extension [" + rhext .getMetadata ().getName () + ":" + rhext .getVersion () + "] could not be registered: class definition [" + cd
4988+ + "] is not a valid OSGi bundle (missing bundle-name/bundle-version?) and no component specified" );
49924989 }
49934990 }
49944991 }
@@ -5371,7 +5368,7 @@ private void unSyncRemoveExtension(Config config, RHExtension rhe, RHExtension r
53715368 Map <String , String > map ;
53725369 while (itl .hasNext ()) {
53735370 map = itl .next ();
5374- ClassDefinitionImpl cd = ClassDefinitionImpl .toClassDefinition (map , false , config .getIdentification ());
5371+ ClassDefinitionImpl cd = ( ClassDefinitionImpl ) ClassDefinitionImpl .toClassDefinition (map , false , config .getIdentification ());
53755372 String cfc = map .get ("component" );
53765373
53775374 if (cd != null && (cd .isBundle () || cd .isMaven ())) {
@@ -6135,7 +6132,7 @@ private boolean _removeContext(Config config, String realpath, boolean _store) t
61356132 Resource context = config .getConfigDir ().getRealResource ("context" );
61366133 Resource trg = context .getRealResource (realpath );
61376134 if (trg .exists ()) {
6138- LogUtil .log ( config , Log .LEVEL_INFO , "deploy" , "_removeContext() removing: " + trg .getAbsolutePath () );
6135+ LogUtil .log (config , Log .LEVEL_INFO , "deploy" , "_removeContext() removing: " + trg .getAbsolutePath ());
61396136 trg .remove (true );
61406137 if (_store ) ConfigAdmin ._storeAndReload ((ConfigPro ) config );
61416138 ResourceUtil .removeEmptyFolders (context , null );
@@ -6430,8 +6427,7 @@ public BundleDefinition[] _updateExtension(ConfigPro config, RHExtension ext) th
64306427 return old ;
64316428 }
64326429 }
6433- catch (Exception ee ) {
6434- }
6430+ catch (Exception ee ) {}
64356431 }
64366432 }
64376433 catch (Exception e ) {
0 commit comments