[infrastructure] add external null-annotations (#8848)

Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
This commit is contained in:
J-N-K
2020-10-31 00:29:03 +01:00
committed by GitHub
parent 47d05055db
commit bd664ff0c8
162 changed files with 933 additions and 575 deletions

View File

@@ -46,7 +46,7 @@ public class TACmiChannelTypeProvider implements ChannelTypeProvider {
return channelTypesByUID.get(channelTypeUID);
}
public ChannelType getInternalChannelType(ChannelTypeUID channelTypeUID) {
public @Nullable ChannelType getInternalChannelType(ChannelTypeUID channelTypeUID) {
return channelTypesByUID.get(channelTypeUID);
}

View File

@@ -243,13 +243,15 @@ public class ApiPageParser extends AbstractSimpleMarkupHandler {
@Override
public void handleComment(final char @Nullable [] buffer, final int offset, final int len, final int line,
final int col) throws ParseException {
logger.debug("Unexpected comment in {}:{}: {}", line, col, new String(buffer, offset, len));
logger.debug("Unexpected comment in {}:{}: {}", line, col,
buffer == null ? "<null>" : new String(buffer, offset, len));
}
@Override
public void handleCDATASection(final char @Nullable [] buffer, final int offset, final int len, final int line,
final int col) throws ParseException {
logger.debug("Unexpected CDATA in {}:{}: {}", line, col, new String(buffer, offset, len));
logger.debug("Unexpected CDATA in {}:{}: {}", line, col,
buffer == null ? "<null>" : new String(buffer, offset, len));
}
@Override

View File

@@ -170,13 +170,15 @@ public class ChangerX2Parser extends AbstractSimpleMarkupHandler {
@Override
public void handleAutoCloseElement(final @Nullable String elementName, final int line, final int col)
throws ParseException {
logger.debug("Unexpected AutoCloseElement in {}:{}: {}", line, col, elementName);
logger.debug("Unexpected AutoCloseElement in {}:{}: {}", line, col,
elementName == null ? "<null>" : elementName);
}
@Override
public void handleUnmatchedCloseElement(final @Nullable String elementName, final int line, final int col)
throws ParseException {
logger.debug("Unexpected UnmatchedCloseElement in {}:{}: {}", line, col, elementName);
logger.debug("Unexpected UnmatchedCloseElement in {}:{}: {}", line, col,
elementName == null ? "<null>" : elementName);
}
@Override
@@ -190,13 +192,15 @@ public class ChangerX2Parser extends AbstractSimpleMarkupHandler {
@Override
public void handleComment(final char @Nullable [] buffer, final int offset, final int len, final int line,
final int col) throws ParseException {
logger.debug("Unexpected comment in {}:{}: {}", line, col, new String(buffer, offset, len));
logger.debug("Unexpected comment in {}:{}: {}", line, col,
buffer == null ? "<null>" : new String(buffer, offset, len));
}
@Override
public void handleCDATASection(final char @Nullable [] buffer, final int offset, final int len, final int line,
final int col) throws ParseException {
logger.debug("Unexpected CDATA in {}:{}: {}", line, col, new String(buffer, offset, len));
logger.debug("Unexpected CDATA in {}:{}: {}", line, col,
buffer == null ? "<null>" : new String(buffer, offset, len));
}
@Override