Commit Graph

85 Commits (2762325639d8226d1f1bfa51b495553a77bc0dbe)

Author SHA1 Message Date
Florian Schmaus aab48570c9 Call XMPPConnection.sendIqRequestAndWaitForResponse(IQ) where possible
Refactored using

find . -type f -name "*.java" |\
	 xargs sed -i -E |\
		's/\.createStanzaCollectorAndSend\((\w+)\)\.nextResultOrThrow\(\);/.sendIqRequestAndWaitForResponse(\1);/'

and some manual refactoring.
2 years ago
Florian Schmaus fbddd074bc [gradle] Do not use deprecated 'compile' directive 2 years ago
Florian Schmaus a7b3303f3e Bump ErrorProne to 2.5.1 and refactor Providers a bit
This also resulted in a refactoring of the Providers and parsing
Exceptions. NumberFormatException and ParseException can now be thrown
directly, the wrapping in a SmackParsingException is down at a higher
layer, i.e. in AbstractProvider.
2 years ago
Florian Schmaus b5f9d4d7a3 Introduce test fixtures
This also removes the powermock dependency. Although powermock is a
fine library, it currently prevents dropping Junit4. And since we only
use the Whitebox API of powermock, this simply replaced powermock's
Whitebox with our own.
3 years ago
Florian Schmaus eb4c2c5572 s/occured/occurred/ 4 years ago
Florian Schmaus 5db6191110 Introduce StanzaBuilder
As first step to immutable Stanza types.
4 years ago
Florian Schmaus 30bbdf9fdb Remove deprecated methods from Stanza class 4 years ago
Florian Schmaus 34f1c2b79e errorprone: Enable MethodCanBeStatic 4 years ago
Florian Schmaus 65576cf3c2 Rework XML Element hierarchy and XmlStringBuilder
- Reduce the amount of types that are subtypes of NamedElement. See
javadoc of NamedElement for rationale.
- Work more with XmlEnvironment in XmlStringBuilder.
- Some minor changes to XmlStringBuilder API.
4 years ago
Florian Schmaus 75625283ef Make "duplicate" package-info.java files symbolic links
This is needed for javadocAll since otherwhise there will be

smack-core/src/main/java/org/jivesoftware/smack/package-info.java:21:
	warning: a package-info.java file has already been seen for
	package org.jivesoftware.smack

warnings.
4 years ago
Florian Schmaus 1a3067c89b Enable werror for javadoc and fix javadoc issues 4 years ago
Florian Schmaus 4ca2c7cc69 Enable MissingJavadocPackage and UnnecessaryParentheses checkstyle checks 4 years ago
Florian Schmaus f7762c5db7 Add "whitespace after comma" checkstyle rule 4 years ago
Florian Schmaus d2f5efcb20 Use StandardCharsets.(UTF_8|US_ASCII)
This also gets rid of a ton of UnsupportedEncodingException s.
4 years ago
Florian Schmaus 7f0dc72dab Update errorprone(-plugin) and make Unused(Variable|Method) an error 4 years ago
Florian Schmaus 4133eb175c Replace XPP3 by XmlPullParser interface wrapping StAX and XPP3
Introducing Smack's own XmlPullParser interface which tries to stay as
compatible as possible to XPP3. The interface is used to either wrap
StAX's XMLStreamReader if Smack is used on Java SE, and XPP3's
XmlPullParser if Smack is used on on Android.

Fixes SMACK-591.

Also introduce JUnit 5 and non-strict javadoc projects.
4 years ago
Florian Schmaus 9c30e4f3cc Merge branch '4.3' 4 years ago
Florian Schmaus 488055948d Add missing 'synchronized' keywords to Manager.getInstanceFor()
Fixes SMACK-865.
4 years ago
Florian Schmaus 8df69bd3ce Use XmlEnvironment in parsing/provider subsystem 4 years ago
Florian Schmaus 7fce6b5a98 Introduce SmackMessageException 4 years ago
Florian Schmaus 7dee3b88a2 Introduce SmackParsingException 4 years ago
Florian Schmaus 083dac8b83 Rework exceptions in the parsing / provider subsystem 4 years ago
Florian Schmaus fee3ed81ca Introduce XmlEnvironment 4 years ago
Florian Schmaus b7ea226c56 Bump "Error Prone" to 2.3.2
and gradle-errorprone-plugin to 0.6.
5 years ago
Florian Schmaus e8923b9d16 Enable trailing whitespace checkstyle check
for all source code regions, including javadoc.
5 years ago
Florian Schmaus 5ab2903c32 Change Element.toXml() to toXml(String enclosingNamespace) 5 years ago
Florian Schmaus cc0022c919 Globally s;Stanza(/Packet);Stanza; and more 'packet' → 'stanza' 5 years ago
Florian Schmaus 2efec89050 Rename XMPPError to StanzaError
Fixes SMACK-769.
5 years ago
Florian Schmaus ad87243060 Globally 's;stanza(/packet);stanza;' 5 years ago
Florian Schmaus a9ca1a0989 Enable ModifierOrder checkstyle check
Fixes SMACK-812
5 years ago
Florian Schmaus b5209f4701 Enable RedundantModifier checkstyle check 5 years ago
Florian Schmaus f42d9137b5 Merge branch '4.2' 5 years ago
Matteo Campana 713f0438df Fix the Jingle IQ action attribute in jingle-old 5 years ago
Florian Schmaus 3c4225d167 Merge branch '4.2' 6 years ago
Florian Schmaus 34373e8710 Enable javadoc 'html' doclint
Also make all 'test' tasks depend on the 'javadoc' task.

Fixes SMACK-650.
6 years ago
Florian Schmaus 0eeab74990 Merge branch '4.2' 6 years ago
Paul Schaub e1acf0cfd2
Retain smack-jingle-old API 6 years ago
Florian Schmaus 431e5b3c67 Merge branch '4.2' into master-paul-merged 6 years ago
Paul Schaub cb18056613 Fix minor codestyle issues 6 years ago
Florian Schmaus 81002c4fbd Merge branch '4.2' 6 years ago
Florian Schmaus 9e11b68144 Add comment style checkstyle rule requiring a space 6 years ago
Florian Schmaus 2b11074950 Merge branch '4.2' 6 years ago
Florian Schmaus 08e897113d Add CustomImportOrder checkstyle rule
And matching ImportOrder settings for Eclipse in
resources/eclipse/smack.importorder
6 years ago
Florian Schmaus 7a5f9e6a03 Merge branch '4.2' 6 years ago
Florian Schmaus ce1cddc722 More checkstyle whitespace related checks 6 years ago
Florian Schmaus 45b790bbbb Fix NoWhitespaceAfter checkstyle violation
in smack-jingle-old
6 years ago
Florian Schmaus c81f28a3a2 Update Error Prone to 2.0.18
and update errorprone-plugin to 0.0.9.
6 years ago
Florian Schmaus 4c646436a5 Bump "Error Prone" to 2.0.15
and fix a few things :)
6 years ago
Florian Schmaus ef0af66b21 Enfore spaces for indentation
Although I'm in the tabs camp, Smack uses mostly spaces. Therefore it
is the logical choice for the indentation style.
6 years ago
Florian Schmaus 90a5e289f8 s/processPacket/processStanza/ s/PacketCollector/StanzaCollector/ 7 years ago