@@ -38,18 +38,13 @@ public void checkLoadedAssets(List<LoadedAsset> assets) {
3838 * @param uri
3939 */
4040 protected void staticallyCheckModule (String uri ) {
41- try {
42- if (logger .isInfoEnabled ()) {
43- logger .info ("Performing static check on module at URI: " + uri );
44- }
45- String xquery = "let $uri := '" + uri + "' return " + buildXqueryForStaticallyCheckingModule ();
46- executeQuery (xquery );
47- if (logger .isInfoEnabled ()) {
48- logger .info ("Finished static check on module at URI: " + uri );
49- }
50- } catch (Exception re ) {
51- String message = "Static check failed for module at URI: " + uri + "; cause: " + re .getMessage ();
52- throw new RuntimeException (message , re );
41+ if (logger .isInfoEnabled ()) {
42+ logger .info ("Performing static check on module at URI: " + uri );
43+ }
44+ String xquery = "let $uri := '" + uri + "' return " + buildXqueryForStaticallyCheckingModule ();
45+ executeQuery (xquery );
46+ if (logger .isInfoEnabled ()) {
47+ logger .info ("Finished static check on module at URI: " + uri );
5348 }
5449 }
5550
@@ -66,17 +61,12 @@ protected void performBulkStaticCheck(List<LoadedAsset> assets) {
6661 }
6762 xquery += ") for $uri in $uris return " + buildXqueryForStaticallyCheckingModule ();
6863
69- try {
70- if (logger .isInfoEnabled ()) {
71- logger .info ("Static checking all loaded modules" );
72- }
73- executeQuery (xquery );
74- if (logger .isInfoEnabled ()) {
75- logger .info ("Finished static checking all loaded modules" );
76- }
77- } catch (Exception re ) {
78- String message = "Bulk static check failure, cause: " + re .getMessage ();
79- throw new RuntimeException (message , re );
64+ if (logger .isInfoEnabled ()) {
65+ logger .info ("Static checking all loaded modules" );
66+ }
67+ executeQuery (xquery );
68+ if (logger .isInfoEnabled ()) {
69+ logger .info ("Finished static checking all loaded modules" );
8070 }
8171 }
8272
0 commit comments