-
Notifications
You must be signed in to change notification settings - Fork 885
Java and Android API Levels
Florian Schmaus edited this page Jan 21, 2015
·
3 revisions
Smack currently requires at least the following API levels:
Java API Level: Java 7 (1.7)
Android API Level: 8
- Adds Normalizer, would be helpfull to e.g. apply Unicode Normalization Form C (NFC) to resourceparts.
- Adds TimeUnit.MINUTES, would be useful in
util.Async
.
Branch: android19
Added java.lang.AutoCloseable (Java7 feature), needed for try-with-resources. Experiments show that a few LOCs could be saved by using tyr-with-resources and making PacketCollector implement AutoCloseable
(see android19
branch)
Use java.util.Objects
, especially Objects.requireNonNull(T o, String message)
seems to be handy in many constructors.
- Default Methods, would make e.g. AbstractConnectionListener unnecessary.