@@ -151,7 +151,7 @@ public void selectComicBooksByFilter(
151151 * Adds selections by tag type and value
152152 *
153153 * @param session the session
154- * @param tagTypeString the tag type string
154+ * @param tagType the tag type
155155 * @param tagValue the tag value
156156 * @throws ComicBookSelectionException if an error occurs
157157 */
@@ -160,10 +160,9 @@ public void selectComicBooksByFilter(
160160 @ Timed (value = "comixed.comic-book.selections.add-by-tag-type-and-value" )
161161 public void addComicBooksByTagTypeAndValue (
162162 final HttpSession session ,
163- @ PathVariable ("tagType" ) final String tagTypeString ,
163+ @ PathVariable ("tagType" ) final ComicTagType tagType ,
164164 @ PathVariable ("tagValue" ) final String tagValue )
165165 throws ComicBookSelectionException {
166- final ComicTagType tagType = ComicTagType .forValue (tagTypeString );
167166 final String decodedTagValue = this .opdsUtils .urlDecodeString (tagValue );
168167 log .info (
169168 "Adding multiple comic books by tag type and value: type={} value={}" ,
@@ -181,7 +180,7 @@ public void addComicBooksByTagTypeAndValue(
181180 * Removes selections using filters.
182181 *
183182 * @param session the session
184- * @param tagTypeString the tag type string
183+ * @param tagType the tag type
185184 * @param tagValue the tag value
186185 * @throws ComicBookSelectionException if an error occurs
187186 */
@@ -190,10 +189,9 @@ public void addComicBooksByTagTypeAndValue(
190189 @ Timed (value = "comixed.comic-book.selections.remove-by-tag-type-and-value" )
191190 public void removeComicBooksByTagTypeAndValue (
192191 final HttpSession session ,
193- @ PathVariable ("tagType" ) final String tagTypeString ,
192+ @ PathVariable ("tagType" ) final ComicTagType tagType ,
194193 @ PathVariable ("tagValue" ) final String tagValue )
195194 throws ComicBookSelectionException {
196- final ComicTagType tagType = ComicTagType .forValue (tagTypeString );
197195 final String decodedTagValue = this .opdsUtils .urlDecodeString (tagValue );
198196
199197 log .info (
0 commit comments