File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
inject-generator/src/main/java/io/avaje/inject/generator Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 11package io .avaje .inject .generator ;
22
33import java .io .IOException ;
4+ import java .io .UncheckedIOException ;
45import java .io .Writer ;
56
67/**
@@ -21,7 +22,7 @@ Append append(String content) {
2122 writer .append (content );
2223 return this ;
2324 } catch (IOException e ) {
24- throw new RuntimeException (e );
25+ throw new UncheckedIOException (e );
2526 }
2627 }
2728
@@ -30,7 +31,7 @@ void close() {
3031 writer .flush ();
3132 writer .close ();
3233 } catch (IOException e ) {
33- throw new RuntimeException (e );
34+ throw new UncheckedIOException (e );
3435 }
3536 }
3637
@@ -39,7 +40,7 @@ Append eol() {
3940 writer .append ("\n " );
4041 return this ;
4142 } catch (IOException e ) {
42- throw new RuntimeException (e );
43+ throw new UncheckedIOException (e );
4344 }
4445 }
4546
You can’t perform that action at this time.
0 commit comments