Skip to content

Commit

Permalink
0003971: fix some spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredfrees committed May 17, 2019
1 parent c9920da commit eda6cc6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Expand Up @@ -341,7 +341,7 @@ public File[] findEnginePropertiesFiles() {
List<File> propFiles = new ArrayList<File>();
File enginesDir = new File(getEnginesDir());
File[] files = enginesDir.listFiles();
if (files !=null ) {
if (files != null ) {
for (int i = 0; i < files.length; i++) {
File file = files[i];
if (file.getName().endsWith(".properties")) {
Expand Down
Expand Up @@ -120,11 +120,11 @@ protected void clean(Path path, long ttlInMs, StagingPurgeContext context) throw
} else {
try {
String parentDirectory ="";
if (entry.getParent() != null){
if (entry.getParent() != null) {
parentDirectory=entry.getParent().toString();
}
String entryName="";
if ( entry.getFileName() != null){
if (entry.getFileName() != null) {
entryName = entry.getFileName().toString();
}
String stagingPath = StagedResource.toPath(directory,
Expand Down Expand Up @@ -296,13 +296,13 @@ public StagingFileLock acquireFileLock(String serverInfo, Object... path) {

protected static final DirectoryStream.Filter<Path> STAGING_FILE_FILTER = new DirectoryStream.Filter<Path>() {
@Override
public boolean accept(Path entry) {
public boolean accept(Path entry) {
try {
boolean accept = Files.isDirectory(entry) ||
entry.getFileName().toString().endsWith(".create")
|| entry.getFileName().toString().endsWith(".done");
return accept;
} catch (NullPointerException ex ){
} catch (NullPointerException ex ) {
return false;
}
}
Expand Down

0 comments on commit eda6cc6

Please sign in to comment.