if (!shared && (mode & WRITE) == 0)
if (!shared && ((mode & WRITE) == 0))
  public FileLock tryLock (long position, long size, boolean shared)    throws IOException  {    if (position < 0        || size < 0)      throw new IllegalArgumentException ();    if (!isOpen ())      throw new ClosedChannelException ();    if (shared && (mode & READ) == 0)      throw new NonReadableChannelException ();	    if (!shared && (mode & WRITE) == 0)      throw new NonWritableChannelException ();	    boolean completed = false;        try      {	begin();	boolean lockable = lock(position, size, shared, false);	completed = true;	return (lockable		? new FileLockImpl(this, position, size, shared)		: null);      }    finally      {	end(completed);      }  }