Skip to content

Commit 3202300

Browse files
author
Ryan
committed
fixed layout - removed extra whitespace.
1 parent f31dc6d commit 3202300

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

src/main/com/mongodb/Bytes.java

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
* @author antoine
3636
*/
3737
public class Bytes extends BSON {
38-
38+
3939
static final Logger LOGGER = Logger.getLogger( "com.mongodb" );
40-
40+
4141
static final boolean D = Boolean.getBoolean( "DEBUG.MONGO" );
4242

4343
static {
@@ -57,7 +57,7 @@ public class Bytes extends BSON {
5757

5858
/** default target size of an insert batch */
5959
static final int BATCH_INSERT_SIZE = 1024 * 1024 * 8;
60-
60+
6161
static final int CONNECTIONS_PER_HOST = Integer.parseInt( System.getProperty( "MONGO.POOLSIZE" , "10" ) );
6262

6363

@@ -83,22 +83,22 @@ public class Bytes extends BSON {
8383
* Set this option to prevent that.
8484
*/
8585
public static final int QUERYOPTION_NOTIMEOUT = 1 << 4;
86-
86+
8787
/**
8888
* Use with TailableCursor.
8989
* If we are at the end of the data, block for a while rather than returning no data.
9090
* After a timeout period, we do return as normal.
9191
*/
9292
public static final int QUERYOPTION_AWAITDATA = 1 << 5;
93-
93+
9494
/**
9595
* Stream the data down full blast in multiple "more" packages, on the assumption that the client will fully read all data queried.
9696
* Faster when you are pulling a lot of data and know you want to pull it all down.
9797
* Note: the client is not allowed to not read all the data unless it closes the connection.
9898
*/
9999
public static final int QUERYOPTION_EXHAUST = 1 << 6;
100100

101-
/**
101+
/**
102102
* Use with sharding (mongos).
103103
* Allows partial results from a sharded system if any shards are down/missing from the cluster. If not used an error will be returned
104104
* from the mongos server.
@@ -107,7 +107,7 @@ public class Bytes extends BSON {
107107

108108
/**
109109
* Set when getMore is called but the cursor id is not valid at the server.
110-
* Returned with zero results.
110+
* Returned with zero results.
111111
*/
112112
public static final int RESULTFLAG_CURSORNOTFOUND = 1;
113113
/**
@@ -137,15 +137,15 @@ void set( int options ){
137137
_options = options;
138138
_hasOptions = true;
139139
}
140-
140+
141141
int get(){
142142
if ( _hasOptions )
143143
return _options;
144144
if ( _parent == null )
145145
return 0;
146146
return _parent.get();
147147
}
148-
148+
149149
void add( int option ){
150150
set( get() | option );
151151
}
@@ -155,7 +155,7 @@ void reset(){
155155
}
156156

157157
final OptionHolder _parent;
158-
158+
159159
int _options = 0;
160160
boolean _hasOptions = false;
161161
}
@@ -179,17 +179,17 @@ public static byte getType( Object o ){
179179
|| o instanceof AtomicInteger) {
180180
return NUMBER_INT;
181181
}
182-
182+
183183
if (o instanceof Long || o instanceof AtomicLong) {
184184
return NUMBER_LONG;
185185
}
186186

187187
if ( o instanceof Number )
188188
return NUMBER;
189-
189+
190190
if ( o instanceof String )
191191
return STRING;
192-
192+
193193
if ( o instanceof java.util.List )
194194
return ARRAY;
195195

@@ -198,10 +198,10 @@ public static byte getType( Object o ){
198198

199199
if ( o instanceof ObjectId )
200200
return OID;
201-
201+
202202
if ( o instanceof Boolean )
203203
return BOOLEAN;
204-
204+
205205
if ( o instanceof java.util.Date )
206206
return DATE;
207207

@@ -210,13 +210,13 @@ public static byte getType( Object o ){
210210

211211
if ( o instanceof java.util.regex.Pattern )
212212
return REGEX;
213-
213+
214214
if ( o instanceof DBObject || o instanceof DBRefBase )
215215
return OBJECT;
216216

217217
if ( o instanceof Code )
218218
return CODE;
219-
219+
220220
if ( o instanceof CodeWScope )
221221
return CODE_W_SCOPE;
222222

0 commit comments

Comments
 (0)