Close BufferedReader.

This commit is contained in:
Michael Hierweck 2017-04-19 14:07:10 +02:00
parent 9f8ccd461b
commit da867ae48b

View File

@ -38,6 +38,7 @@ public class CASTicketValidator implements TicketValidator {
while (nextLine != null) { while (nextLine != null) {
if (nextLine.contains("<cas:user>")) { if (nextLine.contains("<cas:user>")) {
String user = extractUser(nextLine); String user = extractUser(nextLine);
reader.close();
inputStream.close(); inputStream.close();
return user; return user;
} }