@@ -61,6 +61,8 @@ public static void main(String[] args) {
6161 // System.out.println("Done.");
6262 } catch (IOException e ) {
6363 e .printStackTrace ();
64+ } catch (InterruptedException e ) {
65+ e .printStackTrace ();
6466 }
6567 }
6668
@@ -89,8 +91,9 @@ public static void main(String[] args) {
8991 * @param outputDir Directory where the output should be written.
9092 * @throws IOException In case an error occurs during the preparation or
9193 * execution of the analysis.
94+ * @throws InterruptedException
9295 */
93- public void run (String sourceDir , String outputDir ) throws IOException {
96+ public void run (String sourceDir , String outputDir ) throws IOException , InterruptedException {
9497 run (sourceDir , null , null , outputDir );
9598 }
9699
@@ -108,8 +111,9 @@ public void run(String sourceDir, String outputDir) throws IOException {
108111 * @param outputDir Directory where the output should be written.
109112 * @throws IOException In case an error occurs during the preparation or
110113 * execution of the analysis.
114+ * @throws InterruptedException
111115 */
112- public void run (String sourceDir , String trainSourceCode , String trainJson , String outputDir ) throws IOException {
116+ public void run (String sourceDir , String trainSourceCode , String trainJson , String outputDir ) throws IOException , InterruptedException {
113117
114118 // This helper object keeps track of created temporary directories and files to
115119 // to be deleted before exiting the
@@ -138,7 +142,7 @@ public void run(String sourceDir, String trainSourceCode, String trainJson, Stri
138142 }
139143
140144 private void internalRun (String sourceDir , String trainSourceCode , String trainJson , String outputDir )
141- throws IOException {
145+ throws IOException , InterruptedException {
142146
143147 int iterations = 0 ;
144148 if (runOAT )
@@ -236,7 +240,7 @@ private void internalRun(String sourceDir, String trainSourceCode, String trainJ
236240
237241 }
238242
239- private double runClassifier (HashSet <Category > categories , boolean cweMode ) throws IOException {
243+ private double runClassifier (HashSet <Category > categories , boolean cweMode ) throws IOException , InterruptedException {
240244 parser .resetMethods ();
241245 loader .resetMethods ();
242246 // System.out.println("***** Starting classification for " +
0 commit comments