mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-26 05:52:06 +01:00
Support building with Java8
This commit is contained in:
parent
f05e744011
commit
3634587933
2 changed files with 10 additions and 1 deletions
|
@ -56,6 +56,12 @@ allprojects {
|
||||||
url 'https://oss.sonatype.org/content/repositories/snapshots'
|
url 'https://oss.sonatype.org/content/repositories/snapshots'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (JavaVersion.current().isJava8Compatible()) {
|
||||||
|
tasks.withType(Javadoc) {
|
||||||
|
options.addStringOption('Xdoclint:none', '-quiet')
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
gradle.taskGraph.whenReady { taskGraph ->
|
gradle.taskGraph.whenReady { taskGraph ->
|
||||||
|
|
|
@ -796,9 +796,12 @@ public class PacketParserUtilsTest {
|
||||||
for (int i = 0; i < availableLocales.length; i++) {
|
for (int i = 0; i < availableLocales.length; i++) {
|
||||||
if (availableLocales[i] != Locale.getDefault()) {
|
if (availableLocales[i] != Locale.getDefault()) {
|
||||||
otherLanguage = availableLocales[i].getLanguage().toLowerCase(Locale.US);
|
otherLanguage = availableLocales[i].getLanguage().toLowerCase(Locale.US);
|
||||||
|
// Check for empty strings as Java8 returns those here for certain Locales
|
||||||
|
if (otherLanguage.length() > 0) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return otherLanguage;
|
return otherLanguage;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue