src/share/jaxws_classes/com/sun/xml/internal/fastinfoset/algorithm/BooleanEncodingAlgorithm.java

changeset 384
8f2986ff0235
parent 286
f50545b5e2f1
child 637
9c07ef4934dd
equal deleted inserted replaced
380:7386eca865e1 384:8f2986ff0235
1 /* 1 /*
2 * Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2004, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
257 * Generate a boolean array from a list of Booleans. 257 * Generate a boolean array from a list of Booleans.
258 * 258 *
259 * @param array The array 259 * @param array The array
260 * 260 *
261 */ 261 */
262 private final boolean[] generateArrayFromList(List array) { 262 private boolean[] generateArrayFromList(List array) {
263 boolean[] bdata = new boolean[array.size()]; 263 boolean[] bdata = new boolean[array.size()];
264 for (int i = 0; i < bdata.length; i++) { 264 for (int i = 0; i < bdata.length; i++) {
265 bdata[i] = ((Boolean)array.get(i)).booleanValue(); 265 bdata[i] = ((Boolean)array.get(i)).booleanValue();
266 } 266 }
267 267

mercurial