remove NOSONAR
This commit is contained in:
parent
a37c29ca3e
commit
5207c4d516
5 changed files with 5 additions and 5 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue