Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed extra white space
Browse files Browse the repository at this point in the history
UweKubosch committed May 5, 2017
1 parent f3f86aa commit 0e53117
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions core/src/main/java/org/jruby/util/io/OpenFile.java
Original file line number Diff line number Diff line change
@@ -70,7 +70,7 @@ public OpenFile(IRubyObject nil) {
public static final int TEXTMODE = 0x00001000;
public static final int SETENC_BY_BOM = 0x00100000;
public static final int PREP = (1<<16);

public static final int SYNCWRITE = SYNC | WRITABLE;

public static final int PIPE_BUF = 512; // value of _POSIX_PIPE_BUF from Mac OS X 10.9
@@ -192,7 +192,7 @@ public void setChannel(Channel fd) {
public int getMode() {
return mode;
}

public String getModeAsString(Ruby runtime) {
String modeString = getStringFromMode(mode);

@@ -202,10 +202,10 @@ public String getModeAsString(Ruby runtime) {

return modeString;
}

public static int getModeFlagsAsIntFrom(int fmode) {
int oflags = 0;

if ((fmode & READABLE) != 0) {
if ((fmode & WRITABLE) != 0) {
oflags |= ModeFlags.RDWR;
@@ -215,13 +215,13 @@ public static int getModeFlagsAsIntFrom(int fmode) {
} else if ((fmode & WRITABLE) != 0) {
oflags |= ModeFlags.WRONLY;
}

if ((fmode & APPEND) != 0) oflags |= ModeFlags.APPEND;
if ((fmode & CREATE) != 0) oflags |= ModeFlags.CREAT;
if ((fmode & BINMODE) != 0) oflags |= ModeFlags.BINARY;
if ((fmode & TEXTMODE) != 0) oflags |= ModeFlags.TEXT;
if ((fmode & TRUNC) != 0) oflags |= ModeFlags.TRUNC;

return oflags;
}

0 comments on commit 0e53117

Please sign in to comment.