Skip to content

Commit

Permalink
Suppress instanceof compiler warnings
Browse files Browse the repository at this point in the history
Suppresses "X is a raw type. References to generic type X<E> should be
parameterized."
  • Loading branch information
sebthom committed May 12, 2022
1 parent 7bf6c9d commit 7546b27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ private final class PListObject {
this.values = values;
}

@SuppressWarnings("unchecked")
@SuppressWarnings({ "rawtypes", "unchecked" })
void addValue(final Object value) {
if (values instanceof PropertySettable propertySettable) {
propertySettable.setProperty(path.last(), value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public PListParserYAML(final PropertySettable.Factory<PListPath> objectFactory)
this.objectFactory = objectFactory;
}

@SuppressWarnings("unchecked")
@SuppressWarnings({ "rawtypes", "unchecked" })
private void addListToPList(final PListContentHandler<T> pList, final List<Object> list) throws SAXException {
pList.startElement(null, "array", null, null);

Expand All @@ -51,7 +51,7 @@ private void addListToPList(final PListContentHandler<T> pList, final List<Objec
pList.endElement(null, "array", null);
}

@SuppressWarnings("unchecked")
@SuppressWarnings({ "rawtypes", "unchecked" })
private void addMapToPList(final PListContentHandler<T> pList, final Map<String, Object> map)
throws SAXException {
pList.startElement(null, "dict", null, null);
Expand Down

0 comments on commit 7546b27

Please sign in to comment.