1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-09 00:59:39 +02:00

errorprone: Enable MethodCanBeStatic

This commit is contained in:
Florian Schmaus 2019-09-07 23:01:39 +02:00
parent 870d1a7238
commit 34f1c2b79e
15 changed files with 38 additions and 37 deletions

View file

@ -115,8 +115,8 @@ public class AgentChatHistory extends IQ {
return agentChatHistory;
}
private AgentChatSession parseChatSetting(XmlPullParser parser) throws XmlPullParserException, IOException {
private static AgentChatSession parseChatSetting(XmlPullParser parser)
throws XmlPullParserException, IOException {
boolean done = false;
Date date = null;
long duration = 0;

View file

@ -131,7 +131,7 @@ public class AgentStatusRequest extends IQ {
return statusRequest;
}
private Item parseAgent(XmlPullParser parser) throws XmlPullParserException, IOException {
private static Item parseAgent(XmlPullParser parser) throws XmlPullParserException, IOException {
boolean done = false;
EntityBareJid jid = ParserUtils.getBareJidAttribute(parser);

View file

@ -154,8 +154,8 @@ public class OccupantsInfo extends IQ {
return occupantsInfo;
}
private OccupantInfo parseOccupantInfo(XmlPullParser parser) throws XmlPullParserException, IOException, SmackTextParseException {
private static OccupantInfo parseOccupantInfo(XmlPullParser parser)
throws XmlPullParserException, IOException, SmackTextParseException {
boolean done = false;
String jid = null;
String nickname = null;

View file

@ -69,8 +69,8 @@ public class TranscriptsProvider extends IQProvider<Transcripts> {
return new Transcripts(userID, summaries);
}
private Transcripts.TranscriptSummary parseSummary(XmlPullParser parser) throws IOException,
XmlPullParserException {
private static Transcripts.TranscriptSummary parseSummary(XmlPullParser parser)
throws IOException, XmlPullParserException {
String sessionID = parser.getAttributeValue("", "sessionID");
Date joinTime = null;
Date leftTime = null;
@ -108,7 +108,8 @@ public class TranscriptsProvider extends IQProvider<Transcripts> {
return new Transcripts.TranscriptSummary(sessionID, joinTime, leftTime, agents);
}
private List<Transcripts.AgentDetail> parseAgents(XmlPullParser parser) throws IOException, XmlPullParserException {
private static List<Transcripts.AgentDetail> parseAgents(XmlPullParser parser)
throws IOException, XmlPullParserException {
List<Transcripts.AgentDetail> agents = new ArrayList<>();
String agentJID = null;
Date joinTime = null;