@@ -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 }
@@ -5030,7 +5026,7 @@ private void unSyncUpdateExtension(Config config, RHExtension rhext, ResetFilter
50305026 Map <String , String > map ;
50315027 while (itl .hasNext ()) {
50325028 map = itl .next ();
5033- ClassDefinitionImpl cd = ClassDefinitionImpl .toClassDefinition (map , false , config .getIdentification ());
5029+ ClassDefinitionImpl cd = ( ClassDefinitionImpl ) ClassDefinitionImpl .toClassDefinition (map , false , config .getIdentification ());
50345030 String cfc = map .get ("component" );
50355031
50365032 // class
@@ -5046,11 +5042,12 @@ else if (!StringUtil.isEmpty(cfc, true)) {
50465042 filter .add ("resetStartups" );
50475043 reloadNecessary = true ;
50485044 logger .info ("extension" , "Update Startup Hook [" + cfc + "] from extension [" + rhext .getMetadata ().getName () + ":" + rhext .getVersion () + "]" );
5049- }
5045+ }
50505046 // neither valid class nor component - log error
50515047 else {
5052- logger .error ("extension" , "Startup Hook from extension [" + rhext .getMetadata ().getName () + ":" + rhext .getVersion ()
5053- + "] could not be registered: class definition [" + cd + "] is not a valid OSGi bundle (missing bundle-name/bundle-version?) and no component specified" );
5048+ logger .error ("extension" ,
5049+ "Startup Hook from extension [" + rhext .getMetadata ().getName () + ":" + rhext .getVersion () + "] could not be registered: class definition [" + cd
5050+ + "] is not a valid OSGi bundle (missing bundle-name/bundle-version?) and no component specified" );
50545051 }
50555052 }
50565053 }
@@ -5456,7 +5453,7 @@ private void unSyncRemoveExtension(Config config, RHExtension rhe, RHExtension r
54565453 Map <String , String > map ;
54575454 while (itl .hasNext ()) {
54585455 map = itl .next ();
5459- ClassDefinitionImpl cd = ClassDefinitionImpl .toClassDefinition (map , false , config .getIdentification ());
5456+ ClassDefinitionImpl cd = ( ClassDefinitionImpl ) ClassDefinitionImpl .toClassDefinition (map , false , config .getIdentification ());
54605457 String cfc = map .get ("component" );
54615458
54625459 if (cd != null && (cd .isBundle () || cd .isMaven ())) {
@@ -6218,7 +6215,7 @@ private boolean _removeContext(Config config, String realpath, boolean _store) t
62186215 Resource context = config .getConfigDir ().getRealResource ("context" );
62196216 Resource trg = context .getRealResource (realpath );
62206217 if (trg .exists ()) {
6221- LogUtil .log ( config , Log .LEVEL_INFO , "deploy" , "_removeContext() removing: " + trg .getAbsolutePath () );
6218+ LogUtil .log (config , Log .LEVEL_INFO , "deploy" , "_removeContext() removing: " + trg .getAbsolutePath ());
62226219 trg .remove (true );
62236220 if (_store ) ConfigAdmin ._storeAndReload ((ConfigPro ) config );
62246221 ResourceUtil .removeEmptyFolders (context , null );
@@ -6602,8 +6599,7 @@ public BundleDefinition[] _updateExtension(ConfigPro config, RHExtension ext) th
66026599 return old ;
66036600 }
66046601 }
6605- catch (Exception ee ) {
6606- }
6602+ catch (Exception ee ) {}
66076603 }
66086604 }
66096605 catch (Exception e ) {
0 commit comments