Skip to content

Commit

Permalink
Fix syntax adapting Int result to Short
Browse files Browse the repository at this point in the history
  • Loading branch information
srowen committed Apr 25, 2014
1 parent a24d918 commit e3fe7a3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ trait ClientBase extends Logging {

// Staging directory is private! -> rwx--------
val STAGING_DIR_PERMISSION: FsPermission =
FsPermission.createImmutable(Integer.parseInt("700", 8): Short)
FsPermission.createImmutable(Integer.parseInt("700", 8).toShort)
// App files are world-wide readable and owner writable -> rw-r--r--
val APP_FILE_PERMISSION: FsPermission =
FsPermission.createImmutable(Integer.parseInt("644", 8): Short)
FsPermission.createImmutable(Integer.parseInt("644", 8).toShort)

// TODO(harvey): This could just go in ClientArguments.
def validateArgs() = {
Expand Down

0 comments on commit e3fe7a3

Please sign in to comment.