mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 17:28:13 +02:00
Apply code conventions
This commit is contained in:
parent
583c46b3a0
commit
3eecb2f379
2 changed files with 21 additions and 25 deletions
|
@ -54,8 +54,7 @@ public class BreakpadUploaderService extends Service {
|
|||
|
||||
new Thread(() -> {
|
||||
File[] matchingFiles = getFilesByExtension(getObbDir(), EXT_DMP);
|
||||
for (File file : matchingFiles)
|
||||
{
|
||||
for (File file : matchingFiles) {
|
||||
uploadDumpAndDelete(file, baseUrl);
|
||||
}
|
||||
}).start();
|
||||
|
@ -128,20 +127,17 @@ public class BreakpadUploaderService extends Service {
|
|||
return null;
|
||||
}
|
||||
|
||||
private File[] getFilesByExtension(File dir, final String extension)
|
||||
{
|
||||
private File[] getFilesByExtension(File dir, final String extension) {
|
||||
return dir.listFiles(pathName -> getExtension(pathName.getName()).equals(extension));
|
||||
}
|
||||
|
||||
private String getExtension(String fileName)
|
||||
{
|
||||
private String getExtension(String fileName) {
|
||||
String extension = "";
|
||||
|
||||
int i = fileName.lastIndexOf('.');
|
||||
int p = Math.max(fileName.lastIndexOf('/'), fileName.lastIndexOf('\\'));
|
||||
|
||||
if (i > p)
|
||||
{
|
||||
if (i > p) {
|
||||
extension = fileName.substring(i+1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue