remove NOSONAR

This commit is contained in:
Shinsuke Sugaya 2016-06-08 22:44:44 +09:00
parent a37c29ca3e
commit 5207c4d516
5 changed files with 5 additions and 5 deletions

View file

@ -32,7 +32,7 @@ public class WebApiResponse extends HttpServletResponseWrapper {
@Override
public PrintWriter getWriter() throws IOException {
// dummy stream
return new PrintWriter(new ByteArrayOutputStream()); // NOSONAR
return new PrintWriter(new ByteArrayOutputStream());
}
}

View file

@ -101,7 +101,7 @@ public class FessXpathTransformer extends XpathTransformer implements FessTransf
try (final BufferedInputStream bis = new BufferedInputStream(responseData.getResponseBody())) {
final byte[] bomBytes = new byte[UTF8_BOM_SIZE];
bis.mark(UTF8_BOM_SIZE);
bis.read(bomBytes); // NOSONAR
bis.read(bomBytes);
if (!isUtf8BomBytes(bomBytes)) {
bis.reset();
}

View file

@ -245,7 +245,7 @@ public class Crawler implements Serializable {
logger.debug("Deleted a temp file: " + propFile.getAbsolutePath());
}
systemProperties.reload(propFile.getAbsolutePath());
propFile.deleteOnExit(); // NOSONAR
propFile.deleteOnExit();
} catch (final IOException e) {
logger.warn("Failed to create system properties file.", e);
}

View file

@ -153,7 +153,7 @@ public class SuggestCreator implements Serializable {
logger.debug("Deleted a temp file: " + propFile.getAbsolutePath());
}
systemProperties.reload(propFile.getAbsolutePath());
propFile.deleteOnExit(); // NOSONAR
propFile.deleteOnExit();
} catch (final IOException e) {
logger.warn("Failed to create system properties file.", e);
}

View file

@ -82,7 +82,7 @@ public class ResourceUtil {
return Paths.get(webinfPath, names);
}
}
} catch (final Throwable e) { // NOSONAR
} catch (final Throwable e) {
// ignore
}
final String webinfBase = "WEB-INF/" + base;