Suppress Warnings (PMD)
This commit is contained in:
parent
be0c1c4cd4
commit
bd9bb8d47e
6 changed files with 8 additions and 2 deletions
|
@ -27,6 +27,7 @@ import java.io.InputStreamReader;
|
||||||
* @created Sep 13, 2010
|
* @created Sep 13, 2010
|
||||||
* @since 1.0
|
* @since 1.0
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("PMD.UseUtilityClass")
|
||||||
public final class TwitterOAuth {
|
public final class TwitterOAuth {
|
||||||
/**
|
/**
|
||||||
* Twitter OAuth Client Registration.
|
* Twitter OAuth Client Registration.
|
||||||
|
|
|
@ -130,7 +130,7 @@ public final class EntriesMgr {
|
||||||
* @throws IOException If the file was not found or could not be read.
|
* @throws IOException If the file was not found or could not be read.
|
||||||
* @throws FeedException If an error occurred while reading the feed.
|
* @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)
|
public static String loadEntries(final String file, final String channel, final List<EntryLink> entries)
|
||||||
throws IOException, FeedException {
|
throws IOException, FeedException {
|
||||||
entries.clear();
|
entries.clear();
|
||||||
|
@ -190,6 +190,7 @@ public final class EntriesMgr {
|
||||||
* @param isDayBackup Set the true if the daily backup file should also be created.
|
* @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.")
|
@SuppressFBWarnings(value = {"CE_CLASS_ENVY", "CC_CYCLOMATIC_COMPLEXITY"}, justification = "Yes, it does.")
|
||||||
|
@SuppressWarnings("PMD.AvoidInstantiatingObjectsInLoops")
|
||||||
public static void saveEntries(final Mobibot bot,
|
public static void saveEntries(final Mobibot bot,
|
||||||
final List<EntryLink> entries,
|
final List<EntryLink> entries,
|
||||||
final List<String> history,
|
final List<String> history,
|
||||||
|
|
|
@ -292,7 +292,8 @@ public class EntryLink implements Serializable {
|
||||||
*
|
*
|
||||||
* @param tags The space-delimited tags.
|
* @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) {
|
public final void setTags(final String tags) {
|
||||||
if (tags != null) {
|
if (tags != null) {
|
||||||
final String[] parts = tags.replaceAll(", ", " ").replaceAll(",", " ").split(" ");
|
final String[] parts = tags.replaceAll(", ", " ").replaceAll(",", " ").split(" ");
|
||||||
|
|
|
@ -60,6 +60,7 @@ import java.util.TreeMap;
|
||||||
* @created Feb 11, 2004
|
* @created Feb 11, 2004
|
||||||
* @since 1.0
|
* @since 1.0
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("PMD.UseConcurrentHashMap")
|
||||||
public final class CurrencyConverter extends ThreadedModule {
|
public final class CurrencyConverter extends ThreadedModule {
|
||||||
/**
|
/**
|
||||||
* The rates keyword.
|
* The rates keyword.
|
||||||
|
|
|
@ -44,6 +44,7 @@ import java.time.format.DateTimeFormatter;
|
||||||
* @created 2014-04-24
|
* @created 2014-04-24
|
||||||
* @since 1.0
|
* @since 1.0
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("PMD.DataClass")
|
||||||
public class TellMessage implements Serializable {
|
public class TellMessage implements Serializable {
|
||||||
private static final long serialVersionUID = 2L;
|
private static final long serialVersionUID = 2L;
|
||||||
private final String id;
|
private final String id;
|
||||||
|
|
|
@ -45,6 +45,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||||
* @created 2017-05-30
|
* @created 2017-05-30
|
||||||
* @since 1.0
|
* @since 1.0
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("PMD.AvoidUsingHardCodedIP")
|
||||||
public class LookupTest {
|
public class LookupTest {
|
||||||
@Test
|
@Test
|
||||||
public void testLookupImpl() {
|
public void testLookupImpl() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue