File tree Expand file tree Collapse file tree 1 file changed +7
-12
lines changed
src/main/java/com/google/devtools/build/lib/buildtool Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -730,18 +730,13 @@ private void dumpSkyframeStateAfterBuild(
730
730
}
731
731
732
732
private static String getDefaultOutputFileName (String format ) {
733
- switch (format ) {
734
- case "proto" :
735
- return "aquery_dump.proto" ;
736
- case "streamed_proto" :
737
- return "aquery_dump.pb" ;
738
- case "textproto" :
739
- return "aquery_dump.textproto" ;
740
- case "jsonproto" :
741
- return "aquery_dump.json" ;
742
- default :
743
- throw new IllegalArgumentException ("Unsupported format type: " + format );
744
- }
733
+ return switch (format ) {
734
+ case "proto" -> "aquery_dump.proto" ;
735
+ case "streamed_proto" -> "aquery_dump.pb" ;
736
+ case "textproto" -> "aquery_dump.textproto" ;
737
+ case "jsonproto" -> "aquery_dump.json" ;
738
+ default -> throw new IllegalArgumentException ("Unsupported format type: " + format );
739
+ };
745
740
}
746
741
747
742
private static OutputStream initOutputStream (
You can’t perform that action at this time.
0 commit comments