Skip to content

Commit 4729eca

Browse files
committed
solved a compiling error in openjdk
1 parent ff12572 commit 4729eca

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

sample/Archiving/src/main/java/com/example/ArchivingServer.java

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -150,15 +150,8 @@ public Object handle(Request request, Response response) {
150150
boolean hasAudio = req.getParameterMap().containsKey("hasAudio");
151151
boolean hasVideo = req.getParameterMap().containsKey("hasVideo");
152152
OutputMode outputMode = OutputMode.COMPOSED;
153-
if (req.getParameterMap().containsKey("outputMode")) {
154-
switch(req.getParameter("outputMode")) {
155-
case "individual":
156-
outputMode = OutputMode.INDIVIDUAL;
157-
break;
158-
case "composed":
159-
default:
160-
outputMode = OutputMode.COMPOSED;
161-
}
153+
if (req.getParameter("outputMode").equals("individual")) {
154+
outputMode = OutputMode.INDIVIDUAL;
162155
}
163156
try {
164157
ArchiveProperties properties = new ArchiveProperties.Builder()

0 commit comments

Comments
 (0)