mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 06:21:16 +07:00
Suppress warnings in testdata
GitOrigin-RevId: 5d526e236a1892b37724d4c71adf97411fec9e6a
This commit is contained in:
committed by
intellij-monorepo-bot
parent
8a979f74e3
commit
f44c14f3df
+1
@@ -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; }
|
||||
|
||||
+2
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
+1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user