diff --git a/src/main/java/net/thauvin/erik/mobibot/TwitterOAuth.java b/src/main/java/net/thauvin/erik/mobibot/TwitterOAuth.java index f69fb8d..1fc1b34 100644 --- a/src/main/java/net/thauvin/erik/mobibot/TwitterOAuth.java +++ b/src/main/java/net/thauvin/erik/mobibot/TwitterOAuth.java @@ -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. diff --git a/src/main/java/net/thauvin/erik/mobibot/entries/EntriesMgr.java b/src/main/java/net/thauvin/erik/mobibot/entries/EntriesMgr.java index 453e56a..fc8b401 100644 --- a/src/main/java/net/thauvin/erik/mobibot/entries/EntriesMgr.java +++ b/src/main/java/net/thauvin/erik/mobibot/entries/EntriesMgr.java @@ -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 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 entries, final List history, diff --git a/src/main/java/net/thauvin/erik/mobibot/entries/EntryLink.java b/src/main/java/net/thauvin/erik/mobibot/entries/EntryLink.java index 472367f..dec9fd7 100644 --- a/src/main/java/net/thauvin/erik/mobibot/entries/EntryLink.java +++ b/src/main/java/net/thauvin/erik/mobibot/entries/EntryLink.java @@ -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(" "); diff --git a/src/main/java/net/thauvin/erik/mobibot/modules/CurrencyConverter.java b/src/main/java/net/thauvin/erik/mobibot/modules/CurrencyConverter.java index d1a3900..7e4a024 100644 --- a/src/main/java/net/thauvin/erik/mobibot/modules/CurrencyConverter.java +++ b/src/main/java/net/thauvin/erik/mobibot/modules/CurrencyConverter.java @@ -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. diff --git a/src/main/java/net/thauvin/erik/mobibot/tell/TellMessage.java b/src/main/java/net/thauvin/erik/mobibot/tell/TellMessage.java index 1c2cd4d..cc73893 100644 --- a/src/main/java/net/thauvin/erik/mobibot/tell/TellMessage.java +++ b/src/main/java/net/thauvin/erik/mobibot/tell/TellMessage.java @@ -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; diff --git a/src/test/java/net/thauvin/erik/mobibot/modules/LookupTest.java b/src/test/java/net/thauvin/erik/mobibot/modules/LookupTest.java index 95288a5..d0d55f5 100644 --- a/src/test/java/net/thauvin/erik/mobibot/modules/LookupTest.java +++ b/src/test/java/net/thauvin/erik/mobibot/modules/LookupTest.java @@ -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() {