File tree Expand file tree Collapse file tree 6 files changed +19
-5
lines changed
aima-core/src/main/java/aima/core/util/math/geom
aima-gui/src/main/java/aima/gui Expand file tree Collapse file tree 6 files changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -201,7 +201,9 @@ private TransformMatrix2D parseTransform(String string) {
201201 try {
202202 ty = parseNumber (matcher2 .group (i ));
203203 i ++;
204- } catch (NumberFormatException e ) { }
204+ } catch (NumberFormatException e ) {
205+ e .printStackTrace ();
206+ }
205207 result = result .multiply (TransformMatrix2D .translate (tx , ty ));
206208 } else if (matcher2 .group (i ).equalsIgnoreCase (SCALE_TRANSFORM )) {
207209 double sx = parseNumber (matcher2 .group (++i ));
@@ -210,7 +212,9 @@ private TransformMatrix2D parseTransform(String string) {
210212 try {
211213 sy = parseNumber (matcher2 .group (i ));
212214 i ++;
213- } catch (NumberFormatException e ) { }
215+ } catch (NumberFormatException e ) {
216+ e .printStackTrace ();
217+ }
214218 result = result .multiply (TransformMatrix2D .scale (sx , sy ));
215219 } else if (matcher2 .group (i ).equalsIgnoreCase (ROTATE_TRANSFORM )) {
216220 double angle = Math .toRadians (parseNumber (matcher2 .group (++i )));
@@ -222,7 +226,9 @@ private TransformMatrix2D parseTransform(String string) {
222226 i ++;
223227 cy = parseNumber (matcher2 .group (i ));
224228 i ++;
225- } catch (NumberFormatException e ) { }
229+ } catch (NumberFormatException e ) {
230+ e .printStackTrace ();
231+ }
226232 if (cx != 0 && cy != 0 ) {
227233 result = result .multiply (TransformMatrix2D .translate (cx ,cy ));
228234 }
Original file line number Diff line number Diff line change @@ -138,6 +138,7 @@ public static void ensembleLearningDemo() {
138138 System .out .println ("\n " );
139139
140140 } catch (Exception e ) {
141+ e .printStackTrace ();
141142
142143 }
143144 }
Original file line number Diff line number Diff line change @@ -98,7 +98,9 @@ public void run(MessageLogger logger) {
9898 Thread .sleep (500 );
9999 env .step ();
100100 }
101- } catch (InterruptedException e ) {}
101+ } catch (InterruptedException e ) {
102+ e .printStackTrace ();
103+ }
102104 logger .log ("Performance: "
103105 + env .getPerformanceMeasure (agent ));
104106 logger .log ("</simulation-log>\n " );
Original file line number Diff line number Diff line change @@ -91,7 +91,9 @@ public void run(MessageLogger logger) {
9191 Thread .sleep (sleepTime );
9292 env .step ();
9393 }
94- } catch (InterruptedException e ) {}
94+ } catch (InterruptedException e ) {
95+ e .printStackTrace ();
96+ }
9597 logger .log ("</simulation-protocol>\n " );
9698 }
9799
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ public void loadSettings(File file) {
7171 input = new FileInputStream (file );
7272 values .load (input );
7373 } catch (IOException e ) {
74+ e .printStackTrace ();
7475
7576 } finally {
7677 if (input != null ) {
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ public void run(MessageLogger logger) {
6262 logger .log (i + " ..." );
6363 }
6464 } catch (InterruptedException e ) {
65+ e .printStackTrace ();
6566 }
6667 isPrepared = frame .simulationPaused ();
6768 }
@@ -78,6 +79,7 @@ public void step(MessageLogger logger) {
7879 Thread .sleep (2000 );
7980 logger .log ("ready" );
8081 } catch (InterruptedException e ) {
82+ e .printStackTrace ();
8183 }
8284 }
8385
You can’t perform that action at this time.
0 commit comments