Exception-Handling ( best practice ? )
-
Ausschnitt ist aus einer professionellen App im App-Store !
try { ((Cursor)localObject1).close(); throw ((Throwable)localObject2); Exception localException3 = localException4; localObject1 = localException4; addZusatzDatenZuNachrichten(localArrayList); localException3 = localException4; localObject1 = localException4; Collections.reverse(localArrayList); try { localException4.close(); return localArrayList; } catch (Exception localException1) { return localArrayList; } } catch (Exception localException2) { for (;;) {} }
private void clearData() { try { this.list.clear(); this.adapter.notifyDataSetChanged(); finish(); return; } catch (Exception localException) { for (;;) {} } }
ich sehe sowas zum ersten Mal, was bitte bewirkt die Schleife im Catch-Block
for ( ; ; ) {}while(true) {} wäre doch das selbe ... aber an dieser Stelle in dieser Form ???
-
ich glaube der "Fehler" liegt bei dex2jar
Kann nicht jedes Programm so komische Sachen haben
catch (Exception localException16) { for (;;) { localException16.printStackTrace(); } }
https://sourceforge.net/projects/dex2jar/
sorry für die Störung am Sonntag