Suppress warnings in testdata

GitOrigin-RevId: 5d526e236a1892b37724d4c71adf97411fec9e6a
This commit is contained in:
Tagir Valeev
2022-06-20 15:25:21 +00:00
committed by intellij-monorepo-bot
parent 8a979f74e3
commit f44c14f3df
6 changed files with 7 additions and 1 deletions
@@ -18,6 +18,7 @@ package org.jetbrains.java.generate.test;
/**
* This is a dummy test bean for testing the toString() plugin.
*/
@SuppressWarnings("unused")
public class DummyGetterTestBean {
public int getX() throws RuntimeException { return 0; }
@@ -22,6 +22,7 @@ import java.util.List;
/**
* This is a dummy test bean for testing the toString() plugin.
*/
@SuppressWarnings("unused")
public abstract class DummyModelTestBean {
private String age;
@@ -58,7 +59,7 @@ public abstract class DummyModelTestBean {
}
public void nonGetterMethod() {
List list = new ArrayList();
@SuppressWarnings("MismatchedQueryAndUpdateOfCollection") List<?> list = new ArrayList<>();
Collections.sort(list, (o, o1) -> 0);
}
@@ -20,6 +20,7 @@ import java.util.logging.Logger;
/**
* This is a dummy test bean for testing the toString() plugin.
*/
@SuppressWarnings("unused")
public class DummySortTestBean {
private Logger myLogger;
@@ -23,6 +23,7 @@ import java.util.Date;
/**
* This is a dummy test bean for testing the toString() plugin.
*/
@SuppressWarnings("unused")
public class DummyTestBean extends Config implements Serializable {
public static final String CONST_FIELD = "XXX_XXX";
@@ -18,6 +18,7 @@ package org.jetbrains.java.generate.test;
/**
* To be used for testing.
*/
@SuppressWarnings("unused")
public class Owner {
private String firstName;
@@ -20,6 +20,7 @@ import java.util.Date;
/**
* To be used for testing.
*/
@SuppressWarnings("unused")
public class Pet {
private String name;