Suppress Warnings (PMD)

This commit is contained in:
Erik C. Thauvin 2019-04-27 02:43:16 -07:00
parent be0c1c4cd4
commit bd9bb8d47e
6 changed files with 8 additions and 2 deletions

View file

@ -27,6 +27,7 @@ import java.io.InputStreamReader;
* @created Sep 13, 2010
* @since 1.0
*/
@SuppressWarnings("PMD.UseUtilityClass")
public final class TwitterOAuth {
/**
* Twitter OAuth Client Registration.

View file

@ -130,7 +130,7 @@ public final class EntriesMgr {
* @throws IOException If the file was not found or could not be read.
* @throws FeedException If an error occurred while reading the feed.
*/
@SuppressWarnings("unchecked")
@SuppressWarnings("PMD.AvoidInstantiatingObjectsInLoops")
public static String loadEntries(final String file, final String channel, final List<EntryLink> entries)
throws IOException, FeedException {
entries.clear();
@ -190,6 +190,7 @@ public final class EntriesMgr {
* @param isDayBackup Set the true if the daily backup file should also be created.
*/
@SuppressFBWarnings(value = {"CE_CLASS_ENVY", "CC_CYCLOMATIC_COMPLEXITY"}, justification = "Yes, it does.")
@SuppressWarnings("PMD.AvoidInstantiatingObjectsInLoops")
public static void saveEntries(final Mobibot bot,
final List<EntryLink> entries,
final List<String> history,

View file

@ -292,7 +292,8 @@ public class EntryLink implements Serializable {
*
* @param tags The space-delimited tags.
*/
@SuppressFBWarnings(value = "STT_STRING_PARSING_A_FIELD")
@SuppressFBWarnings("STT_STRING_PARSING_A_FIELD")
@SuppressWarnings("PMD.AvoidInstantiatingObjectsInLoops")
public final void setTags(final String tags) {
if (tags != null) {
final String[] parts = tags.replaceAll(", ", " ").replaceAll(",", " ").split(" ");

View file

@ -60,6 +60,7 @@ import java.util.TreeMap;
* @created Feb 11, 2004
* @since 1.0
*/
@SuppressWarnings("PMD.UseConcurrentHashMap")
public final class CurrencyConverter extends ThreadedModule {
/**
* The rates keyword.

View file

@ -44,6 +44,7 @@ import java.time.format.DateTimeFormatter;
* @created 2014-04-24
* @since 1.0
*/
@SuppressWarnings("PMD.DataClass")
public class TellMessage implements Serializable {
private static final long serialVersionUID = 2L;
private final String id;

View file

@ -45,6 +45,7 @@ import static org.assertj.core.api.Assertions.assertThat;
* @created 2017-05-30
* @since 1.0
*/
@SuppressWarnings("PMD.AvoidUsingHardCodedIP")
public class LookupTest {
@Test
public void testLookupImpl() {